Changeset 33772 in osm for applications/editors/josm/plugins/pbf/gen
- Timestamp:
- 2017-11-04T21:50:31+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/pbf
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pbf
- Property svn:externals
-
old new 1 proto https://github.com/scrosby/OSM-binary/trunk/src 2 protobuf https://github.com/google/protobuf/tags/v2.6.1/src/google/protobuf/ 1 https://github.com/scrosby/OSM-binary/trunk/src proto 2 https://github.com/google/protobuf/tags/v3.4.1/src/google/protobuf protobuf
-
- Property svn:externals
-
applications/editors/josm/plugins/pbf/gen/com/google/protobuf/DescriptorProtos.java
r31905 r33772 7 7 private DescriptorProtos() {} 8 8 public static void registerAllExtensions( 9 com.google.protobuf.ExtensionRegistryLite registry) { 10 } 11 12 public static void registerAllExtensions( 9 13 com.google.protobuf.ExtensionRegistry registry) { 14 registerAllExtensions( 15 (com.google.protobuf.ExtensionRegistryLite) registry); 10 16 } 11 17 public interface FileDescriptorSetOrBuilder extends … … 16 22 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 17 23 */ 18 java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> 24 java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> 19 25 getFileList(); 20 26 /** … … 29 35 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 30 36 */ 31 java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 37 java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 32 38 getFileOrBuilderList(); 33 39 /** … … 38 44 } 39 45 /** 40 * Protobuf type {@code google.protobuf.FileDescriptorSet}41 *42 46 * <pre> 43 47 * The protocol compiler can output a FileDescriptorSet containing the .proto 44 48 * files it parses. 45 49 * </pre> 50 * 51 * Protobuf type {@code google.protobuf.FileDescriptorSet} 46 52 */ 47 public static final class FileDescriptorSet extends48 com.google.protobuf.GeneratedMessage implements53 public static final class FileDescriptorSet extends 54 com.google.protobuf.GeneratedMessageV3 implements 49 55 // @@protoc_insertion_point(message_implements:google.protobuf.FileDescriptorSet) 50 56 FileDescriptorSetOrBuilder { 57 private static final long serialVersionUID = 0L; 51 58 // Use FileDescriptorSet.newBuilder() to construct. 52 private FileDescriptorSet(com.google.protobuf.GeneratedMessage .Builder<?> builder) {59 private FileDescriptorSet(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 53 60 super(builder); 54 this.unknownFields = builder.getUnknownFields(); 55 } 56 private FileDescriptorSet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 57 58 private static final FileDescriptorSet defaultInstance; 59 public static FileDescriptorSet getDefaultInstance() { 60 return defaultInstance; 61 } 62 63 @Override 64 public FileDescriptorSet getDefaultInstanceForType() { 65 return defaultInstance; 66 } 67 68 private final com.google.protobuf.UnknownFieldSet unknownFields; 61 } 62 private FileDescriptorSet() { 63 file_ = java.util.Collections.emptyList(); 64 } 65 69 66 @java.lang.Override 70 67 public final com.google.protobuf.UnknownFieldSet 71 68 getUnknownFields() { 72 69 return this.unknownFields; 73 70 } … … 76 73 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 77 74 throws com.google.protobuf.InvalidProtocolBufferException { 78 initFields();75 this(); 79 76 int mutable_bitField0_ = 0; 80 77 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 89 86 break; 90 87 default: { 91 if (!parseUnknownField( input, unknownFields,92 88 if (!parseUnknownField( 89 input, unknownFields, extensionRegistry, tag)) { 93 90 done = true; 94 91 } … … 97 94 case 10: { 98 95 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 99 file_ = new java.util.ArrayList< >();96 file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>(); 100 97 mutable_bitField0_ |= 0x00000001; 101 98 } 102 file_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FileDescriptorProto.PARSER, extensionRegistry)); 99 file_.add( 100 input.readMessage(com.google.protobuf.DescriptorProtos.FileDescriptorProto.PARSER, extensionRegistry)); 103 101 break; 104 102 } … … 109 107 } catch (java.io.IOException e) { 110 108 throw new com.google.protobuf.InvalidProtocolBufferException( 111 e .getMessage()).setUnfinishedMessage(this);109 e).setUnfinishedMessage(this); 112 110 } finally { 113 111 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { … … 123 121 } 124 122 125 @Override 126 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 123 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 127 124 internalGetFieldAccessorTable() { 128 125 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable … … 131 128 } 132 129 133 public static com.google.protobuf.Parser<FileDescriptorSet> PARSER =134 new com.google.protobuf.AbstractParser<FileDescriptorSet>() {135 @Override136 public FileDescriptorSet parsePartialFrom(137 com.google.protobuf.CodedInputStream input,138 com.google.protobuf.ExtensionRegistryLite extensionRegistry)139 throws com.google.protobuf.InvalidProtocolBufferException {140 return new FileDescriptorSet(input, extensionRegistry);141 }142 };143 144 @java.lang.Override145 public com.google.protobuf.Parser<FileDescriptorSet> getParserForType() {146 return PARSER;147 }148 149 130 public static final int FILE_FIELD_NUMBER = 1; 150 131 private java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> file_; … … 152 133 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 153 134 */ 154 @Override 155 public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() { 135 public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() { 156 136 return file_; 157 137 } … … 159 139 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 160 140 */ 161 @Override 162 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 141 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 163 142 getFileOrBuilderList() { 164 143 return file_; … … 167 146 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 168 147 */ 169 @Override 170 public int getFileCount() { 148 public int getFileCount() { 171 149 return file_.size(); 172 150 } … … 174 152 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 175 153 */ 176 @Override 177 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { 154 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { 178 155 return file_.get(index); 179 156 } … … 181 158 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 182 159 */ 183 @Override 184 public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( 160 public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( 185 161 int index) { 186 162 return file_.get(index); 187 163 } 188 164 189 private void initFields() {190 file_ = java.util.Collections.emptyList();191 }192 165 private byte memoizedIsInitialized = -1; 193 @Override 194 public final boolean isInitialized() { 166 public final boolean isInitialized() { 195 167 byte isInitialized = memoizedIsInitialized; 196 168 if (isInitialized == 1) return true; … … 207 179 } 208 180 209 @Override 210 public void writeTo(com.google.protobuf.CodedOutputStream output) 181 public void writeTo(com.google.protobuf.CodedOutputStream output) 211 182 throws java.io.IOException { 212 getSerializedSize();213 183 for (int i = 0; i < file_.size(); i++) { 214 184 output.writeMessage(1, file_.get(i)); 215 185 } 216 getUnknownFields().writeTo(output); 217 } 218 219 private int memoizedSerializedSize = -1; 220 @Override 221 public int getSerializedSize() { 222 int size = memoizedSerializedSize; 186 unknownFields.writeTo(output); 187 } 188 189 public int getSerializedSize() { 190 int size = memoizedSize; 223 191 if (size != -1) return size; 224 192 … … 228 196 .computeMessageSize(1, file_.get(i)); 229 197 } 230 size += getUnknownFields().getSerializedSize();231 memoizedS erializedSize = size;198 size += unknownFields.getSerializedSize(); 199 memoizedSize = size; 232 200 return size; 233 201 } 234 202 235 private static final long serialVersionUID = 0L;236 203 @java.lang.Override 237 protected java.lang.Object writeReplace() 238 throws java.io.ObjectStreamException { 239 return super.writeReplace(); 240 } 241 204 public boolean equals(final java.lang.Object obj) { 205 if (obj == this) { 206 return true; 207 } 208 if (!(obj instanceof com.google.protobuf.DescriptorProtos.FileDescriptorSet)) { 209 return super.equals(obj); 210 } 211 com.google.protobuf.DescriptorProtos.FileDescriptorSet other = (com.google.protobuf.DescriptorProtos.FileDescriptorSet) obj; 212 213 boolean result = true; 214 result = result && getFileList() 215 .equals(other.getFileList()); 216 result = result && unknownFields.equals(other.unknownFields); 217 return result; 218 } 219 220 @java.lang.Override 221 public int hashCode() { 222 if (memoizedHashCode != 0) { 223 return memoizedHashCode; 224 } 225 int hash = 41; 226 hash = (19 * hash) + getDescriptor().hashCode(); 227 if (getFileCount() > 0) { 228 hash = (37 * hash) + FILE_FIELD_NUMBER; 229 hash = (53 * hash) + getFileList().hashCode(); 230 } 231 hash = (29 * hash) + unknownFields.hashCode(); 232 memoizedHashCode = hash; 233 return hash; 234 } 235 236 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( 237 java.nio.ByteBuffer data) 238 throws com.google.protobuf.InvalidProtocolBufferException { 239 return PARSER.parseFrom(data); 240 } 241 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( 242 java.nio.ByteBuffer data, 243 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 244 throws com.google.protobuf.InvalidProtocolBufferException { 245 return PARSER.parseFrom(data, extensionRegistry); 246 } 242 247 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( 243 248 com.google.protobuf.ByteString data) … … 263 268 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(java.io.InputStream input) 264 269 throws java.io.IOException { 265 return PARSER.parseFrom(input); 270 return com.google.protobuf.GeneratedMessageV3 271 .parseWithIOException(PARSER, input); 266 272 } 267 273 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( … … 269 275 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 270 276 throws java.io.IOException { 271 return PARSER.parseFrom(input, extensionRegistry); 277 return com.google.protobuf.GeneratedMessageV3 278 .parseWithIOException(PARSER, input, extensionRegistry); 272 279 } 273 280 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom(java.io.InputStream input) 274 281 throws java.io.IOException { 275 return PARSER.parseDelimitedFrom(input); 282 return com.google.protobuf.GeneratedMessageV3 283 .parseDelimitedWithIOException(PARSER, input); 276 284 } 277 285 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom( … … 279 287 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 280 288 throws java.io.IOException { 281 return PARSER.parseDelimitedFrom(input, extensionRegistry); 289 return com.google.protobuf.GeneratedMessageV3 290 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 282 291 } 283 292 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( 284 293 com.google.protobuf.CodedInputStream input) 285 294 throws java.io.IOException { 286 return PARSER.parseFrom(input); 295 return com.google.protobuf.GeneratedMessageV3 296 .parseWithIOException(PARSER, input); 287 297 } 288 298 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( … … 290 300 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 291 301 throws java.io.IOException { 292 return PARSER.parseFrom(input, extensionRegistry); 293 } 294 295 public static Builder newBuilder() { return Builder.create(); } 296 @Override 297 public Builder newBuilderForType() { return newBuilder(); } 302 return com.google.protobuf.GeneratedMessageV3 303 .parseWithIOException(PARSER, input, extensionRegistry); 304 } 305 306 public Builder newBuilderForType() { return newBuilder(); } 307 public static Builder newBuilder() { 308 return DEFAULT_INSTANCE.toBuilder(); 309 } 298 310 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorSet prototype) { 299 return newBuilder().mergeFrom(prototype); 300 } 301 @Override 302 public Builder toBuilder() { return newBuilder(this); } 311 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 312 } 313 public Builder toBuilder() { 314 return this == DEFAULT_INSTANCE 315 ? new Builder() : new Builder().mergeFrom(this); 316 } 303 317 304 318 @java.lang.Override 305 319 protected Builder newBuilderForType( 306 com.google.protobuf.GeneratedMessage .BuilderParent parent) {320 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 307 321 Builder builder = new Builder(parent); 308 322 return builder; 309 323 } 310 324 /** 311 * Protobuf type {@code google.protobuf.FileDescriptorSet}312 *313 325 * <pre> 314 326 * The protocol compiler can output a FileDescriptorSet containing the .proto 315 327 * files it parses. 316 328 * </pre> 329 * 330 * Protobuf type {@code google.protobuf.FileDescriptorSet} 317 331 */ 318 332 public static final class Builder extends 319 com.google.protobuf.GeneratedMessage .Builder<Builder> implements333 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 320 334 // @@protoc_insertion_point(builder_implements:google.protobuf.FileDescriptorSet) 321 335 com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder { … … 325 339 } 326 340 327 @Override 328 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 341 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 329 342 internalGetFieldAccessorTable() { 330 343 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable … … 339 352 340 353 private Builder( 341 com.google.protobuf.GeneratedMessage .BuilderParent parent) {354 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 342 355 super(parent); 343 356 maybeForceBuilderInitialization(); 344 357 } 345 358 private void maybeForceBuilderInitialization() { 346 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 359 if (com.google.protobuf.GeneratedMessageV3 360 .alwaysUseFieldBuilders) { 347 361 getFileFieldBuilder(); 348 362 } 349 363 } 350 private static Builder create() { 351 return new Builder(); 352 } 353 354 @Override 355 public Builder clear() { 364 public Builder clear() { 356 365 super.clear(); 357 366 if (fileBuilder_ == null) { … … 364 373 } 365 374 366 @Override 367 public Builder clone() { 368 return create().mergeFrom(buildPartial()); 369 } 370 371 @Override 372 public com.google.protobuf.Descriptors.Descriptor 375 public com.google.protobuf.Descriptors.Descriptor 373 376 getDescriptorForType() { 374 377 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; 375 378 } 376 379 377 @Override 378 public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() { 380 public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() { 379 381 return com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance(); 380 382 } 381 383 382 @Override 383 public com.google.protobuf.DescriptorProtos.FileDescriptorSet build() { 384 public com.google.protobuf.DescriptorProtos.FileDescriptorSet build() { 384 385 com.google.protobuf.DescriptorProtos.FileDescriptorSet result = buildPartial(); 385 386 if (!result.isInitialized()) { … … 389 390 } 390 391 391 @Override 392 public com.google.protobuf.DescriptorProtos.FileDescriptorSet buildPartial() { 392 public com.google.protobuf.DescriptorProtos.FileDescriptorSet buildPartial() { 393 393 com.google.protobuf.DescriptorProtos.FileDescriptorSet result = new com.google.protobuf.DescriptorProtos.FileDescriptorSet(this); 394 394 int from_bitField0_ = bitField0_; … … 406 406 } 407 407 408 @Override 409 public Builder mergeFrom(com.google.protobuf.Message other) { 408 public Builder clone() { 409 return (Builder) super.clone(); 410 } 411 public Builder setField( 412 com.google.protobuf.Descriptors.FieldDescriptor field, 413 java.lang.Object value) { 414 return (Builder) super.setField(field, value); 415 } 416 public Builder clearField( 417 com.google.protobuf.Descriptors.FieldDescriptor field) { 418 return (Builder) super.clearField(field); 419 } 420 public Builder clearOneof( 421 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 422 return (Builder) super.clearOneof(oneof); 423 } 424 public Builder setRepeatedField( 425 com.google.protobuf.Descriptors.FieldDescriptor field, 426 int index, java.lang.Object value) { 427 return (Builder) super.setRepeatedField(field, index, value); 428 } 429 public Builder addRepeatedField( 430 com.google.protobuf.Descriptors.FieldDescriptor field, 431 java.lang.Object value) { 432 return (Builder) super.addRepeatedField(field, value); 433 } 434 public Builder mergeFrom(com.google.protobuf.Message other) { 410 435 if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorSet) { 411 436 return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorSet)other); … … 436 461 file_ = other.file_; 437 462 bitField0_ = (bitField0_ & ~0x00000001); 438 fileBuilder_ = 439 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?463 fileBuilder_ = 464 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 440 465 getFileFieldBuilder() : null; 441 466 } else { … … 444 469 } 445 470 } 446 this.mergeUnknownFields(other. getUnknownFields());447 return this;448 }449 450 @Override 451 471 this.mergeUnknownFields(other.unknownFields); 472 onChanged(); 473 return this; 474 } 475 476 public final boolean isInitialized() { 452 477 for (int i = 0; i < getFileCount(); i++) { 453 478 if (!getFile(i).isInitialized()) { 454 455 479 return false; 456 480 } … … 459 483 } 460 484 461 @Override 462 public Builder mergeFrom( 485 public Builder mergeFrom( 463 486 com.google.protobuf.CodedInputStream input, 464 487 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 469 492 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 470 493 parsedMessage = (com.google.protobuf.DescriptorProtos.FileDescriptorSet) e.getUnfinishedMessage(); 471 throw e ;494 throw e.unwrapIOException(); 472 495 } finally { 473 496 if (parsedMessage != null) { … … 483 506 private void ensureFileIsMutable() { 484 507 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 485 file_ = new java.util.ArrayList< >(file_);508 file_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FileDescriptorProto>(file_); 486 509 bitField0_ |= 0x00000001; 487 510 } 488 511 } 489 512 490 private com.google.protobuf.RepeatedFieldBuilder <513 private com.google.protobuf.RepeatedFieldBuilderV3< 491 514 com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> fileBuilder_; 492 515 … … 494 517 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 495 518 */ 496 @Override 497 public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() { 519 public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto> getFileList() { 498 520 if (fileBuilder_ == null) { 499 521 return java.util.Collections.unmodifiableList(file_); … … 505 527 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 506 528 */ 507 @Override 508 public int getFileCount() { 529 public int getFileCount() { 509 530 if (fileBuilder_ == null) { 510 531 return file_.size(); … … 516 537 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 517 538 */ 518 @Override 519 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { 539 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { 520 540 if (fileBuilder_ == null) { 521 541 return file_.get(index); … … 667 687 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 668 688 */ 669 @Override 670 public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( 689 public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( 671 690 int index) { 672 691 if (fileBuilder_ == null) { … … 678 697 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 679 698 */ 680 @Override 681 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 699 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 682 700 getFileOrBuilderList() { 683 701 if (fileBuilder_ != null) { … … 705 723 * <code>repeated .google.protobuf.FileDescriptorProto file = 1;</code> 706 724 */ 707 public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder> 725 public java.util.List<com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder> 708 726 getFileBuilderList() { 709 727 return getFileFieldBuilder().getBuilderList(); 710 728 } 711 private com.google.protobuf.RepeatedFieldBuilder <712 com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 729 private com.google.protobuf.RepeatedFieldBuilderV3< 730 com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> 713 731 getFileFieldBuilder() { 714 732 if (fileBuilder_ == null) { 715 fileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 733 fileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 734 com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder>( 716 735 file_, 717 736 ((bitField0_ & 0x00000001) == 0x00000001), … … 722 741 return fileBuilder_; 723 742 } 743 public final Builder setUnknownFields( 744 final com.google.protobuf.UnknownFieldSet unknownFields) { 745 return super.setUnknownFields(unknownFields); 746 } 747 748 public final Builder mergeUnknownFields( 749 final com.google.protobuf.UnknownFieldSet unknownFields) { 750 return super.mergeUnknownFields(unknownFields); 751 } 752 724 753 725 754 // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorSet) 726 755 } 727 756 757 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet) 758 private static final com.google.protobuf.DescriptorProtos.FileDescriptorSet DEFAULT_INSTANCE; 728 759 static { 729 defaultInstance = new FileDescriptorSet(true); 730 defaultInstance.initFields(); 731 } 732 733 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet) 760 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.FileDescriptorSet(); 761 } 762 763 public static com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstance() { 764 return DEFAULT_INSTANCE; 765 } 766 767 @java.lang.Deprecated public static final com.google.protobuf.Parser<FileDescriptorSet> 768 PARSER = new com.google.protobuf.AbstractParser<FileDescriptorSet>() { 769 public FileDescriptorSet parsePartialFrom( 770 com.google.protobuf.CodedInputStream input, 771 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 772 throws com.google.protobuf.InvalidProtocolBufferException { 773 return new FileDescriptorSet(input, extensionRegistry); 774 } 775 }; 776 777 public static com.google.protobuf.Parser<FileDescriptorSet> parser() { 778 return PARSER; 779 } 780 781 @java.lang.Override 782 public com.google.protobuf.Parser<FileDescriptorSet> getParserForType() { 783 return PARSER; 784 } 785 786 public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() { 787 return DEFAULT_INSTANCE; 788 } 789 734 790 } 735 791 … … 739 795 740 796 /** 741 * <code>optional string name = 1;</code>742 *743 797 * <pre> 744 798 * file name, relative to root of source tree 745 799 * </pre> 800 * 801 * <code>optional string name = 1;</code> 746 802 */ 747 803 boolean hasName(); 748 804 /** 749 * <code>optional string name = 1;</code>750 *751 805 * <pre> 752 806 * file name, relative to root of source tree 753 807 * </pre> 808 * 809 * <code>optional string name = 1;</code> 754 810 */ 755 811 java.lang.String getName(); 756 812 /** 757 * <code>optional string name = 1;</code>758 *759 813 * <pre> 760 814 * file name, relative to root of source tree 761 815 * </pre> 816 * 817 * <code>optional string name = 1;</code> 762 818 */ 763 819 com.google.protobuf.ByteString … … 765 821 766 822 /** 767 * <code>optional string package = 2;</code>768 *769 823 * <pre> 770 824 * e.g. "foo", "foo.bar", etc. 771 825 * </pre> 826 * 827 * <code>optional string package = 2;</code> 772 828 */ 773 829 boolean hasPackage(); 774 830 /** 775 * <code>optional string package = 2;</code>776 *777 831 * <pre> 778 832 * e.g. "foo", "foo.bar", etc. 779 833 * </pre> 834 * 835 * <code>optional string package = 2;</code> 780 836 */ 781 837 java.lang.String getPackage(); 782 838 /** 783 * <code>optional string package = 2;</code>784 *785 839 * <pre> 786 840 * e.g. "foo", "foo.bar", etc. 787 841 * </pre> 842 * 843 * <code>optional string package = 2;</code> 788 844 */ 789 845 com.google.protobuf.ByteString … … 791 847 792 848 /** 793 * <code>repeated string dependency = 3;</code>794 *795 849 * <pre> 796 850 * Names of files imported by this file. 797 851 * </pre> 798 */ 799 com.google.protobuf.ProtocolStringList 852 * 853 * <code>repeated string dependency = 3;</code> 854 */ 855 java.util.List<java.lang.String> 800 856 getDependencyList(); 801 857 /** 802 * <code>repeated string dependency = 3;</code>803 *804 858 * <pre> 805 859 * Names of files imported by this file. 806 860 * </pre> 861 * 862 * <code>repeated string dependency = 3;</code> 807 863 */ 808 864 int getDependencyCount(); 809 865 /** 810 * <code>repeated string dependency = 3;</code>811 *812 866 * <pre> 813 867 * Names of files imported by this file. 814 868 * </pre> 869 * 870 * <code>repeated string dependency = 3;</code> 815 871 */ 816 872 java.lang.String getDependency(int index); 817 873 /** 818 * <code>repeated string dependency = 3;</code>819 *820 874 * <pre> 821 875 * Names of files imported by this file. 822 876 * </pre> 877 * 878 * <code>repeated string dependency = 3;</code> 823 879 */ 824 880 com.google.protobuf.ByteString … … 826 882 827 883 /** 828 * <code>repeated int32 public_dependency = 10;</code>829 *830 884 * <pre> 831 885 * Indexes of the public imported files in the dependency list above. 832 886 * </pre> 887 * 888 * <code>repeated int32 public_dependency = 10;</code> 833 889 */ 834 890 java.util.List<java.lang.Integer> getPublicDependencyList(); 835 891 /** 836 * <code>repeated int32 public_dependency = 10;</code>837 *838 892 * <pre> 839 893 * Indexes of the public imported files in the dependency list above. 840 894 * </pre> 895 * 896 * <code>repeated int32 public_dependency = 10;</code> 841 897 */ 842 898 int getPublicDependencyCount(); 843 899 /** 844 * <code>repeated int32 public_dependency = 10;</code>845 *846 900 * <pre> 847 901 * Indexes of the public imported files in the dependency list above. 848 902 * </pre> 903 * 904 * <code>repeated int32 public_dependency = 10;</code> 849 905 */ 850 906 int getPublicDependency(int index); 851 907 852 908 /** 853 * <code>repeated int32 weak_dependency = 11;</code>854 *855 909 * <pre> 856 910 * Indexes of the weak imported files in the dependency list. 857 911 * For Google-internal migration only. Do not use. 858 912 * </pre> 913 * 914 * <code>repeated int32 weak_dependency = 11;</code> 859 915 */ 860 916 java.util.List<java.lang.Integer> getWeakDependencyList(); 861 917 /** 862 * <code>repeated int32 weak_dependency = 11;</code>863 *864 918 * <pre> 865 919 * Indexes of the weak imported files in the dependency list. 866 920 * For Google-internal migration only. Do not use. 867 921 * </pre> 922 * 923 * <code>repeated int32 weak_dependency = 11;</code> 868 924 */ 869 925 int getWeakDependencyCount(); 870 926 /** 871 * <code>repeated int32 weak_dependency = 11;</code>872 *873 927 * <pre> 874 928 * Indexes of the weak imported files in the dependency list. 875 929 * For Google-internal migration only. Do not use. 876 930 * </pre> 931 * 932 * <code>repeated int32 weak_dependency = 11;</code> 877 933 */ 878 934 int getWeakDependency(int index); 879 935 880 936 /** 881 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code>882 *883 937 * <pre> 884 938 * All top-level definitions in this file. 885 939 * </pre> 886 */ 887 java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> 940 * 941 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 942 */ 943 java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> 888 944 getMessageTypeList(); 889 945 /** 890 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code>891 *892 946 * <pre> 893 947 * All top-level definitions in this file. 894 948 * </pre> 949 * 950 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 895 951 */ 896 952 com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index); 897 953 /** 898 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code>899 *900 954 * <pre> 901 955 * All top-level definitions in this file. 902 956 * </pre> 957 * 958 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 903 959 */ 904 960 int getMessageTypeCount(); 905 961 /** 906 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code>907 *908 962 * <pre> 909 963 * All top-level definitions in this file. 910 964 * </pre> 911 */ 912 java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 965 * 966 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 967 */ 968 java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 913 969 getMessageTypeOrBuilderList(); 914 970 /** 915 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code>916 *917 971 * <pre> 918 972 * All top-level definitions in this file. 919 973 * </pre> 974 * 975 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 920 976 */ 921 977 com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( … … 925 981 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 926 982 */ 927 java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> 983 java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> 928 984 getEnumTypeList(); 929 985 /** … … 938 994 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 939 995 */ 940 java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 996 java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 941 997 getEnumTypeOrBuilderList(); 942 998 /** … … 949 1005 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 950 1006 */ 951 java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> 1007 java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> 952 1008 getServiceList(); 953 1009 /** … … 962 1018 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 963 1019 */ 964 java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 1020 java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 965 1021 getServiceOrBuilderList(); 966 1022 /** … … 973 1029 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 974 1030 */ 975 java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 1031 java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 976 1032 getExtensionList(); 977 1033 /** … … 986 1042 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 987 1043 */ 988 java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 1044 java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 989 1045 getExtensionOrBuilderList(); 990 1046 /** … … 1008 1064 1009 1065 /** 1010 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>1011 *1012 1066 * <pre> 1013 1067 * This field contains optional information about the original source code. 1014 * You may safely remove this entire field w hithout harming runtime1068 * You may safely remove this entire field without harming runtime 1015 1069 * functionality of the descriptors -- the information is needed only by 1016 1070 * development tools. 1017 1071 * </pre> 1072 * 1073 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1018 1074 */ 1019 1075 boolean hasSourceCodeInfo(); 1020 1076 /** 1021 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>1022 *1023 1077 * <pre> 1024 1078 * This field contains optional information about the original source code. 1025 * You may safely remove this entire field w hithout harming runtime1079 * You may safely remove this entire field without harming runtime 1026 1080 * functionality of the descriptors -- the information is needed only by 1027 1081 * development tools. 1028 1082 * </pre> 1083 * 1084 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1029 1085 */ 1030 1086 com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo(); 1031 1087 /** 1032 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>1033 *1034 1088 * <pre> 1035 1089 * This field contains optional information about the original source code. 1036 * You may safely remove this entire field w hithout harming runtime1090 * You may safely remove this entire field without harming runtime 1037 1091 * functionality of the descriptors -- the information is needed only by 1038 1092 * development tools. 1039 1093 * </pre> 1094 * 1095 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1040 1096 */ 1041 1097 com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder(); 1098 1099 /** 1100 * <pre> 1101 * The syntax of the proto file. 1102 * The supported values are "proto2" and "proto3". 1103 * </pre> 1104 * 1105 * <code>optional string syntax = 12;</code> 1106 */ 1107 boolean hasSyntax(); 1108 /** 1109 * <pre> 1110 * The syntax of the proto file. 1111 * The supported values are "proto2" and "proto3". 1112 * </pre> 1113 * 1114 * <code>optional string syntax = 12;</code> 1115 */ 1116 java.lang.String getSyntax(); 1117 /** 1118 * <pre> 1119 * The syntax of the proto file. 1120 * The supported values are "proto2" and "proto3". 1121 * </pre> 1122 * 1123 * <code>optional string syntax = 12;</code> 1124 */ 1125 com.google.protobuf.ByteString 1126 getSyntaxBytes(); 1042 1127 } 1043 1128 /** 1044 * Protobuf type {@code google.protobuf.FileDescriptorProto}1045 *1046 1129 * <pre> 1047 1130 * Describes a complete .proto file. 1048 1131 * </pre> 1132 * 1133 * Protobuf type {@code google.protobuf.FileDescriptorProto} 1049 1134 */ 1050 public static final class FileDescriptorProto extends1051 com.google.protobuf.GeneratedMessage implements1135 public static final class FileDescriptorProto extends 1136 com.google.protobuf.GeneratedMessageV3 implements 1052 1137 // @@protoc_insertion_point(message_implements:google.protobuf.FileDescriptorProto) 1053 1138 FileDescriptorProtoOrBuilder { 1139 private static final long serialVersionUID = 0L; 1054 1140 // Use FileDescriptorProto.newBuilder() to construct. 1055 private FileDescriptorProto(com.google.protobuf.GeneratedMessage .Builder<?> builder) {1141 private FileDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 1056 1142 super(builder); 1057 this.unknownFields = builder.getUnknownFields(); 1058 } 1059 private FileDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 1060 1061 private static final FileDescriptorProto defaultInstance; 1062 public static FileDescriptorProto getDefaultInstance() { 1063 return defaultInstance; 1064 } 1065 1066 @Override 1067 public FileDescriptorProto getDefaultInstanceForType() { 1068 return defaultInstance; 1069 } 1070 1071 private final com.google.protobuf.UnknownFieldSet unknownFields; 1143 } 1144 private FileDescriptorProto() { 1145 name_ = ""; 1146 package_ = ""; 1147 dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1148 publicDependency_ = java.util.Collections.emptyList(); 1149 weakDependency_ = java.util.Collections.emptyList(); 1150 messageType_ = java.util.Collections.emptyList(); 1151 enumType_ = java.util.Collections.emptyList(); 1152 service_ = java.util.Collections.emptyList(); 1153 extension_ = java.util.Collections.emptyList(); 1154 syntax_ = ""; 1155 } 1156 1072 1157 @java.lang.Override 1073 1158 public final com.google.protobuf.UnknownFieldSet 1074 1159 getUnknownFields() { 1075 1160 return this.unknownFields; 1076 1161 } … … 1079 1164 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1080 1165 throws com.google.protobuf.InvalidProtocolBufferException { 1081 initFields();1166 this(); 1082 1167 int mutable_bitField0_ = 0; 1083 1168 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 1092 1177 break; 1093 1178 default: { 1094 if (!parseUnknownField( input, unknownFields,1095 1179 if (!parseUnknownField( 1180 input, unknownFields, extensionRegistry, tag)) { 1096 1181 done = true; 1097 1182 } … … 1121 1206 case 34: { 1122 1207 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 1123 messageType_ = new java.util.ArrayList< >();1208 messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>(); 1124 1209 mutable_bitField0_ |= 0x00000020; 1125 1210 } 1126 messageType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); 1211 messageType_.add( 1212 input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); 1127 1213 break; 1128 1214 } 1129 1215 case 42: { 1130 1216 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 1131 enumType_ = new java.util.ArrayList< >();1217 enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>(); 1132 1218 mutable_bitField0_ |= 0x00000040; 1133 1219 } 1134 enumType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); 1220 enumType_.add( 1221 input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); 1135 1222 break; 1136 1223 } 1137 1224 case 50: { 1138 1225 if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { 1139 service_ = new java.util.ArrayList< >();1226 service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>(); 1140 1227 mutable_bitField0_ |= 0x00000080; 1141 1228 } 1142 service_.add(input.readMessage(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.PARSER, extensionRegistry)); 1229 service_.add( 1230 input.readMessage(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.PARSER, extensionRegistry)); 1143 1231 break; 1144 1232 } 1145 1233 case 58: { 1146 1234 if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { 1147 extension_ = new java.util.ArrayList< >();1235 extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(); 1148 1236 mutable_bitField0_ |= 0x00000100; 1149 1237 } 1150 extension_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); 1238 extension_.add( 1239 input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); 1151 1240 break; 1152 1241 } … … 1179 1268 case 80: { 1180 1269 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 1181 publicDependency_ = new java.util.ArrayList< >();1270 publicDependency_ = new java.util.ArrayList<java.lang.Integer>(); 1182 1271 mutable_bitField0_ |= 0x00000008; 1183 1272 } … … 1189 1278 int limit = input.pushLimit(length); 1190 1279 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { 1191 publicDependency_ = new java.util.ArrayList< >();1280 publicDependency_ = new java.util.ArrayList<java.lang.Integer>(); 1192 1281 mutable_bitField0_ |= 0x00000008; 1193 1282 } … … 1200 1289 case 88: { 1201 1290 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 1202 weakDependency_ = new java.util.ArrayList< >();1291 weakDependency_ = new java.util.ArrayList<java.lang.Integer>(); 1203 1292 mutable_bitField0_ |= 0x00000010; 1204 1293 } … … 1210 1299 int limit = input.pushLimit(length); 1211 1300 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 1212 weakDependency_ = new java.util.ArrayList< >();1301 weakDependency_ = new java.util.ArrayList<java.lang.Integer>(); 1213 1302 mutable_bitField0_ |= 0x00000010; 1214 1303 } … … 1219 1308 break; 1220 1309 } 1310 case 98: { 1311 com.google.protobuf.ByteString bs = input.readBytes(); 1312 bitField0_ |= 0x00000010; 1313 syntax_ = bs; 1314 break; 1315 } 1221 1316 } 1222 1317 } … … 1225 1320 } catch (java.io.IOException e) { 1226 1321 throw new com.google.protobuf.InvalidProtocolBufferException( 1227 e .getMessage()).setUnfinishedMessage(this);1322 e).setUnfinishedMessage(this); 1228 1323 } finally { 1229 1324 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { … … 1257 1352 } 1258 1353 1259 @Override 1260 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1354 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 1261 1355 internalGetFieldAccessorTable() { 1262 1356 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable … … 1265 1359 } 1266 1360 1267 public static com.google.protobuf.Parser<FileDescriptorProto> PARSER =1268 new com.google.protobuf.AbstractParser<FileDescriptorProto>() {1269 @Override1270 public FileDescriptorProto parsePartialFrom(1271 com.google.protobuf.CodedInputStream input,1272 com.google.protobuf.ExtensionRegistryLite extensionRegistry)1273 throws com.google.protobuf.InvalidProtocolBufferException {1274 return new FileDescriptorProto(input, extensionRegistry);1275 }1276 };1277 1278 @java.lang.Override1279 public com.google.protobuf.Parser<FileDescriptorProto> getParserForType() {1280 return PARSER;1281 }1282 1283 1361 private int bitField0_; 1284 1362 public static final int NAME_FIELD_NUMBER = 1; 1285 private java.lang.Object name_; 1286 /** 1287 * <code>optional string name = 1;</code> 1288 * 1363 private volatile java.lang.Object name_; 1364 /** 1289 1365 * <pre> 1290 1366 * file name, relative to root of source tree 1291 1367 * </pre> 1292 */ 1293 @Override 1294 public boolean hasName() { 1368 * 1369 * <code>optional string name = 1;</code> 1370 */ 1371 public boolean hasName() { 1295 1372 return ((bitField0_ & 0x00000001) == 0x00000001); 1296 1373 } 1297 1374 /** 1298 * <code>optional string name = 1;</code>1299 *1300 1375 * <pre> 1301 1376 * file name, relative to root of source tree 1302 1377 * </pre> 1303 */ 1304 @Override 1305 public java.lang.String getName() { 1378 * 1379 * <code>optional string name = 1;</code> 1380 */ 1381 public java.lang.String getName() { 1306 1382 java.lang.Object ref = name_; 1307 1383 if (ref instanceof java.lang.String) { 1308 1384 return (java.lang.String) ref; 1309 1385 } else { 1310 com.google.protobuf.ByteString bs = 1386 com.google.protobuf.ByteString bs = 1311 1387 (com.google.protobuf.ByteString) ref; 1312 1388 java.lang.String s = bs.toStringUtf8(); … … 1318 1394 } 1319 1395 /** 1320 * <code>optional string name = 1;</code>1321 *1322 1396 * <pre> 1323 1397 * file name, relative to root of source tree 1324 1398 * </pre> 1325 */ 1326 @Override 1327 public com.google.protobuf.ByteString 1399 * 1400 * <code>optional string name = 1;</code> 1401 */ 1402 public com.google.protobuf.ByteString 1328 1403 getNameBytes() { 1329 1404 java.lang.Object ref = name_; 1330 1405 if (ref instanceof java.lang.String) { 1331 com.google.protobuf.ByteString b = 1406 com.google.protobuf.ByteString b = 1332 1407 com.google.protobuf.ByteString.copyFromUtf8( 1333 1408 (java.lang.String) ref); … … 1340 1415 1341 1416 public static final int PACKAGE_FIELD_NUMBER = 2; 1342 private java.lang.Object package_; 1343 /** 1344 * <code>optional string package = 2;</code> 1345 * 1417 private volatile java.lang.Object package_; 1418 /** 1346 1419 * <pre> 1347 1420 * e.g. "foo", "foo.bar", etc. 1348 1421 * </pre> 1349 */ 1350 @Override 1351 public boolean hasPackage() { 1422 * 1423 * <code>optional string package = 2;</code> 1424 */ 1425 public boolean hasPackage() { 1352 1426 return ((bitField0_ & 0x00000002) == 0x00000002); 1353 1427 } 1354 1428 /** 1355 * <code>optional string package = 2;</code>1356 *1357 1429 * <pre> 1358 1430 * e.g. "foo", "foo.bar", etc. 1359 1431 * </pre> 1360 */ 1361 @Override 1362 public java.lang.String getPackage() { 1432 * 1433 * <code>optional string package = 2;</code> 1434 */ 1435 public java.lang.String getPackage() { 1363 1436 java.lang.Object ref = package_; 1364 1437 if (ref instanceof java.lang.String) { 1365 1438 return (java.lang.String) ref; 1366 1439 } else { 1367 com.google.protobuf.ByteString bs = 1440 com.google.protobuf.ByteString bs = 1368 1441 (com.google.protobuf.ByteString) ref; 1369 1442 java.lang.String s = bs.toStringUtf8(); … … 1375 1448 } 1376 1449 /** 1377 * <code>optional string package = 2;</code>1378 *1379 1450 * <pre> 1380 1451 * e.g. "foo", "foo.bar", etc. 1381 1452 * </pre> 1382 */ 1383 @Override 1384 public com.google.protobuf.ByteString 1453 * 1454 * <code>optional string package = 2;</code> 1455 */ 1456 public com.google.protobuf.ByteString 1385 1457 getPackageBytes() { 1386 1458 java.lang.Object ref = package_; 1387 1459 if (ref instanceof java.lang.String) { 1388 com.google.protobuf.ByteString b = 1460 com.google.protobuf.ByteString b = 1389 1461 com.google.protobuf.ByteString.copyFromUtf8( 1390 1462 (java.lang.String) ref); … … 1399 1471 private com.google.protobuf.LazyStringList dependency_; 1400 1472 /** 1401 * <code>repeated string dependency = 3;</code>1402 *1403 1473 * <pre> 1404 1474 * Names of files imported by this file. 1405 1475 * </pre> 1406 */ 1407 @Override 1408 public com.google.protobuf.ProtocolStringList 1476 * 1477 * <code>repeated string dependency = 3;</code> 1478 */ 1479 public com.google.protobuf.ProtocolStringList 1409 1480 getDependencyList() { 1410 1481 return dependency_; 1411 1482 } 1412 1483 /** 1413 * <code>repeated string dependency = 3;</code>1414 *1415 1484 * <pre> 1416 1485 * Names of files imported by this file. 1417 1486 * </pre> 1418 */ 1419 @Override 1420 public int getDependencyCount() { 1487 * 1488 * <code>repeated string dependency = 3;</code> 1489 */ 1490 public int getDependencyCount() { 1421 1491 return dependency_.size(); 1422 1492 } 1423 1493 /** 1424 * <code>repeated string dependency = 3;</code>1425 *1426 1494 * <pre> 1427 1495 * Names of files imported by this file. 1428 1496 * </pre> 1429 */ 1430 @Override 1431 public java.lang.String getDependency(int index) { 1497 * 1498 * <code>repeated string dependency = 3;</code> 1499 */ 1500 public java.lang.String getDependency(int index) { 1432 1501 return dependency_.get(index); 1433 1502 } 1434 1503 /** 1435 * <code>repeated string dependency = 3;</code>1436 *1437 1504 * <pre> 1438 1505 * Names of files imported by this file. 1439 1506 * </pre> 1440 */ 1441 @Override 1442 public com.google.protobuf.ByteString 1507 * 1508 * <code>repeated string dependency = 3;</code> 1509 */ 1510 public com.google.protobuf.ByteString 1443 1511 getDependencyBytes(int index) { 1444 1512 return dependency_.getByteString(index); … … 1448 1516 private java.util.List<java.lang.Integer> publicDependency_; 1449 1517 /** 1450 * <code>repeated int32 public_dependency = 10;</code>1451 *1452 1518 * <pre> 1453 1519 * Indexes of the public imported files in the dependency list above. 1454 1520 * </pre> 1455 */ 1456 @Override 1457 public java.util.List<java.lang.Integer> 1521 * 1522 * <code>repeated int32 public_dependency = 10;</code> 1523 */ 1524 public java.util.List<java.lang.Integer> 1458 1525 getPublicDependencyList() { 1459 1526 return publicDependency_; 1460 1527 } 1461 1528 /** 1462 * <code>repeated int32 public_dependency = 10;</code>1463 *1464 1529 * <pre> 1465 1530 * Indexes of the public imported files in the dependency list above. 1466 1531 * </pre> 1467 */ 1468 @Override 1469 public int getPublicDependencyCount() { 1532 * 1533 * <code>repeated int32 public_dependency = 10;</code> 1534 */ 1535 public int getPublicDependencyCount() { 1470 1536 return publicDependency_.size(); 1471 1537 } 1472 1538 /** 1473 * <code>repeated int32 public_dependency = 10;</code>1474 *1475 1539 * <pre> 1476 1540 * Indexes of the public imported files in the dependency list above. 1477 1541 * </pre> 1478 */ 1479 @Override 1480 public int getPublicDependency(int index) { 1542 * 1543 * <code>repeated int32 public_dependency = 10;</code> 1544 */ 1545 public int getPublicDependency(int index) { 1481 1546 return publicDependency_.get(index); 1482 1547 } … … 1485 1550 private java.util.List<java.lang.Integer> weakDependency_; 1486 1551 /** 1487 * <code>repeated int32 weak_dependency = 11;</code>1488 *1489 1552 * <pre> 1490 1553 * Indexes of the weak imported files in the dependency list. 1491 1554 * For Google-internal migration only. Do not use. 1492 1555 * </pre> 1493 */ 1494 @Override 1495 public java.util.List<java.lang.Integer> 1556 * 1557 * <code>repeated int32 weak_dependency = 11;</code> 1558 */ 1559 public java.util.List<java.lang.Integer> 1496 1560 getWeakDependencyList() { 1497 1561 return weakDependency_; 1498 1562 } 1499 1563 /** 1500 * <code>repeated int32 weak_dependency = 11;</code>1501 *1502 1564 * <pre> 1503 1565 * Indexes of the weak imported files in the dependency list. 1504 1566 * For Google-internal migration only. Do not use. 1505 1567 * </pre> 1506 */ 1507 @Override 1508 public int getWeakDependencyCount() { 1568 * 1569 * <code>repeated int32 weak_dependency = 11;</code> 1570 */ 1571 public int getWeakDependencyCount() { 1509 1572 return weakDependency_.size(); 1510 1573 } 1511 1574 /** 1512 * <code>repeated int32 weak_dependency = 11;</code>1513 *1514 1575 * <pre> 1515 1576 * Indexes of the weak imported files in the dependency list. 1516 1577 * For Google-internal migration only. Do not use. 1517 1578 * </pre> 1518 */ 1519 @Override 1520 public int getWeakDependency(int index) { 1579 * 1580 * <code>repeated int32 weak_dependency = 11;</code> 1581 */ 1582 public int getWeakDependency(int index) { 1521 1583 return weakDependency_.get(index); 1522 1584 } … … 1525 1587 private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageType_; 1526 1588 /** 1527 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code>1528 *1529 1589 * <pre> 1530 1590 * All top-level definitions in this file. 1531 1591 * </pre> 1532 */ 1533 @Override 1534 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() { 1592 * 1593 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 1594 */ 1595 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() { 1535 1596 return messageType_; 1536 1597 } 1537 1598 /** 1538 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code>1539 *1540 1599 * <pre> 1541 1600 * All top-level definitions in this file. 1542 1601 * </pre> 1543 */ 1544 @Override 1545 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 1602 * 1603 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 1604 */ 1605 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 1546 1606 getMessageTypeOrBuilderList() { 1547 1607 return messageType_; 1548 1608 } 1549 1609 /** 1550 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code>1551 *1552 1610 * <pre> 1553 1611 * All top-level definitions in this file. 1554 1612 * </pre> 1555 */ 1556 @Override 1557 public int getMessageTypeCount() { 1613 * 1614 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 1615 */ 1616 public int getMessageTypeCount() { 1558 1617 return messageType_.size(); 1559 1618 } 1560 1619 /** 1561 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code>1562 *1563 1620 * <pre> 1564 1621 * All top-level definitions in this file. 1565 1622 * </pre> 1566 */ 1567 @Override 1568 public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { 1623 * 1624 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 1625 */ 1626 public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { 1569 1627 return messageType_.get(index); 1570 1628 } 1571 1629 /** 1572 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code>1573 *1574 1630 * <pre> 1575 1631 * All top-level definitions in this file. 1576 1632 * </pre> 1577 */ 1578 @Override 1579 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( 1633 * 1634 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 1635 */ 1636 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( 1580 1637 int index) { 1581 1638 return messageType_.get(index); … … 1587 1644 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 1588 1645 */ 1589 @Override 1590 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 1646 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 1591 1647 return enumType_; 1592 1648 } … … 1594 1650 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 1595 1651 */ 1596 @Override 1597 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 1652 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 1598 1653 getEnumTypeOrBuilderList() { 1599 1654 return enumType_; … … 1602 1657 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 1603 1658 */ 1604 @Override 1605 public int getEnumTypeCount() { 1659 public int getEnumTypeCount() { 1606 1660 return enumType_.size(); 1607 1661 } … … 1609 1663 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 1610 1664 */ 1611 @Override 1612 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 1665 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 1613 1666 return enumType_.get(index); 1614 1667 } … … 1616 1669 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 1617 1670 */ 1618 @Override 1619 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 1671 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 1620 1672 int index) { 1621 1673 return enumType_.get(index); … … 1627 1679 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 1628 1680 */ 1629 @Override 1630 public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() { 1681 public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() { 1631 1682 return service_; 1632 1683 } … … 1634 1685 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 1635 1686 */ 1636 @Override 1637 public java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 1687 public java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 1638 1688 getServiceOrBuilderList() { 1639 1689 return service_; … … 1642 1692 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 1643 1693 */ 1644 @Override 1645 public int getServiceCount() { 1694 public int getServiceCount() { 1646 1695 return service_.size(); 1647 1696 } … … 1649 1698 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 1650 1699 */ 1651 @Override 1652 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { 1700 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { 1653 1701 return service_.get(index); 1654 1702 } … … 1656 1704 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 1657 1705 */ 1658 @Override 1659 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( 1706 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( 1660 1707 int index) { 1661 1708 return service_.get(index); … … 1667 1714 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 1668 1715 */ 1669 @Override 1670 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 1716 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 1671 1717 return extension_; 1672 1718 } … … 1674 1720 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 1675 1721 */ 1676 @Override 1677 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 1722 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 1678 1723 getExtensionOrBuilderList() { 1679 1724 return extension_; … … 1682 1727 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 1683 1728 */ 1684 @Override 1685 public int getExtensionCount() { 1729 public int getExtensionCount() { 1686 1730 return extension_.size(); 1687 1731 } … … 1689 1733 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 1690 1734 */ 1691 @Override 1692 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 1735 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 1693 1736 return extension_.get(index); 1694 1737 } … … 1696 1739 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 1697 1740 */ 1698 @Override 1699 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 1741 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 1700 1742 int index) { 1701 1743 return extension_.get(index); … … 1707 1749 * <code>optional .google.protobuf.FileOptions options = 8;</code> 1708 1750 */ 1709 @Override 1710 public boolean hasOptions() { 1751 public boolean hasOptions() { 1711 1752 return ((bitField0_ & 0x00000004) == 0x00000004); 1712 1753 } … … 1714 1755 * <code>optional .google.protobuf.FileOptions options = 8;</code> 1715 1756 */ 1716 @Override 1717 public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { 1718 return options_; 1757 public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { 1758 return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; 1719 1759 } 1720 1760 /** 1721 1761 * <code>optional .google.protobuf.FileOptions options = 8;</code> 1722 1762 */ 1723 @Override 1724 public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { 1725 return options_; 1763 public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { 1764 return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; 1726 1765 } 1727 1766 … … 1729 1768 private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_; 1730 1769 /** 1731 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>1732 *1733 1770 * <pre> 1734 1771 * This field contains optional information about the original source code. 1735 * You may safely remove this entire field w hithout harming runtime1772 * You may safely remove this entire field without harming runtime 1736 1773 * functionality of the descriptors -- the information is needed only by 1737 1774 * development tools. 1738 1775 * </pre> 1739 */ 1740 @Override 1741 public boolean hasSourceCodeInfo() { 1776 * 1777 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1778 */ 1779 public boolean hasSourceCodeInfo() { 1742 1780 return ((bitField0_ & 0x00000008) == 0x00000008); 1743 1781 } 1744 1782 /** 1745 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>1746 *1747 1783 * <pre> 1748 1784 * This field contains optional information about the original source code. 1749 * You may safely remove this entire field w hithout harming runtime1785 * You may safely remove this entire field without harming runtime 1750 1786 * functionality of the descriptors -- the information is needed only by 1751 1787 * development tools. 1752 1788 * </pre> 1753 */ 1754 @Override 1755 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { 1756 return sourceCodeInfo_; 1757 } 1758 /** 1789 * 1759 1790 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1760 * 1791 */ 1792 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { 1793 return sourceCodeInfo_ == null ? com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; 1794 } 1795 /** 1761 1796 * <pre> 1762 1797 * This field contains optional information about the original source code. 1763 * You may safely remove this entire field w hithout harming runtime1798 * You may safely remove this entire field without harming runtime 1764 1799 * functionality of the descriptors -- the information is needed only by 1765 1800 * development tools. 1766 1801 * </pre> 1767 */ 1768 @Override 1769 public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { 1770 return sourceCodeInfo_; 1771 } 1772 1773 private void initFields() { 1774 name_ = ""; 1775 package_ = ""; 1776 dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1777 publicDependency_ = java.util.Collections.emptyList(); 1778 weakDependency_ = java.util.Collections.emptyList(); 1779 messageType_ = java.util.Collections.emptyList(); 1780 enumType_ = java.util.Collections.emptyList(); 1781 service_ = java.util.Collections.emptyList(); 1782 extension_ = java.util.Collections.emptyList(); 1783 options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); 1784 sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); 1785 } 1802 * 1803 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 1804 */ 1805 public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { 1806 return sourceCodeInfo_ == null ? com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; 1807 } 1808 1809 public static final int SYNTAX_FIELD_NUMBER = 12; 1810 private volatile java.lang.Object syntax_; 1811 /** 1812 * <pre> 1813 * The syntax of the proto file. 1814 * The supported values are "proto2" and "proto3". 1815 * </pre> 1816 * 1817 * <code>optional string syntax = 12;</code> 1818 */ 1819 public boolean hasSyntax() { 1820 return ((bitField0_ & 0x00000010) == 0x00000010); 1821 } 1822 /** 1823 * <pre> 1824 * The syntax of the proto file. 1825 * The supported values are "proto2" and "proto3". 1826 * </pre> 1827 * 1828 * <code>optional string syntax = 12;</code> 1829 */ 1830 public java.lang.String getSyntax() { 1831 java.lang.Object ref = syntax_; 1832 if (ref instanceof java.lang.String) { 1833 return (java.lang.String) ref; 1834 } else { 1835 com.google.protobuf.ByteString bs = 1836 (com.google.protobuf.ByteString) ref; 1837 java.lang.String s = bs.toStringUtf8(); 1838 if (bs.isValidUtf8()) { 1839 syntax_ = s; 1840 } 1841 return s; 1842 } 1843 } 1844 /** 1845 * <pre> 1846 * The syntax of the proto file. 1847 * The supported values are "proto2" and "proto3". 1848 * </pre> 1849 * 1850 * <code>optional string syntax = 12;</code> 1851 */ 1852 public com.google.protobuf.ByteString 1853 getSyntaxBytes() { 1854 java.lang.Object ref = syntax_; 1855 if (ref instanceof java.lang.String) { 1856 com.google.protobuf.ByteString b = 1857 com.google.protobuf.ByteString.copyFromUtf8( 1858 (java.lang.String) ref); 1859 syntax_ = b; 1860 return b; 1861 } else { 1862 return (com.google.protobuf.ByteString) ref; 1863 } 1864 } 1865 1786 1866 private byte memoizedIsInitialized = -1; 1787 @Override 1788 public final boolean isInitialized() { 1867 public final boolean isInitialized() { 1789 1868 byte isInitialized = memoizedIsInitialized; 1790 1869 if (isInitialized == 1) return true; … … 1825 1904 } 1826 1905 1827 @Override 1828 public void writeTo(com.google.protobuf.CodedOutputStream output) 1906 public void writeTo(com.google.protobuf.CodedOutputStream output) 1829 1907 throws java.io.IOException { 1830 getSerializedSize();1831 1908 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1832 output.writeBytes(1, getNameBytes());1909 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 1833 1910 } 1834 1911 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1835 output.writeBytes(2, getPackageBytes());1912 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, package_); 1836 1913 } 1837 1914 for (int i = 0; i < dependency_.size(); i++) { 1838 output.writeBytes(3, dependency_.getByteString(i));1915 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dependency_.getRaw(i)); 1839 1916 } 1840 1917 for (int i = 0; i < messageType_.size(); i++) { … … 1851 1928 } 1852 1929 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1853 output.writeMessage(8, options_);1930 output.writeMessage(8, getOptions()); 1854 1931 } 1855 1932 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1856 output.writeMessage(9, sourceCodeInfo_);1933 output.writeMessage(9, getSourceCodeInfo()); 1857 1934 } 1858 1935 for (int i = 0; i < publicDependency_.size(); i++) { … … 1862 1939 output.writeInt32(11, weakDependency_.get(i)); 1863 1940 } 1864 getUnknownFields().writeTo(output); 1865 } 1866 1867 private int memoizedSerializedSize = -1; 1868 @Override 1869 public int getSerializedSize() { 1870 int size = memoizedSerializedSize; 1941 if (((bitField0_ & 0x00000010) == 0x00000010)) { 1942 com.google.protobuf.GeneratedMessageV3.writeString(output, 12, syntax_); 1943 } 1944 unknownFields.writeTo(output); 1945 } 1946 1947 public int getSerializedSize() { 1948 int size = memoizedSize; 1871 1949 if (size != -1) return size; 1872 1950 1873 1951 size = 0; 1874 1952 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1875 size += com.google.protobuf.CodedOutputStream 1876 .computeBytesSize(1, getNameBytes()); 1953 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 1877 1954 } 1878 1955 if (((bitField0_ & 0x00000002) == 0x00000002)) { 1879 size += com.google.protobuf.CodedOutputStream 1880 .computeBytesSize(2, getPackageBytes()); 1956 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, package_); 1881 1957 } 1882 1958 { 1883 1959 int dataSize = 0; 1884 1960 for (int i = 0; i < dependency_.size(); i++) { 1885 dataSize += com.google.protobuf.CodedOutputStream 1886 .computeBytesSizeNoTag(dependency_.getByteString(i)); 1961 dataSize += computeStringSizeNoTag(dependency_.getRaw(i)); 1887 1962 } 1888 1963 size += dataSize; … … 1907 1982 if (((bitField0_ & 0x00000004) == 0x00000004)) { 1908 1983 size += com.google.protobuf.CodedOutputStream 1909 .computeMessageSize(8, options_);1984 .computeMessageSize(8, getOptions()); 1910 1985 } 1911 1986 if (((bitField0_ & 0x00000008) == 0x00000008)) { 1912 1987 size += com.google.protobuf.CodedOutputStream 1913 .computeMessageSize(9, sourceCodeInfo_);1988 .computeMessageSize(9, getSourceCodeInfo()); 1914 1989 } 1915 1990 { … … 1931 2006 size += 1 * getWeakDependencyList().size(); 1932 2007 } 1933 size += getUnknownFields().getSerializedSize(); 1934 memoizedSerializedSize = size; 2008 if (((bitField0_ & 0x00000010) == 0x00000010)) { 2009 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, syntax_); 2010 } 2011 size += unknownFields.getSerializedSize(); 2012 memoizedSize = size; 1935 2013 return size; 1936 2014 } 1937 2015 1938 private static final long serialVersionUID = 0L;1939 2016 @java.lang.Override 1940 protected java.lang.Object writeReplace() 1941 throws java.io.ObjectStreamException { 1942 return super.writeReplace(); 1943 } 1944 2017 public boolean equals(final java.lang.Object obj) { 2018 if (obj == this) { 2019 return true; 2020 } 2021 if (!(obj instanceof com.google.protobuf.DescriptorProtos.FileDescriptorProto)) { 2022 return super.equals(obj); 2023 } 2024 com.google.protobuf.DescriptorProtos.FileDescriptorProto other = (com.google.protobuf.DescriptorProtos.FileDescriptorProto) obj; 2025 2026 boolean result = true; 2027 result = result && (hasName() == other.hasName()); 2028 if (hasName()) { 2029 result = result && getName() 2030 .equals(other.getName()); 2031 } 2032 result = result && (hasPackage() == other.hasPackage()); 2033 if (hasPackage()) { 2034 result = result && getPackage() 2035 .equals(other.getPackage()); 2036 } 2037 result = result && getDependencyList() 2038 .equals(other.getDependencyList()); 2039 result = result && getPublicDependencyList() 2040 .equals(other.getPublicDependencyList()); 2041 result = result && getWeakDependencyList() 2042 .equals(other.getWeakDependencyList()); 2043 result = result && getMessageTypeList() 2044 .equals(other.getMessageTypeList()); 2045 result = result && getEnumTypeList() 2046 .equals(other.getEnumTypeList()); 2047 result = result && getServiceList() 2048 .equals(other.getServiceList()); 2049 result = result && getExtensionList() 2050 .equals(other.getExtensionList()); 2051 result = result && (hasOptions() == other.hasOptions()); 2052 if (hasOptions()) { 2053 result = result && getOptions() 2054 .equals(other.getOptions()); 2055 } 2056 result = result && (hasSourceCodeInfo() == other.hasSourceCodeInfo()); 2057 if (hasSourceCodeInfo()) { 2058 result = result && getSourceCodeInfo() 2059 .equals(other.getSourceCodeInfo()); 2060 } 2061 result = result && (hasSyntax() == other.hasSyntax()); 2062 if (hasSyntax()) { 2063 result = result && getSyntax() 2064 .equals(other.getSyntax()); 2065 } 2066 result = result && unknownFields.equals(other.unknownFields); 2067 return result; 2068 } 2069 2070 @java.lang.Override 2071 public int hashCode() { 2072 if (memoizedHashCode != 0) { 2073 return memoizedHashCode; 2074 } 2075 int hash = 41; 2076 hash = (19 * hash) + getDescriptor().hashCode(); 2077 if (hasName()) { 2078 hash = (37 * hash) + NAME_FIELD_NUMBER; 2079 hash = (53 * hash) + getName().hashCode(); 2080 } 2081 if (hasPackage()) { 2082 hash = (37 * hash) + PACKAGE_FIELD_NUMBER; 2083 hash = (53 * hash) + getPackage().hashCode(); 2084 } 2085 if (getDependencyCount() > 0) { 2086 hash = (37 * hash) + DEPENDENCY_FIELD_NUMBER; 2087 hash = (53 * hash) + getDependencyList().hashCode(); 2088 } 2089 if (getPublicDependencyCount() > 0) { 2090 hash = (37 * hash) + PUBLIC_DEPENDENCY_FIELD_NUMBER; 2091 hash = (53 * hash) + getPublicDependencyList().hashCode(); 2092 } 2093 if (getWeakDependencyCount() > 0) { 2094 hash = (37 * hash) + WEAK_DEPENDENCY_FIELD_NUMBER; 2095 hash = (53 * hash) + getWeakDependencyList().hashCode(); 2096 } 2097 if (getMessageTypeCount() > 0) { 2098 hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER; 2099 hash = (53 * hash) + getMessageTypeList().hashCode(); 2100 } 2101 if (getEnumTypeCount() > 0) { 2102 hash = (37 * hash) + ENUM_TYPE_FIELD_NUMBER; 2103 hash = (53 * hash) + getEnumTypeList().hashCode(); 2104 } 2105 if (getServiceCount() > 0) { 2106 hash = (37 * hash) + SERVICE_FIELD_NUMBER; 2107 hash = (53 * hash) + getServiceList().hashCode(); 2108 } 2109 if (getExtensionCount() > 0) { 2110 hash = (37 * hash) + EXTENSION_FIELD_NUMBER; 2111 hash = (53 * hash) + getExtensionList().hashCode(); 2112 } 2113 if (hasOptions()) { 2114 hash = (37 * hash) + OPTIONS_FIELD_NUMBER; 2115 hash = (53 * hash) + getOptions().hashCode(); 2116 } 2117 if (hasSourceCodeInfo()) { 2118 hash = (37 * hash) + SOURCE_CODE_INFO_FIELD_NUMBER; 2119 hash = (53 * hash) + getSourceCodeInfo().hashCode(); 2120 } 2121 if (hasSyntax()) { 2122 hash = (37 * hash) + SYNTAX_FIELD_NUMBER; 2123 hash = (53 * hash) + getSyntax().hashCode(); 2124 } 2125 hash = (29 * hash) + unknownFields.hashCode(); 2126 memoizedHashCode = hash; 2127 return hash; 2128 } 2129 2130 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 2131 java.nio.ByteBuffer data) 2132 throws com.google.protobuf.InvalidProtocolBufferException { 2133 return PARSER.parseFrom(data); 2134 } 2135 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 2136 java.nio.ByteBuffer data, 2137 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2138 throws com.google.protobuf.InvalidProtocolBufferException { 2139 return PARSER.parseFrom(data, extensionRegistry); 2140 } 1945 2141 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1946 2142 com.google.protobuf.ByteString data) … … 1966 2162 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(java.io.InputStream input) 1967 2163 throws java.io.IOException { 1968 return PARSER.parseFrom(input); 2164 return com.google.protobuf.GeneratedMessageV3 2165 .parseWithIOException(PARSER, input); 1969 2166 } 1970 2167 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( … … 1972 2169 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1973 2170 throws java.io.IOException { 1974 return PARSER.parseFrom(input, extensionRegistry); 2171 return com.google.protobuf.GeneratedMessageV3 2172 .parseWithIOException(PARSER, input, extensionRegistry); 1975 2173 } 1976 2174 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input) 1977 2175 throws java.io.IOException { 1978 return PARSER.parseDelimitedFrom(input); 2176 return com.google.protobuf.GeneratedMessageV3 2177 .parseDelimitedWithIOException(PARSER, input); 1979 2178 } 1980 2179 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom( … … 1982 2181 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1983 2182 throws java.io.IOException { 1984 return PARSER.parseDelimitedFrom(input, extensionRegistry); 2183 return com.google.protobuf.GeneratedMessageV3 2184 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 1985 2185 } 1986 2186 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( 1987 2187 com.google.protobuf.CodedInputStream input) 1988 2188 throws java.io.IOException { 1989 return PARSER.parseFrom(input); 2189 return com.google.protobuf.GeneratedMessageV3 2190 .parseWithIOException(PARSER, input); 1990 2191 } 1991 2192 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( … … 1993 2194 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1994 2195 throws java.io.IOException { 1995 return PARSER.parseFrom(input, extensionRegistry); 1996 } 1997 1998 public static Builder newBuilder() { return Builder.create(); } 1999 @Override 2000 public Builder newBuilderForType() { return newBuilder(); } 2196 return com.google.protobuf.GeneratedMessageV3 2197 .parseWithIOException(PARSER, input, extensionRegistry); 2198 } 2199 2200 public Builder newBuilderForType() { return newBuilder(); } 2201 public static Builder newBuilder() { 2202 return DEFAULT_INSTANCE.toBuilder(); 2203 } 2001 2204 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorProto prototype) { 2002 return newBuilder().mergeFrom(prototype); 2003 } 2004 @Override 2005 public Builder toBuilder() { return newBuilder(this); } 2205 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2206 } 2207 public Builder toBuilder() { 2208 return this == DEFAULT_INSTANCE 2209 ? new Builder() : new Builder().mergeFrom(this); 2210 } 2006 2211 2007 2212 @java.lang.Override 2008 2213 protected Builder newBuilderForType( 2009 com.google.protobuf.GeneratedMessage .BuilderParent parent) {2214 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2010 2215 Builder builder = new Builder(parent); 2011 2216 return builder; 2012 2217 } 2013 2218 /** 2014 * Protobuf type {@code google.protobuf.FileDescriptorProto}2015 *2016 2219 * <pre> 2017 2220 * Describes a complete .proto file. 2018 2221 * </pre> 2222 * 2223 * Protobuf type {@code google.protobuf.FileDescriptorProto} 2019 2224 */ 2020 2225 public static final class Builder extends 2021 com.google.protobuf.GeneratedMessage .Builder<Builder> implements2226 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 2022 2227 // @@protoc_insertion_point(builder_implements:google.protobuf.FileDescriptorProto) 2023 2228 com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder { … … 2027 2232 } 2028 2233 2029 @Override 2030 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2234 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 2031 2235 internalGetFieldAccessorTable() { 2032 2236 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable … … 2041 2245 2042 2246 private Builder( 2043 com.google.protobuf.GeneratedMessage .BuilderParent parent) {2247 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2044 2248 super(parent); 2045 2249 maybeForceBuilderInitialization(); 2046 2250 } 2047 2251 private void maybeForceBuilderInitialization() { 2048 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 2252 if (com.google.protobuf.GeneratedMessageV3 2253 .alwaysUseFieldBuilders) { 2049 2254 getMessageTypeFieldBuilder(); 2050 2255 getEnumTypeFieldBuilder(); … … 2055 2260 } 2056 2261 } 2057 private static Builder create() { 2058 return new Builder(); 2059 } 2060 2061 @Override 2062 public Builder clear() { 2262 public Builder clear() { 2063 2263 super.clear(); 2064 2264 name_ = ""; … … 2097 2297 } 2098 2298 if (optionsBuilder_ == null) { 2099 options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance();2299 options_ = null; 2100 2300 } else { 2101 2301 optionsBuilder_.clear(); … … 2103 2303 bitField0_ = (bitField0_ & ~0x00000200); 2104 2304 if (sourceCodeInfoBuilder_ == null) { 2105 sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance();2305 sourceCodeInfo_ = null; 2106 2306 } else { 2107 2307 sourceCodeInfoBuilder_.clear(); 2108 2308 } 2109 2309 bitField0_ = (bitField0_ & ~0x00000400); 2110 return this; 2111 } 2112 2113 @Override 2114 public Builder clone() { 2115 return create().mergeFrom(buildPartial()); 2116 } 2117 2118 @Override 2119 public com.google.protobuf.Descriptors.Descriptor 2310 syntax_ = ""; 2311 bitField0_ = (bitField0_ & ~0x00000800); 2312 return this; 2313 } 2314 2315 public com.google.protobuf.Descriptors.Descriptor 2120 2316 getDescriptorForType() { 2121 2317 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; 2122 2318 } 2123 2319 2124 @Override 2125 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { 2320 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { 2126 2321 return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance(); 2127 2322 } 2128 2323 2129 @Override 2130 public com.google.protobuf.DescriptorProtos.FileDescriptorProto build() { 2324 public com.google.protobuf.DescriptorProtos.FileDescriptorProto build() { 2131 2325 com.google.protobuf.DescriptorProtos.FileDescriptorProto result = buildPartial(); 2132 2326 if (!result.isInitialized()) { … … 2136 2330 } 2137 2331 2138 @Override 2139 public com.google.protobuf.DescriptorProtos.FileDescriptorProto buildPartial() { 2332 public com.google.protobuf.DescriptorProtos.FileDescriptorProto buildPartial() { 2140 2333 com.google.protobuf.DescriptorProtos.FileDescriptorProto result = new com.google.protobuf.DescriptorProtos.FileDescriptorProto(this); 2141 2334 int from_bitField0_ = bitField0_; … … 2216 2409 result.sourceCodeInfo_ = sourceCodeInfoBuilder_.build(); 2217 2410 } 2411 if (((from_bitField0_ & 0x00000800) == 0x00000800)) { 2412 to_bitField0_ |= 0x00000010; 2413 } 2414 result.syntax_ = syntax_; 2218 2415 result.bitField0_ = to_bitField0_; 2219 2416 onBuilt(); … … 2221 2418 } 2222 2419 2223 @Override 2224 public Builder mergeFrom(com.google.protobuf.Message other) { 2420 public Builder clone() { 2421 return (Builder) super.clone(); 2422 } 2423 public Builder setField( 2424 com.google.protobuf.Descriptors.FieldDescriptor field, 2425 java.lang.Object value) { 2426 return (Builder) super.setField(field, value); 2427 } 2428 public Builder clearField( 2429 com.google.protobuf.Descriptors.FieldDescriptor field) { 2430 return (Builder) super.clearField(field); 2431 } 2432 public Builder clearOneof( 2433 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2434 return (Builder) super.clearOneof(oneof); 2435 } 2436 public Builder setRepeatedField( 2437 com.google.protobuf.Descriptors.FieldDescriptor field, 2438 int index, java.lang.Object value) { 2439 return (Builder) super.setRepeatedField(field, index, value); 2440 } 2441 public Builder addRepeatedField( 2442 com.google.protobuf.Descriptors.FieldDescriptor field, 2443 java.lang.Object value) { 2444 return (Builder) super.addRepeatedField(field, value); 2445 } 2446 public Builder mergeFrom(com.google.protobuf.Message other) { 2225 2447 if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorProto) { 2226 2448 return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorProto)other); … … 2291 2513 messageType_ = other.messageType_; 2292 2514 bitField0_ = (bitField0_ & ~0x00000020); 2293 messageTypeBuilder_ = 2294 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?2515 messageTypeBuilder_ = 2516 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 2295 2517 getMessageTypeFieldBuilder() : null; 2296 2518 } else { … … 2317 2539 enumType_ = other.enumType_; 2318 2540 bitField0_ = (bitField0_ & ~0x00000040); 2319 enumTypeBuilder_ = 2320 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?2541 enumTypeBuilder_ = 2542 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 2321 2543 getEnumTypeFieldBuilder() : null; 2322 2544 } else { … … 2343 2565 service_ = other.service_; 2344 2566 bitField0_ = (bitField0_ & ~0x00000080); 2345 serviceBuilder_ = 2346 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?2567 serviceBuilder_ = 2568 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 2347 2569 getServiceFieldBuilder() : null; 2348 2570 } else { … … 2369 2591 extension_ = other.extension_; 2370 2592 bitField0_ = (bitField0_ & ~0x00000100); 2371 extensionBuilder_ = 2372 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?2593 extensionBuilder_ = 2594 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 2373 2595 getExtensionFieldBuilder() : null; 2374 2596 } else { … … 2383 2605 mergeSourceCodeInfo(other.getSourceCodeInfo()); 2384 2606 } 2385 this.mergeUnknownFields(other.getUnknownFields()); 2386 return this; 2387 } 2388 2389 @Override 2390 public final boolean isInitialized() { 2607 if (other.hasSyntax()) { 2608 bitField0_ |= 0x00000800; 2609 syntax_ = other.syntax_; 2610 onChanged(); 2611 } 2612 this.mergeUnknownFields(other.unknownFields); 2613 onChanged(); 2614 return this; 2615 } 2616 2617 public final boolean isInitialized() { 2391 2618 for (int i = 0; i < getMessageTypeCount(); i++) { 2392 2619 if (!getMessageType(i).isInitialized()) { 2393 2394 2620 return false; 2395 2621 } … … 2397 2623 for (int i = 0; i < getEnumTypeCount(); i++) { 2398 2624 if (!getEnumType(i).isInitialized()) { 2399 2400 2625 return false; 2401 2626 } … … 2403 2628 for (int i = 0; i < getServiceCount(); i++) { 2404 2629 if (!getService(i).isInitialized()) { 2405 2406 2630 return false; 2407 2631 } … … 2409 2633 for (int i = 0; i < getExtensionCount(); i++) { 2410 2634 if (!getExtension(i).isInitialized()) { 2411 2412 2635 return false; 2413 2636 } … … 2415 2638 if (hasOptions()) { 2416 2639 if (!getOptions().isInitialized()) { 2417 2418 2640 return false; 2419 2641 } … … 2422 2644 } 2423 2645 2424 @Override 2425 public Builder mergeFrom( 2646 public Builder mergeFrom( 2426 2647 com.google.protobuf.CodedInputStream input, 2427 2648 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 2432 2653 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2433 2654 parsedMessage = (com.google.protobuf.DescriptorProtos.FileDescriptorProto) e.getUnfinishedMessage(); 2434 throw e ;2655 throw e.unwrapIOException(); 2435 2656 } finally { 2436 2657 if (parsedMessage != null) { … … 2444 2665 private java.lang.Object name_ = ""; 2445 2666 /** 2667 * <pre> 2668 * file name, relative to root of source tree 2669 * </pre> 2670 * 2446 2671 * <code>optional string name = 1;</code> 2447 * 2672 */ 2673 public boolean hasName() { 2674 return ((bitField0_ & 0x00000001) == 0x00000001); 2675 } 2676 /** 2448 2677 * <pre> 2449 2678 * file name, relative to root of source tree 2450 2679 * </pre> 2451 */ 2452 @Override 2453 public boolean hasName() { 2454 return ((bitField0_ & 0x00000001) == 0x00000001); 2455 } 2456 /** 2680 * 2457 2681 * <code>optional string name = 1;</code> 2458 * 2459 * <pre> 2460 * file name, relative to root of source tree 2461 * </pre> 2462 */ 2463 @Override 2464 public java.lang.String getName() { 2682 */ 2683 public java.lang.String getName() { 2465 2684 java.lang.Object ref = name_; 2466 2685 if (!(ref instanceof java.lang.String)) { … … 2477 2696 } 2478 2697 /** 2698 * <pre> 2699 * file name, relative to root of source tree 2700 * </pre> 2701 * 2479 2702 * <code>optional string name = 1;</code> 2480 * 2481 * <pre> 2482 * file name, relative to root of source tree 2483 * </pre> 2484 */ 2485 @Override 2486 public com.google.protobuf.ByteString 2703 */ 2704 public com.google.protobuf.ByteString 2487 2705 getNameBytes() { 2488 2706 java.lang.Object ref = name_; 2489 2707 if (ref instanceof String) { 2490 com.google.protobuf.ByteString b = 2708 com.google.protobuf.ByteString b = 2491 2709 com.google.protobuf.ByteString.copyFromUtf8( 2492 2710 (java.lang.String) ref); … … 2498 2716 } 2499 2717 /** 2718 * <pre> 2719 * file name, relative to root of source tree 2720 * </pre> 2721 * 2500 2722 * <code>optional string name = 1;</code> 2501 *2502 * <pre>2503 * file name, relative to root of source tree2504 * </pre>2505 2723 */ 2506 2724 public Builder setName( … … 2515 2733 } 2516 2734 /** 2735 * <pre> 2736 * file name, relative to root of source tree 2737 * </pre> 2738 * 2517 2739 * <code>optional string name = 1;</code> 2518 *2519 * <pre>2520 * file name, relative to root of source tree2521 * </pre>2522 2740 */ 2523 2741 public Builder clearName() { … … 2528 2746 } 2529 2747 /** 2748 * <pre> 2749 * file name, relative to root of source tree 2750 * </pre> 2751 * 2530 2752 * <code>optional string name = 1;</code> 2531 *2532 * <pre>2533 * file name, relative to root of source tree2534 * </pre>2535 2753 */ 2536 2754 public Builder setNameBytes( … … 2547 2765 private java.lang.Object package_ = ""; 2548 2766 /** 2767 * <pre> 2768 * e.g. "foo", "foo.bar", etc. 2769 * </pre> 2770 * 2549 2771 * <code>optional string package = 2;</code> 2550 * 2772 */ 2773 public boolean hasPackage() { 2774 return ((bitField0_ & 0x00000002) == 0x00000002); 2775 } 2776 /** 2551 2777 * <pre> 2552 2778 * e.g. "foo", "foo.bar", etc. 2553 2779 * </pre> 2554 */ 2555 @Override 2556 public boolean hasPackage() { 2557 return ((bitField0_ & 0x00000002) == 0x00000002); 2558 } 2559 /** 2780 * 2560 2781 * <code>optional string package = 2;</code> 2561 * 2562 * <pre> 2563 * e.g. "foo", "foo.bar", etc. 2564 * </pre> 2565 */ 2566 @Override 2567 public java.lang.String getPackage() { 2782 */ 2783 public java.lang.String getPackage() { 2568 2784 java.lang.Object ref = package_; 2569 2785 if (!(ref instanceof java.lang.String)) { … … 2580 2796 } 2581 2797 /** 2798 * <pre> 2799 * e.g. "foo", "foo.bar", etc. 2800 * </pre> 2801 * 2582 2802 * <code>optional string package = 2;</code> 2583 * 2584 * <pre> 2585 * e.g. "foo", "foo.bar", etc. 2586 * </pre> 2587 */ 2588 @Override 2589 public com.google.protobuf.ByteString 2803 */ 2804 public com.google.protobuf.ByteString 2590 2805 getPackageBytes() { 2591 2806 java.lang.Object ref = package_; 2592 2807 if (ref instanceof String) { 2593 com.google.protobuf.ByteString b = 2808 com.google.protobuf.ByteString b = 2594 2809 com.google.protobuf.ByteString.copyFromUtf8( 2595 2810 (java.lang.String) ref); … … 2601 2816 } 2602 2817 /** 2818 * <pre> 2819 * e.g. "foo", "foo.bar", etc. 2820 * </pre> 2821 * 2603 2822 * <code>optional string package = 2;</code> 2604 *2605 * <pre>2606 * e.g. "foo", "foo.bar", etc.2607 * </pre>2608 2823 */ 2609 2824 public Builder setPackage( … … 2618 2833 } 2619 2834 /** 2835 * <pre> 2836 * e.g. "foo", "foo.bar", etc. 2837 * </pre> 2838 * 2620 2839 * <code>optional string package = 2;</code> 2621 *2622 * <pre>2623 * e.g. "foo", "foo.bar", etc.2624 * </pre>2625 2840 */ 2626 2841 public Builder clearPackage() { … … 2631 2846 } 2632 2847 /** 2848 * <pre> 2849 * e.g. "foo", "foo.bar", etc. 2850 * </pre> 2851 * 2633 2852 * <code>optional string package = 2;</code> 2634 *2635 * <pre>2636 * e.g. "foo", "foo.bar", etc.2637 * </pre>2638 2853 */ 2639 2854 public Builder setPackageBytes( … … 2656 2871 } 2657 2872 /** 2873 * <pre> 2874 * Names of files imported by this file. 2875 * </pre> 2876 * 2658 2877 * <code>repeated string dependency = 3;</code> 2659 * 2660 * <pre> 2661 * Names of files imported by this file. 2662 * </pre> 2663 */ 2664 @Override 2665 public com.google.protobuf.ProtocolStringList 2878 */ 2879 public com.google.protobuf.ProtocolStringList 2666 2880 getDependencyList() { 2667 2881 return dependency_.getUnmodifiableView(); 2668 2882 } 2669 2883 /** 2884 * <pre> 2885 * Names of files imported by this file. 2886 * </pre> 2887 * 2670 2888 * <code>repeated string dependency = 3;</code> 2671 * 2889 */ 2890 public int getDependencyCount() { 2891 return dependency_.size(); 2892 } 2893 /** 2672 2894 * <pre> 2673 2895 * Names of files imported by this file. 2674 2896 * </pre> 2675 */ 2676 @Override 2677 public int getDependencyCount() { 2678 return dependency_.size(); 2679 } 2680 /** 2897 * 2681 2898 * <code>repeated string dependency = 3;</code> 2682 * 2899 */ 2900 public java.lang.String getDependency(int index) { 2901 return dependency_.get(index); 2902 } 2903 /** 2683 2904 * <pre> 2684 2905 * Names of files imported by this file. 2685 2906 * </pre> 2686 */ 2687 @Override 2688 public java.lang.String getDependency(int index) { 2689 return dependency_.get(index); 2690 } 2691 /** 2907 * 2692 2908 * <code>repeated string dependency = 3;</code> 2693 * 2694 * <pre> 2695 * Names of files imported by this file. 2696 * </pre> 2697 */ 2698 @Override 2699 public com.google.protobuf.ByteString 2909 */ 2910 public com.google.protobuf.ByteString 2700 2911 getDependencyBytes(int index) { 2701 2912 return dependency_.getByteString(index); 2702 2913 } 2703 2914 /** 2915 * <pre> 2916 * Names of files imported by this file. 2917 * </pre> 2918 * 2704 2919 * <code>repeated string dependency = 3;</code> 2705 *2706 * <pre>2707 * Names of files imported by this file.2708 * </pre>2709 2920 */ 2710 2921 public Builder setDependency( … … 2719 2930 } 2720 2931 /** 2932 * <pre> 2933 * Names of files imported by this file. 2934 * </pre> 2935 * 2721 2936 * <code>repeated string dependency = 3;</code> 2722 *2723 * <pre>2724 * Names of files imported by this file.2725 * </pre>2726 2937 */ 2727 2938 public Builder addDependency( … … 2736 2947 } 2737 2948 /** 2949 * <pre> 2950 * Names of files imported by this file. 2951 * </pre> 2952 * 2738 2953 * <code>repeated string dependency = 3;</code> 2739 *2740 * <pre>2741 * Names of files imported by this file.2742 * </pre>2743 2954 */ 2744 2955 public Builder addAllDependency( … … 2751 2962 } 2752 2963 /** 2964 * <pre> 2965 * Names of files imported by this file. 2966 * </pre> 2967 * 2753 2968 * <code>repeated string dependency = 3;</code> 2754 *2755 * <pre>2756 * Names of files imported by this file.2757 * </pre>2758 2969 */ 2759 2970 public Builder clearDependency() { … … 2764 2975 } 2765 2976 /** 2977 * <pre> 2978 * Names of files imported by this file. 2979 * </pre> 2980 * 2766 2981 * <code>repeated string dependency = 3;</code> 2767 *2768 * <pre>2769 * Names of files imported by this file.2770 * </pre>2771 2982 */ 2772 2983 public Builder addDependencyBytes( … … 2784 2995 private void ensurePublicDependencyIsMutable() { 2785 2996 if (!((bitField0_ & 0x00000008) == 0x00000008)) { 2786 publicDependency_ = new java.util.ArrayList< >(publicDependency_);2997 publicDependency_ = new java.util.ArrayList<java.lang.Integer>(publicDependency_); 2787 2998 bitField0_ |= 0x00000008; 2788 2999 } 2789 3000 } 2790 3001 /** 3002 * <pre> 3003 * Indexes of the public imported files in the dependency list above. 3004 * </pre> 3005 * 2791 3006 * <code>repeated int32 public_dependency = 10;</code> 2792 * 2793 * <pre> 2794 * Indexes of the public imported files in the dependency list above. 2795 * </pre> 2796 */ 2797 @Override 2798 public java.util.List<java.lang.Integer> 3007 */ 3008 public java.util.List<java.lang.Integer> 2799 3009 getPublicDependencyList() { 2800 3010 return java.util.Collections.unmodifiableList(publicDependency_); 2801 3011 } 2802 3012 /** 3013 * <pre> 3014 * Indexes of the public imported files in the dependency list above. 3015 * </pre> 3016 * 2803 3017 * <code>repeated int32 public_dependency = 10;</code> 2804 * 3018 */ 3019 public int getPublicDependencyCount() { 3020 return publicDependency_.size(); 3021 } 3022 /** 2805 3023 * <pre> 2806 3024 * Indexes of the public imported files in the dependency list above. 2807 3025 * </pre> 2808 */ 2809 @Override 2810 public int getPublicDependencyCount() { 2811 return publicDependency_.size(); 2812 } 2813 /** 3026 * 2814 3027 * <code>repeated int32 public_dependency = 10;</code> 2815 * 3028 */ 3029 public int getPublicDependency(int index) { 3030 return publicDependency_.get(index); 3031 } 3032 /** 2816 3033 * <pre> 2817 3034 * Indexes of the public imported files in the dependency list above. 2818 3035 * </pre> 2819 */ 2820 @Override 2821 public int getPublicDependency(int index) { 2822 return publicDependency_.get(index); 2823 } 2824 /** 3036 * 2825 3037 * <code>repeated int32 public_dependency = 10;</code> 2826 *2827 * <pre>2828 * Indexes of the public imported files in the dependency list above.2829 * </pre>2830 3038 */ 2831 3039 public Builder setPublicDependency( … … 2837 3045 } 2838 3046 /** 3047 * <pre> 3048 * Indexes of the public imported files in the dependency list above. 3049 * </pre> 3050 * 2839 3051 * <code>repeated int32 public_dependency = 10;</code> 2840 *2841 * <pre>2842 * Indexes of the public imported files in the dependency list above.2843 * </pre>2844 3052 */ 2845 3053 public Builder addPublicDependency(int value) { … … 2850 3058 } 2851 3059 /** 3060 * <pre> 3061 * Indexes of the public imported files in the dependency list above. 3062 * </pre> 3063 * 2852 3064 * <code>repeated int32 public_dependency = 10;</code> 2853 *2854 * <pre>2855 * Indexes of the public imported files in the dependency list above.2856 * </pre>2857 3065 */ 2858 3066 public Builder addAllPublicDependency( … … 2865 3073 } 2866 3074 /** 3075 * <pre> 3076 * Indexes of the public imported files in the dependency list above. 3077 * </pre> 3078 * 2867 3079 * <code>repeated int32 public_dependency = 10;</code> 2868 *2869 * <pre>2870 * Indexes of the public imported files in the dependency list above.2871 * </pre>2872 3080 */ 2873 3081 public Builder clearPublicDependency() { … … 2881 3089 private void ensureWeakDependencyIsMutable() { 2882 3090 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 2883 weakDependency_ = new java.util.ArrayList< >(weakDependency_);3091 weakDependency_ = new java.util.ArrayList<java.lang.Integer>(weakDependency_); 2884 3092 bitField0_ |= 0x00000010; 2885 3093 } 2886 3094 } 2887 3095 /** 2888 * <code>repeated int32 weak_dependency = 11;</code>2889 *2890 3096 * <pre> 2891 3097 * Indexes of the weak imported files in the dependency list. 2892 3098 * For Google-internal migration only. Do not use. 2893 3099 * </pre> 2894 */ 2895 @Override 2896 public java.util.List<java.lang.Integer> 3100 * 3101 * <code>repeated int32 weak_dependency = 11;</code> 3102 */ 3103 public java.util.List<java.lang.Integer> 2897 3104 getWeakDependencyList() { 2898 3105 return java.util.Collections.unmodifiableList(weakDependency_); 2899 3106 } 2900 3107 /** 2901 * <code>repeated int32 weak_dependency = 11;</code>2902 *2903 3108 * <pre> 2904 3109 * Indexes of the weak imported files in the dependency list. 2905 3110 * For Google-internal migration only. Do not use. 2906 3111 * </pre> 2907 */ 2908 @Override 2909 public int getWeakDependencyCount() { 3112 * 3113 * <code>repeated int32 weak_dependency = 11;</code> 3114 */ 3115 public int getWeakDependencyCount() { 2910 3116 return weakDependency_.size(); 2911 3117 } 2912 3118 /** 2913 * <code>repeated int32 weak_dependency = 11;</code>2914 *2915 3119 * <pre> 2916 3120 * Indexes of the weak imported files in the dependency list. 2917 3121 * For Google-internal migration only. Do not use. 2918 3122 * </pre> 2919 */ 2920 @Override 2921 public int getWeakDependency(int index) { 3123 * 3124 * <code>repeated int32 weak_dependency = 11;</code> 3125 */ 3126 public int getWeakDependency(int index) { 2922 3127 return weakDependency_.get(index); 2923 3128 } 2924 3129 /** 2925 * <code>repeated int32 weak_dependency = 11;</code>2926 *2927 3130 * <pre> 2928 3131 * Indexes of the weak imported files in the dependency list. 2929 3132 * For Google-internal migration only. Do not use. 2930 3133 * </pre> 3134 * 3135 * <code>repeated int32 weak_dependency = 11;</code> 2931 3136 */ 2932 3137 public Builder setWeakDependency( … … 2938 3143 } 2939 3144 /** 2940 * <code>repeated int32 weak_dependency = 11;</code>2941 *2942 3145 * <pre> 2943 3146 * Indexes of the weak imported files in the dependency list. 2944 3147 * For Google-internal migration only. Do not use. 2945 3148 * </pre> 3149 * 3150 * <code>repeated int32 weak_dependency = 11;</code> 2946 3151 */ 2947 3152 public Builder addWeakDependency(int value) { … … 2952 3157 } 2953 3158 /** 2954 * <code>repeated int32 weak_dependency = 11;</code>2955 *2956 3159 * <pre> 2957 3160 * Indexes of the weak imported files in the dependency list. 2958 3161 * For Google-internal migration only. Do not use. 2959 3162 * </pre> 3163 * 3164 * <code>repeated int32 weak_dependency = 11;</code> 2960 3165 */ 2961 3166 public Builder addAllWeakDependency( … … 2968 3173 } 2969 3174 /** 2970 * <code>repeated int32 weak_dependency = 11;</code>2971 *2972 3175 * <pre> 2973 3176 * Indexes of the weak imported files in the dependency list. 2974 3177 * For Google-internal migration only. Do not use. 2975 3178 * </pre> 3179 * 3180 * <code>repeated int32 weak_dependency = 11;</code> 2976 3181 */ 2977 3182 public Builder clearWeakDependency() { … … 2986 3191 private void ensureMessageTypeIsMutable() { 2987 3192 if (!((bitField0_ & 0x00000020) == 0x00000020)) { 2988 messageType_ = new java.util.ArrayList< >(messageType_);3193 messageType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>(messageType_); 2989 3194 bitField0_ |= 0x00000020; 2990 3195 } 2991 3196 } 2992 3197 2993 private com.google.protobuf.RepeatedFieldBuilder <3198 private com.google.protobuf.RepeatedFieldBuilderV3< 2994 3199 com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> messageTypeBuilder_; 2995 3200 2996 3201 /** 3202 * <pre> 3203 * All top-level definitions in this file. 3204 * </pre> 3205 * 2997 3206 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 2998 * 2999 * <pre> 3000 * All top-level definitions in this file. 3001 * </pre> 3002 */ 3003 @Override 3004 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() { 3207 */ 3208 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getMessageTypeList() { 3005 3209 if (messageTypeBuilder_ == null) { 3006 3210 return java.util.Collections.unmodifiableList(messageType_); … … 3010 3214 } 3011 3215 /** 3216 * <pre> 3217 * All top-level definitions in this file. 3218 * </pre> 3219 * 3012 3220 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3013 * 3014 * <pre> 3015 * All top-level definitions in this file. 3016 * </pre> 3017 */ 3018 @Override 3019 public int getMessageTypeCount() { 3221 */ 3222 public int getMessageTypeCount() { 3020 3223 if (messageTypeBuilder_ == null) { 3021 3224 return messageType_.size(); … … 3025 3228 } 3026 3229 /** 3230 * <pre> 3231 * All top-level definitions in this file. 3232 * </pre> 3233 * 3027 3234 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3028 * 3029 * <pre> 3030 * All top-level definitions in this file. 3031 * </pre> 3032 */ 3033 @Override 3034 public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { 3235 */ 3236 public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { 3035 3237 if (messageTypeBuilder_ == null) { 3036 3238 return messageType_.get(index); … … 3040 3242 } 3041 3243 /** 3244 * <pre> 3245 * All top-level definitions in this file. 3246 * </pre> 3247 * 3042 3248 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3043 *3044 * <pre>3045 * All top-level definitions in this file.3046 * </pre>3047 3249 */ 3048 3250 public Builder setMessageType( … … 3061 3263 } 3062 3264 /** 3265 * <pre> 3266 * All top-level definitions in this file. 3267 * </pre> 3268 * 3063 3269 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3064 *3065 * <pre>3066 * All top-level definitions in this file.3067 * </pre>3068 3270 */ 3069 3271 public Builder setMessageType( … … 3079 3281 } 3080 3282 /** 3283 * <pre> 3284 * All top-level definitions in this file. 3285 * </pre> 3286 * 3081 3287 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3082 *3083 * <pre>3084 * All top-level definitions in this file.3085 * </pre>3086 3288 */ 3087 3289 public Builder addMessageType(com.google.protobuf.DescriptorProtos.DescriptorProto value) { … … 3099 3301 } 3100 3302 /** 3303 * <pre> 3304 * All top-level definitions in this file. 3305 * </pre> 3306 * 3101 3307 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3102 *3103 * <pre>3104 * All top-level definitions in this file.3105 * </pre>3106 3308 */ 3107 3309 public Builder addMessageType( … … 3120 3322 } 3121 3323 /** 3324 * <pre> 3325 * All top-level definitions in this file. 3326 * </pre> 3327 * 3122 3328 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3123 *3124 * <pre>3125 * All top-level definitions in this file.3126 * </pre>3127 3329 */ 3128 3330 public Builder addMessageType( … … 3138 3340 } 3139 3341 /** 3342 * <pre> 3343 * All top-level definitions in this file. 3344 * </pre> 3345 * 3140 3346 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3141 *3142 * <pre>3143 * All top-level definitions in this file.3144 * </pre>3145 3347 */ 3146 3348 public Builder addMessageType( … … 3156 3358 } 3157 3359 /** 3360 * <pre> 3361 * All top-level definitions in this file. 3362 * </pre> 3363 * 3158 3364 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3159 *3160 * <pre>3161 * All top-level definitions in this file.3162 * </pre>3163 3365 */ 3164 3366 public Builder addAllMessageType( … … 3175 3377 } 3176 3378 /** 3379 * <pre> 3380 * All top-level definitions in this file. 3381 * </pre> 3382 * 3177 3383 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3178 *3179 * <pre>3180 * All top-level definitions in this file.3181 * </pre>3182 3384 */ 3183 3385 public Builder clearMessageType() { … … 3192 3394 } 3193 3395 /** 3396 * <pre> 3397 * All top-level definitions in this file. 3398 * </pre> 3399 * 3194 3400 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3195 *3196 * <pre>3197 * All top-level definitions in this file.3198 * </pre>3199 3401 */ 3200 3402 public Builder removeMessageType(int index) { … … 3209 3411 } 3210 3412 /** 3413 * <pre> 3414 * All top-level definitions in this file. 3415 * </pre> 3416 * 3211 3417 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3212 *3213 * <pre>3214 * All top-level definitions in this file.3215 * </pre>3216 3418 */ 3217 3419 public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getMessageTypeBuilder( … … 3220 3422 } 3221 3423 /** 3424 * <pre> 3425 * All top-level definitions in this file. 3426 * </pre> 3427 * 3222 3428 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3223 * 3224 * <pre> 3225 * All top-level definitions in this file. 3226 * </pre> 3227 */ 3228 @Override 3229 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( 3429 */ 3430 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( 3230 3431 int index) { 3231 3432 if (messageTypeBuilder_ == null) { … … 3235 3436 } 3236 3437 /** 3438 * <pre> 3439 * All top-level definitions in this file. 3440 * </pre> 3441 * 3237 3442 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3238 * 3239 * <pre> 3240 * All top-level definitions in this file. 3241 * </pre> 3242 */ 3243 @Override 3244 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 3443 */ 3444 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 3245 3445 getMessageTypeOrBuilderList() { 3246 3446 if (messageTypeBuilder_ != null) { … … 3251 3451 } 3252 3452 /** 3453 * <pre> 3454 * All top-level definitions in this file. 3455 * </pre> 3456 * 3253 3457 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3254 *3255 * <pre>3256 * All top-level definitions in this file.3257 * </pre>3258 3458 */ 3259 3459 public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder() { … … 3262 3462 } 3263 3463 /** 3464 * <pre> 3465 * All top-level definitions in this file. 3466 * </pre> 3467 * 3264 3468 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3265 *3266 * <pre>3267 * All top-level definitions in this file.3268 * </pre>3269 3469 */ 3270 3470 public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder( … … 3274 3474 } 3275 3475 /** 3476 * <pre> 3477 * All top-level definitions in this file. 3478 * </pre> 3479 * 3276 3480 * <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> 3277 * 3278 * <pre> 3279 * All top-level definitions in this file. 3280 * </pre> 3281 */ 3282 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.Builder> 3481 */ 3482 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.Builder> 3283 3483 getMessageTypeBuilderList() { 3284 3484 return getMessageTypeFieldBuilder().getBuilderList(); 3285 3485 } 3286 private com.google.protobuf.RepeatedFieldBuilder <3287 com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 3486 private com.google.protobuf.RepeatedFieldBuilderV3< 3487 com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 3288 3488 getMessageTypeFieldBuilder() { 3289 3489 if (messageTypeBuilder_ == null) { 3290 messageTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 3490 messageTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 3491 com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>( 3291 3492 messageType_, 3292 3493 ((bitField0_ & 0x00000020) == 0x00000020), … … 3302 3503 private void ensureEnumTypeIsMutable() { 3303 3504 if (!((bitField0_ & 0x00000040) == 0x00000040)) { 3304 enumType_ = new java.util.ArrayList< >(enumType_);3505 enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>(enumType_); 3305 3506 bitField0_ |= 0x00000040; 3306 3507 } 3307 3508 } 3308 3509 3309 private com.google.protobuf.RepeatedFieldBuilder <3510 private com.google.protobuf.RepeatedFieldBuilderV3< 3310 3511 com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_; 3311 3512 … … 3313 3514 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3314 3515 */ 3315 @Override 3316 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 3516 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 3317 3517 if (enumTypeBuilder_ == null) { 3318 3518 return java.util.Collections.unmodifiableList(enumType_); … … 3324 3524 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3325 3525 */ 3326 @Override 3327 public int getEnumTypeCount() { 3526 public int getEnumTypeCount() { 3328 3527 if (enumTypeBuilder_ == null) { 3329 3528 return enumType_.size(); … … 3335 3534 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3336 3535 */ 3337 @Override 3338 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 3536 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 3339 3537 if (enumTypeBuilder_ == null) { 3340 3538 return enumType_.get(index); … … 3486 3684 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3487 3685 */ 3488 @Override 3489 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 3686 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 3490 3687 int index) { 3491 3688 if (enumTypeBuilder_ == null) { … … 3497 3694 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3498 3695 */ 3499 @Override 3500 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 3696 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 3501 3697 getEnumTypeOrBuilderList() { 3502 3698 if (enumTypeBuilder_ != null) { … … 3524 3720 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> 3525 3721 */ 3526 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder> 3722 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder> 3527 3723 getEnumTypeBuilderList() { 3528 3724 return getEnumTypeFieldBuilder().getBuilderList(); 3529 3725 } 3530 private com.google.protobuf.RepeatedFieldBuilder <3531 com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 3726 private com.google.protobuf.RepeatedFieldBuilderV3< 3727 com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 3532 3728 getEnumTypeFieldBuilder() { 3533 3729 if (enumTypeBuilder_ == null) { 3534 enumTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 3730 enumTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 3731 com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder>( 3535 3732 enumType_, 3536 3733 ((bitField0_ & 0x00000040) == 0x00000040), … … 3546 3743 private void ensureServiceIsMutable() { 3547 3744 if (!((bitField0_ & 0x00000080) == 0x00000080)) { 3548 service_ = new java.util.ArrayList< >(service_);3745 service_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>(service_); 3549 3746 bitField0_ |= 0x00000080; 3550 3747 } 3551 3748 } 3552 3749 3553 private com.google.protobuf.RepeatedFieldBuilder <3750 private com.google.protobuf.RepeatedFieldBuilderV3< 3554 3751 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> serviceBuilder_; 3555 3752 … … 3557 3754 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3558 3755 */ 3559 @Override 3560 public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() { 3756 public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> getServiceList() { 3561 3757 if (serviceBuilder_ == null) { 3562 3758 return java.util.Collections.unmodifiableList(service_); … … 3568 3764 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3569 3765 */ 3570 @Override 3571 public int getServiceCount() { 3766 public int getServiceCount() { 3572 3767 if (serviceBuilder_ == null) { 3573 3768 return service_.size(); … … 3579 3774 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3580 3775 */ 3581 @Override 3582 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { 3776 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { 3583 3777 if (serviceBuilder_ == null) { 3584 3778 return service_.get(index); … … 3730 3924 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3731 3925 */ 3732 @Override 3733 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( 3926 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( 3734 3927 int index) { 3735 3928 if (serviceBuilder_ == null) { … … 3741 3934 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3742 3935 */ 3743 @Override 3744 public java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 3936 public java.util.List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 3745 3937 getServiceOrBuilderList() { 3746 3938 if (serviceBuilder_ != null) { … … 3768 3960 * <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> 3769 3961 */ 3770 public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder> 3962 public java.util.List<com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder> 3771 3963 getServiceBuilderList() { 3772 3964 return getServiceFieldBuilder().getBuilderList(); 3773 3965 } 3774 private com.google.protobuf.RepeatedFieldBuilder <3775 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 3966 private com.google.protobuf.RepeatedFieldBuilderV3< 3967 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> 3776 3968 getServiceFieldBuilder() { 3777 3969 if (serviceBuilder_ == null) { 3778 serviceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 3970 serviceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 3971 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder>( 3779 3972 service_, 3780 3973 ((bitField0_ & 0x00000080) == 0x00000080), … … 3790 3983 private void ensureExtensionIsMutable() { 3791 3984 if (!((bitField0_ & 0x00000100) == 0x00000100)) { 3792 extension_ = new java.util.ArrayList< >(extension_);3985 extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(extension_); 3793 3986 bitField0_ |= 0x00000100; 3794 3987 } 3795 3988 } 3796 3989 3797 private com.google.protobuf.RepeatedFieldBuilder <3990 private com.google.protobuf.RepeatedFieldBuilderV3< 3798 3991 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_; 3799 3992 … … 3801 3994 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3802 3995 */ 3803 @Override 3804 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 3996 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 3805 3997 if (extensionBuilder_ == null) { 3806 3998 return java.util.Collections.unmodifiableList(extension_); … … 3812 4004 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3813 4005 */ 3814 @Override 3815 public int getExtensionCount() { 4006 public int getExtensionCount() { 3816 4007 if (extensionBuilder_ == null) { 3817 4008 return extension_.size(); … … 3823 4014 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3824 4015 */ 3825 @Override 3826 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 4016 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 3827 4017 if (extensionBuilder_ == null) { 3828 4018 return extension_.get(index); … … 3974 4164 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3975 4165 */ 3976 @Override 3977 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 4166 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 3978 4167 int index) { 3979 4168 if (extensionBuilder_ == null) { … … 3985 4174 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 3986 4175 */ 3987 @Override 3988 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 4176 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 3989 4177 getExtensionOrBuilderList() { 3990 4178 if (extensionBuilder_ != null) { … … 4012 4200 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> 4013 4201 */ 4014 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> 4202 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> 4015 4203 getExtensionBuilderList() { 4016 4204 return getExtensionFieldBuilder().getBuilderList(); 4017 4205 } 4018 private com.google.protobuf.RepeatedFieldBuilder <4019 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 4206 private com.google.protobuf.RepeatedFieldBuilderV3< 4207 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 4020 4208 getExtensionFieldBuilder() { 4021 4209 if (extensionBuilder_ == null) { 4022 extensionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 4210 extensionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 4211 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( 4023 4212 extension_, 4024 4213 ((bitField0_ & 0x00000100) == 0x00000100), … … 4030 4219 } 4031 4220 4032 private com.google.protobuf.DescriptorProtos.FileOptions options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance();4033 private com.google.protobuf.SingleFieldBuilder <4221 private com.google.protobuf.DescriptorProtos.FileOptions options_ = null; 4222 private com.google.protobuf.SingleFieldBuilderV3< 4034 4223 com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> optionsBuilder_; 4035 4224 /** 4036 4225 * <code>optional .google.protobuf.FileOptions options = 8;</code> 4037 4226 */ 4038 @Override 4039 public boolean hasOptions() { 4227 public boolean hasOptions() { 4040 4228 return ((bitField0_ & 0x00000200) == 0x00000200); 4041 4229 } … … 4043 4231 * <code>optional .google.protobuf.FileOptions options = 8;</code> 4044 4232 */ 4045 @Override 4046 public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { 4233 public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { 4047 4234 if (optionsBuilder_ == null) { 4048 return options_ ;4235 return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; 4049 4236 } else { 4050 4237 return optionsBuilder_.getMessage(); … … 4087 4274 if (optionsBuilder_ == null) { 4088 4275 if (((bitField0_ & 0x00000200) == 0x00000200) && 4276 options_ != null && 4089 4277 options_ != com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance()) { 4090 4278 options_ = … … 4105 4293 public Builder clearOptions() { 4106 4294 if (optionsBuilder_ == null) { 4107 options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance();4295 options_ = null; 4108 4296 onChanged(); 4109 4297 } else { … … 4124 4312 * <code>optional .google.protobuf.FileOptions options = 8;</code> 4125 4313 */ 4126 @Override 4127 public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { 4314 public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { 4128 4315 if (optionsBuilder_ != null) { 4129 4316 return optionsBuilder_.getMessageOrBuilder(); 4130 4317 } else { 4131 return options_; 4318 return options_ == null ? 4319 com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; 4132 4320 } 4133 4321 } … … 4135 4323 * <code>optional .google.protobuf.FileOptions options = 8;</code> 4136 4324 */ 4137 private com.google.protobuf.SingleFieldBuilder <4138 com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> 4325 private com.google.protobuf.SingleFieldBuilderV3< 4326 com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> 4139 4327 getOptionsFieldBuilder() { 4140 4328 if (optionsBuilder_ == null) { 4141 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<>( 4329 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 4330 com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder>( 4142 4331 getOptions(), 4143 4332 getParentForChildren(), … … 4148 4337 } 4149 4338 4150 private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance();4151 private com.google.protobuf.SingleFieldBuilder <4339 private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_ = null; 4340 private com.google.protobuf.SingleFieldBuilderV3< 4152 4341 com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder> sourceCodeInfoBuilder_; 4153 4342 /** 4154 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>4155 *4156 4343 * <pre> 4157 4344 * This field contains optional information about the original source code. 4158 * You may safely remove this entire field w hithout harming runtime4345 * You may safely remove this entire field without harming runtime 4159 4346 * functionality of the descriptors -- the information is needed only by 4160 4347 * development tools. 4161 4348 * </pre> 4162 */ 4163 @Override 4164 public boolean hasSourceCodeInfo() { 4349 * 4350 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4351 */ 4352 public boolean hasSourceCodeInfo() { 4165 4353 return ((bitField0_ & 0x00000400) == 0x00000400); 4166 4354 } 4167 4355 /** 4168 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>4169 *4170 4356 * <pre> 4171 4357 * This field contains optional information about the original source code. 4172 * You may safely remove this entire field w hithout harming runtime4358 * You may safely remove this entire field without harming runtime 4173 4359 * functionality of the descriptors -- the information is needed only by 4174 4360 * development tools. 4175 4361 * </pre> 4176 */ 4177 @Override 4178 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { 4362 * 4363 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4364 */ 4365 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { 4179 4366 if (sourceCodeInfoBuilder_ == null) { 4180 return sourceCodeInfo_ ;4367 return sourceCodeInfo_ == null ? com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; 4181 4368 } else { 4182 4369 return sourceCodeInfoBuilder_.getMessage(); … … 4184 4371 } 4185 4372 /** 4186 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>4187 *4188 4373 * <pre> 4189 4374 * This field contains optional information about the original source code. 4190 * You may safely remove this entire field w hithout harming runtime4375 * You may safely remove this entire field without harming runtime 4191 4376 * functionality of the descriptors -- the information is needed only by 4192 4377 * development tools. 4193 4378 * </pre> 4379 * 4380 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4194 4381 */ 4195 4382 public Builder setSourceCodeInfo(com.google.protobuf.DescriptorProtos.SourceCodeInfo value) { … … 4207 4394 } 4208 4395 /** 4209 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>4210 *4211 4396 * <pre> 4212 4397 * This field contains optional information about the original source code. 4213 * You may safely remove this entire field w hithout harming runtime4398 * You may safely remove this entire field without harming runtime 4214 4399 * functionality of the descriptors -- the information is needed only by 4215 4400 * development tools. 4216 4401 * </pre> 4402 * 4403 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4217 4404 */ 4218 4405 public Builder setSourceCodeInfo( … … 4228 4415 } 4229 4416 /** 4230 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>4231 *4232 4417 * <pre> 4233 4418 * This field contains optional information about the original source code. 4234 * You may safely remove this entire field w hithout harming runtime4419 * You may safely remove this entire field without harming runtime 4235 4420 * functionality of the descriptors -- the information is needed only by 4236 4421 * development tools. 4237 4422 * </pre> 4423 * 4424 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4238 4425 */ 4239 4426 public Builder mergeSourceCodeInfo(com.google.protobuf.DescriptorProtos.SourceCodeInfo value) { 4240 4427 if (sourceCodeInfoBuilder_ == null) { 4241 4428 if (((bitField0_ & 0x00000400) == 0x00000400) && 4429 sourceCodeInfo_ != null && 4242 4430 sourceCodeInfo_ != com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance()) { 4243 4431 sourceCodeInfo_ = … … 4254 4442 } 4255 4443 /** 4256 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>4257 *4258 4444 * <pre> 4259 4445 * This field contains optional information about the original source code. 4260 * You may safely remove this entire field w hithout harming runtime4446 * You may safely remove this entire field without harming runtime 4261 4447 * functionality of the descriptors -- the information is needed only by 4262 4448 * development tools. 4263 4449 * </pre> 4450 * 4451 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4264 4452 */ 4265 4453 public Builder clearSourceCodeInfo() { 4266 4454 if (sourceCodeInfoBuilder_ == null) { 4267 sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance();4455 sourceCodeInfo_ = null; 4268 4456 onChanged(); 4269 4457 } else { … … 4274 4462 } 4275 4463 /** 4276 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>4277 *4278 4464 * <pre> 4279 4465 * This field contains optional information about the original source code. 4280 * You may safely remove this entire field w hithout harming runtime4466 * You may safely remove this entire field without harming runtime 4281 4467 * functionality of the descriptors -- the information is needed only by 4282 4468 * development tools. 4283 4469 * </pre> 4470 * 4471 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4284 4472 */ 4285 4473 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder getSourceCodeInfoBuilder() { … … 4289 4477 } 4290 4478 /** 4291 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>4292 *4293 4479 * <pre> 4294 4480 * This field contains optional information about the original source code. 4295 * You may safely remove this entire field w hithout harming runtime4481 * You may safely remove this entire field without harming runtime 4296 4482 * functionality of the descriptors -- the information is needed only by 4297 4483 * development tools. 4298 4484 * </pre> 4299 */ 4300 @Override 4301 public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { 4485 * 4486 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4487 */ 4488 public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { 4302 4489 if (sourceCodeInfoBuilder_ != null) { 4303 4490 return sourceCodeInfoBuilder_.getMessageOrBuilder(); 4304 4491 } else { 4305 return sourceCodeInfo_; 4306 } 4307 } 4308 /** 4309 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4310 * 4492 return sourceCodeInfo_ == null ? 4493 com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; 4494 } 4495 } 4496 /** 4311 4497 * <pre> 4312 4498 * This field contains optional information about the original source code. 4313 * You may safely remove this entire field w hithout harming runtime4499 * You may safely remove this entire field without harming runtime 4314 4500 * functionality of the descriptors -- the information is needed only by 4315 4501 * development tools. 4316 4502 * </pre> 4317 */ 4318 private com.google.protobuf.SingleFieldBuilder< 4319 com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder> 4503 * 4504 * <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> 4505 */ 4506 private com.google.protobuf.SingleFieldBuilderV3< 4507 com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder> 4320 4508 getSourceCodeInfoFieldBuilder() { 4321 4509 if (sourceCodeInfoBuilder_ == null) { 4322 sourceCodeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<>( 4510 sourceCodeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 4511 com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder>( 4323 4512 getSourceCodeInfo(), 4324 4513 getParentForChildren(), … … 4329 4518 } 4330 4519 4520 private java.lang.Object syntax_ = ""; 4521 /** 4522 * <pre> 4523 * The syntax of the proto file. 4524 * The supported values are "proto2" and "proto3". 4525 * </pre> 4526 * 4527 * <code>optional string syntax = 12;</code> 4528 */ 4529 public boolean hasSyntax() { 4530 return ((bitField0_ & 0x00000800) == 0x00000800); 4531 } 4532 /** 4533 * <pre> 4534 * The syntax of the proto file. 4535 * The supported values are "proto2" and "proto3". 4536 * </pre> 4537 * 4538 * <code>optional string syntax = 12;</code> 4539 */ 4540 public java.lang.String getSyntax() { 4541 java.lang.Object ref = syntax_; 4542 if (!(ref instanceof java.lang.String)) { 4543 com.google.protobuf.ByteString bs = 4544 (com.google.protobuf.ByteString) ref; 4545 java.lang.String s = bs.toStringUtf8(); 4546 if (bs.isValidUtf8()) { 4547 syntax_ = s; 4548 } 4549 return s; 4550 } else { 4551 return (java.lang.String) ref; 4552 } 4553 } 4554 /** 4555 * <pre> 4556 * The syntax of the proto file. 4557 * The supported values are "proto2" and "proto3". 4558 * </pre> 4559 * 4560 * <code>optional string syntax = 12;</code> 4561 */ 4562 public com.google.protobuf.ByteString 4563 getSyntaxBytes() { 4564 java.lang.Object ref = syntax_; 4565 if (ref instanceof String) { 4566 com.google.protobuf.ByteString b = 4567 com.google.protobuf.ByteString.copyFromUtf8( 4568 (java.lang.String) ref); 4569 syntax_ = b; 4570 return b; 4571 } else { 4572 return (com.google.protobuf.ByteString) ref; 4573 } 4574 } 4575 /** 4576 * <pre> 4577 * The syntax of the proto file. 4578 * The supported values are "proto2" and "proto3". 4579 * </pre> 4580 * 4581 * <code>optional string syntax = 12;</code> 4582 */ 4583 public Builder setSyntax( 4584 java.lang.String value) { 4585 if (value == null) { 4586 throw new NullPointerException(); 4587 } 4588 bitField0_ |= 0x00000800; 4589 syntax_ = value; 4590 onChanged(); 4591 return this; 4592 } 4593 /** 4594 * <pre> 4595 * The syntax of the proto file. 4596 * The supported values are "proto2" and "proto3". 4597 * </pre> 4598 * 4599 * <code>optional string syntax = 12;</code> 4600 */ 4601 public Builder clearSyntax() { 4602 bitField0_ = (bitField0_ & ~0x00000800); 4603 syntax_ = getDefaultInstance().getSyntax(); 4604 onChanged(); 4605 return this; 4606 } 4607 /** 4608 * <pre> 4609 * The syntax of the proto file. 4610 * The supported values are "proto2" and "proto3". 4611 * </pre> 4612 * 4613 * <code>optional string syntax = 12;</code> 4614 */ 4615 public Builder setSyntaxBytes( 4616 com.google.protobuf.ByteString value) { 4617 if (value == null) { 4618 throw new NullPointerException(); 4619 } 4620 bitField0_ |= 0x00000800; 4621 syntax_ = value; 4622 onChanged(); 4623 return this; 4624 } 4625 public final Builder setUnknownFields( 4626 final com.google.protobuf.UnknownFieldSet unknownFields) { 4627 return super.setUnknownFields(unknownFields); 4628 } 4629 4630 public final Builder mergeUnknownFields( 4631 final com.google.protobuf.UnknownFieldSet unknownFields) { 4632 return super.mergeUnknownFields(unknownFields); 4633 } 4634 4635 4331 4636 // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorProto) 4332 4637 } 4333 4638 4639 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto) 4640 private static final com.google.protobuf.DescriptorProtos.FileDescriptorProto DEFAULT_INSTANCE; 4334 4641 static { 4335 defaultInstance = new FileDescriptorProto(true); 4336 defaultInstance.initFields(); 4337 } 4338 4339 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto) 4642 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.FileDescriptorProto(); 4643 } 4644 4645 public static com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstance() { 4646 return DEFAULT_INSTANCE; 4647 } 4648 4649 @java.lang.Deprecated public static final com.google.protobuf.Parser<FileDescriptorProto> 4650 PARSER = new com.google.protobuf.AbstractParser<FileDescriptorProto>() { 4651 public FileDescriptorProto parsePartialFrom( 4652 com.google.protobuf.CodedInputStream input, 4653 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4654 throws com.google.protobuf.InvalidProtocolBufferException { 4655 return new FileDescriptorProto(input, extensionRegistry); 4656 } 4657 }; 4658 4659 public static com.google.protobuf.Parser<FileDescriptorProto> parser() { 4660 return PARSER; 4661 } 4662 4663 @java.lang.Override 4664 public com.google.protobuf.Parser<FileDescriptorProto> getParserForType() { 4665 return PARSER; 4666 } 4667 4668 public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { 4669 return DEFAULT_INSTANCE; 4670 } 4671 4340 4672 } 4341 4673 … … 4361 4693 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 4362 4694 */ 4363 java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 4695 java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 4364 4696 getFieldList(); 4365 4697 /** … … 4374 4706 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 4375 4707 */ 4376 java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 4708 java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 4377 4709 getFieldOrBuilderList(); 4378 4710 /** … … 4385 4717 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 4386 4718 */ 4387 java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 4719 java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> 4388 4720 getExtensionList(); 4389 4721 /** … … 4398 4730 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 4399 4731 */ 4400 java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 4732 java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 4401 4733 getExtensionOrBuilderList(); 4402 4734 /** … … 4409 4741 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 4410 4742 */ 4411 java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> 4743 java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> 4412 4744 getNestedTypeList(); 4413 4745 /** … … 4422 4754 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 4423 4755 */ 4424 java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 4756 java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 4425 4757 getNestedTypeOrBuilderList(); 4426 4758 /** … … 4433 4765 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 4434 4766 */ 4435 java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> 4767 java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> 4436 4768 getEnumTypeList(); 4437 4769 /** … … 4446 4778 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 4447 4779 */ 4448 java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 4780 java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 4449 4781 getEnumTypeOrBuilderList(); 4450 4782 /** … … 4457 4789 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 4458 4790 */ 4459 java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> 4791 java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> 4460 4792 getExtensionRangeList(); 4461 4793 /** … … 4470 4802 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 4471 4803 */ 4472 java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 4804 java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 4473 4805 getExtensionRangeOrBuilderList(); 4474 4806 /** … … 4481 4813 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 4482 4814 */ 4483 java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> 4815 java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> 4484 4816 getOneofDeclList(); 4485 4817 /** … … 4494 4826 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 4495 4827 */ 4496 java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> 4828 java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> 4497 4829 getOneofDeclOrBuilderList(); 4498 4830 /** … … 4514 4846 */ 4515 4847 com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder(); 4848 4849 /** 4850 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 4851 */ 4852 java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> 4853 getReservedRangeList(); 4854 /** 4855 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 4856 */ 4857 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index); 4858 /** 4859 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 4860 */ 4861 int getReservedRangeCount(); 4862 /** 4863 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 4864 */ 4865 java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> 4866 getReservedRangeOrBuilderList(); 4867 /** 4868 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 4869 */ 4870 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( 4871 int index); 4872 4873 /** 4874 * <pre> 4875 * Reserved field names, which may not be used by fields in the same message. 4876 * A given name may only be reserved once. 4877 * </pre> 4878 * 4879 * <code>repeated string reserved_name = 10;</code> 4880 */ 4881 java.util.List<java.lang.String> 4882 getReservedNameList(); 4883 /** 4884 * <pre> 4885 * Reserved field names, which may not be used by fields in the same message. 4886 * A given name may only be reserved once. 4887 * </pre> 4888 * 4889 * <code>repeated string reserved_name = 10;</code> 4890 */ 4891 int getReservedNameCount(); 4892 /** 4893 * <pre> 4894 * Reserved field names, which may not be used by fields in the same message. 4895 * A given name may only be reserved once. 4896 * </pre> 4897 * 4898 * <code>repeated string reserved_name = 10;</code> 4899 */ 4900 java.lang.String getReservedName(int index); 4901 /** 4902 * <pre> 4903 * Reserved field names, which may not be used by fields in the same message. 4904 * A given name may only be reserved once. 4905 * </pre> 4906 * 4907 * <code>repeated string reserved_name = 10;</code> 4908 */ 4909 com.google.protobuf.ByteString 4910 getReservedNameBytes(int index); 4516 4911 } 4517 4912 /** 4518 * Protobuf type {@code google.protobuf.DescriptorProto}4519 *4520 4913 * <pre> 4521 4914 * Describes a message type. 4522 4915 * </pre> 4916 * 4917 * Protobuf type {@code google.protobuf.DescriptorProto} 4523 4918 */ 4524 public static final class DescriptorProto extends4525 com.google.protobuf.GeneratedMessage implements4919 public static final class DescriptorProto extends 4920 com.google.protobuf.GeneratedMessageV3 implements 4526 4921 // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto) 4527 4922 DescriptorProtoOrBuilder { 4923 private static final long serialVersionUID = 0L; 4528 4924 // Use DescriptorProto.newBuilder() to construct. 4529 private DescriptorProto(com.google.protobuf.GeneratedMessage .Builder<?> builder) {4925 private DescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 4530 4926 super(builder); 4531 this.unknownFields = builder.getUnknownFields(); 4532 } 4533 private DescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 4534 4535 private static final DescriptorProto defaultInstance; 4536 public static DescriptorProto getDefaultInstance() { 4537 return defaultInstance; 4538 } 4539 4540 @Override 4541 public DescriptorProto getDefaultInstanceForType() { 4542 return defaultInstance; 4543 } 4544 4545 private final com.google.protobuf.UnknownFieldSet unknownFields; 4927 } 4928 private DescriptorProto() { 4929 name_ = ""; 4930 field_ = java.util.Collections.emptyList(); 4931 extension_ = java.util.Collections.emptyList(); 4932 nestedType_ = java.util.Collections.emptyList(); 4933 enumType_ = java.util.Collections.emptyList(); 4934 extensionRange_ = java.util.Collections.emptyList(); 4935 oneofDecl_ = java.util.Collections.emptyList(); 4936 reservedRange_ = java.util.Collections.emptyList(); 4937 reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; 4938 } 4939 4546 4940 @java.lang.Override 4547 4941 public final com.google.protobuf.UnknownFieldSet 4548 4942 getUnknownFields() { 4549 4943 return this.unknownFields; 4550 4944 } … … 4553 4947 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4554 4948 throws com.google.protobuf.InvalidProtocolBufferException { 4555 initFields();4949 this(); 4556 4950 int mutable_bitField0_ = 0; 4557 4951 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 4566 4960 break; 4567 4961 default: { 4568 if (!parseUnknownField( input, unknownFields,4569 4962 if (!parseUnknownField( 4963 input, unknownFields, extensionRegistry, tag)) { 4570 4964 done = true; 4571 4965 } … … 4580 4974 case 18: { 4581 4975 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 4582 field_ = new java.util.ArrayList< >();4976 field_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(); 4583 4977 mutable_bitField0_ |= 0x00000002; 4584 4978 } 4585 field_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); 4979 field_.add( 4980 input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); 4586 4981 break; 4587 4982 } 4588 4983 case 26: { 4589 4984 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 4590 nestedType_ = new java.util.ArrayList< >();4985 nestedType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>(); 4591 4986 mutable_bitField0_ |= 0x00000008; 4592 4987 } 4593 nestedType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); 4988 nestedType_.add( 4989 input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); 4594 4990 break; 4595 4991 } 4596 4992 case 34: { 4597 4993 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 4598 enumType_ = new java.util.ArrayList< >();4994 enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>(); 4599 4995 mutable_bitField0_ |= 0x00000010; 4600 4996 } 4601 enumType_.add(input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); 4997 enumType_.add( 4998 input.readMessage(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); 4602 4999 break; 4603 5000 } 4604 5001 case 42: { 4605 5002 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 4606 extensionRange_ = new java.util.ArrayList< >();5003 extensionRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange>(); 4607 5004 mutable_bitField0_ |= 0x00000020; 4608 5005 } 4609 extensionRange_.add(input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.PARSER, extensionRegistry)); 5006 extensionRange_.add( 5007 input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.PARSER, extensionRegistry)); 4610 5008 break; 4611 5009 } 4612 5010 case 50: { 4613 5011 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 4614 extension_ = new java.util.ArrayList< >();5012 extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(); 4615 5013 mutable_bitField0_ |= 0x00000004; 4616 5014 } 4617 extension_.add(input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); 5015 extension_.add( 5016 input.readMessage(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); 4618 5017 break; 4619 5018 } … … 4633 5032 case 66: { 4634 5033 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 4635 oneofDecl_ = new java.util.ArrayList< >();5034 oneofDecl_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.OneofDescriptorProto>(); 4636 5035 mutable_bitField0_ |= 0x00000040; 4637 5036 } 4638 oneofDecl_.add(input.readMessage(com.google.protobuf.DescriptorProtos.OneofDescriptorProto.PARSER, extensionRegistry)); 5037 oneofDecl_.add( 5038 input.readMessage(com.google.protobuf.DescriptorProtos.OneofDescriptorProto.PARSER, extensionRegistry)); 5039 break; 5040 } 5041 case 74: { 5042 if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { 5043 reservedRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange>(); 5044 mutable_bitField0_ |= 0x00000100; 5045 } 5046 reservedRange_.add( 5047 input.readMessage(com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.PARSER, extensionRegistry)); 5048 break; 5049 } 5050 case 82: { 5051 com.google.protobuf.ByteString bs = input.readBytes(); 5052 if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { 5053 reservedName_ = new com.google.protobuf.LazyStringArrayList(); 5054 mutable_bitField0_ |= 0x00000200; 5055 } 5056 reservedName_.add(bs); 4639 5057 break; 4640 5058 } … … 4645 5063 } catch (java.io.IOException e) { 4646 5064 throw new com.google.protobuf.InvalidProtocolBufferException( 4647 e .getMessage()).setUnfinishedMessage(this);5065 e).setUnfinishedMessage(this); 4648 5066 } finally { 4649 5067 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { … … 4665 5083 oneofDecl_ = java.util.Collections.unmodifiableList(oneofDecl_); 4666 5084 } 5085 if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { 5086 reservedRange_ = java.util.Collections.unmodifiableList(reservedRange_); 5087 } 5088 if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { 5089 reservedName_ = reservedName_.getUnmodifiableView(); 5090 } 4667 5091 this.unknownFields = unknownFields.build(); 4668 5092 makeExtensionsImmutable(); … … 4674 5098 } 4675 5099 4676 @Override 4677 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 5100 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 4678 5101 internalGetFieldAccessorTable() { 4679 5102 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable … … 4682 5105 } 4683 5106 4684 public static com.google.protobuf.Parser<DescriptorProto> PARSER =4685 new com.google.protobuf.AbstractParser<DescriptorProto>() {4686 @Override4687 public DescriptorProto parsePartialFrom(4688 com.google.protobuf.CodedInputStream input,4689 com.google.protobuf.ExtensionRegistryLite extensionRegistry)4690 throws com.google.protobuf.InvalidProtocolBufferException {4691 return new DescriptorProto(input, extensionRegistry);4692 }4693 };4694 4695 @java.lang.Override4696 public com.google.protobuf.Parser<DescriptorProto> getParserForType() {4697 return PARSER;4698 }4699 4700 5107 public interface ExtensionRangeOrBuilder extends 4701 5108 // @@protoc_insertion_point(interface_extends:google.protobuf.DescriptorProto.ExtensionRange) … … 4719 5126 */ 4720 5127 int getEnd(); 5128 5129 /** 5130 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5131 */ 5132 boolean hasOptions(); 5133 /** 5134 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5135 */ 5136 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getOptions(); 5137 /** 5138 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5139 */ 5140 com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder getOptionsOrBuilder(); 4721 5141 } 4722 5142 /** 4723 5143 * Protobuf type {@code google.protobuf.DescriptorProto.ExtensionRange} 4724 5144 */ 4725 public static final class ExtensionRange extends4726 com.google.protobuf.GeneratedMessage implements5145 public static final class ExtensionRange extends 5146 com.google.protobuf.GeneratedMessageV3 implements 4727 5147 // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto.ExtensionRange) 4728 5148 ExtensionRangeOrBuilder { 5149 private static final long serialVersionUID = 0L; 4729 5150 // Use ExtensionRange.newBuilder() to construct. 4730 private ExtensionRange(com.google.protobuf.GeneratedMessage .Builder<?> builder) {5151 private ExtensionRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 4731 5152 super(builder); 4732 this.unknownFields = builder.getUnknownFields(); 4733 } 4734 private ExtensionRange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 4735 4736 private static final ExtensionRange defaultInstance; 4737 public static ExtensionRange getDefaultInstance() { 4738 return defaultInstance; 4739 } 4740 4741 @Override 4742 public ExtensionRange getDefaultInstanceForType() { 4743 return defaultInstance; 4744 } 4745 4746 private final com.google.protobuf.UnknownFieldSet unknownFields; 5153 } 5154 private ExtensionRange() { 5155 start_ = 0; 5156 end_ = 0; 5157 } 5158 4747 5159 @java.lang.Override 4748 5160 public final com.google.protobuf.UnknownFieldSet 4749 5161 getUnknownFields() { 4750 5162 return this.unknownFields; 4751 5163 } … … 4754 5166 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4755 5167 throws com.google.protobuf.InvalidProtocolBufferException { 4756 initFields();5168 this(); 4757 5169 int mutable_bitField0_ = 0; 4758 5170 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 4767 5179 break; 4768 5180 default: { 4769 if (!parseUnknownField(input, unknownFields, 4770 extensionRegistry, tag)) { 5181 if (!parseUnknownField( 5182 input, unknownFields, extensionRegistry, tag)) { 5183 done = true; 5184 } 5185 break; 5186 } 5187 case 8: { 5188 bitField0_ |= 0x00000001; 5189 start_ = input.readInt32(); 5190 break; 5191 } 5192 case 16: { 5193 bitField0_ |= 0x00000002; 5194 end_ = input.readInt32(); 5195 break; 5196 } 5197 case 26: { 5198 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder subBuilder = null; 5199 if (((bitField0_ & 0x00000004) == 0x00000004)) { 5200 subBuilder = options_.toBuilder(); 5201 } 5202 options_ = input.readMessage(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.PARSER, extensionRegistry); 5203 if (subBuilder != null) { 5204 subBuilder.mergeFrom(options_); 5205 options_ = subBuilder.buildPartial(); 5206 } 5207 bitField0_ |= 0x00000004; 5208 break; 5209 } 5210 } 5211 } 5212 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5213 throw e.setUnfinishedMessage(this); 5214 } catch (java.io.IOException e) { 5215 throw new com.google.protobuf.InvalidProtocolBufferException( 5216 e).setUnfinishedMessage(this); 5217 } finally { 5218 this.unknownFields = unknownFields.build(); 5219 makeExtensionsImmutable(); 5220 } 5221 } 5222 public static final com.google.protobuf.Descriptors.Descriptor 5223 getDescriptor() { 5224 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; 5225 } 5226 5227 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 5228 internalGetFieldAccessorTable() { 5229 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable 5230 .ensureFieldAccessorsInitialized( 5231 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class); 5232 } 5233 5234 private int bitField0_; 5235 public static final int START_FIELD_NUMBER = 1; 5236 private int start_; 5237 /** 5238 * <code>optional int32 start = 1;</code> 5239 */ 5240 public boolean hasStart() { 5241 return ((bitField0_ & 0x00000001) == 0x00000001); 5242 } 5243 /** 5244 * <code>optional int32 start = 1;</code> 5245 */ 5246 public int getStart() { 5247 return start_; 5248 } 5249 5250 public static final int END_FIELD_NUMBER = 2; 5251 private int end_; 5252 /** 5253 * <code>optional int32 end = 2;</code> 5254 */ 5255 public boolean hasEnd() { 5256 return ((bitField0_ & 0x00000002) == 0x00000002); 5257 } 5258 /** 5259 * <code>optional int32 end = 2;</code> 5260 */ 5261 public int getEnd() { 5262 return end_; 5263 } 5264 5265 public static final int OPTIONS_FIELD_NUMBER = 3; 5266 private com.google.protobuf.DescriptorProtos.ExtensionRangeOptions options_; 5267 /** 5268 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5269 */ 5270 public boolean hasOptions() { 5271 return ((bitField0_ & 0x00000004) == 0x00000004); 5272 } 5273 /** 5274 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5275 */ 5276 public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getOptions() { 5277 return options_ == null ? com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; 5278 } 5279 /** 5280 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5281 */ 5282 public com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder getOptionsOrBuilder() { 5283 return options_ == null ? com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; 5284 } 5285 5286 private byte memoizedIsInitialized = -1; 5287 public final boolean isInitialized() { 5288 byte isInitialized = memoizedIsInitialized; 5289 if (isInitialized == 1) return true; 5290 if (isInitialized == 0) return false; 5291 5292 if (hasOptions()) { 5293 if (!getOptions().isInitialized()) { 5294 memoizedIsInitialized = 0; 5295 return false; 5296 } 5297 } 5298 memoizedIsInitialized = 1; 5299 return true; 5300 } 5301 5302 public void writeTo(com.google.protobuf.CodedOutputStream output) 5303 throws java.io.IOException { 5304 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5305 output.writeInt32(1, start_); 5306 } 5307 if (((bitField0_ & 0x00000002) == 0x00000002)) { 5308 output.writeInt32(2, end_); 5309 } 5310 if (((bitField0_ & 0x00000004) == 0x00000004)) { 5311 output.writeMessage(3, getOptions()); 5312 } 5313 unknownFields.writeTo(output); 5314 } 5315 5316 public int getSerializedSize() { 5317 int size = memoizedSize; 5318 if (size != -1) return size; 5319 5320 size = 0; 5321 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5322 size += com.google.protobuf.CodedOutputStream 5323 .computeInt32Size(1, start_); 5324 } 5325 if (((bitField0_ & 0x00000002) == 0x00000002)) { 5326 size += com.google.protobuf.CodedOutputStream 5327 .computeInt32Size(2, end_); 5328 } 5329 if (((bitField0_ & 0x00000004) == 0x00000004)) { 5330 size += com.google.protobuf.CodedOutputStream 5331 .computeMessageSize(3, getOptions()); 5332 } 5333 size += unknownFields.getSerializedSize(); 5334 memoizedSize = size; 5335 return size; 5336 } 5337 5338 @java.lang.Override 5339 public boolean equals(final java.lang.Object obj) { 5340 if (obj == this) { 5341 return true; 5342 } 5343 if (!(obj instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange)) { 5344 return super.equals(obj); 5345 } 5346 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange other = (com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) obj; 5347 5348 boolean result = true; 5349 result = result && (hasStart() == other.hasStart()); 5350 if (hasStart()) { 5351 result = result && (getStart() 5352 == other.getStart()); 5353 } 5354 result = result && (hasEnd() == other.hasEnd()); 5355 if (hasEnd()) { 5356 result = result && (getEnd() 5357 == other.getEnd()); 5358 } 5359 result = result && (hasOptions() == other.hasOptions()); 5360 if (hasOptions()) { 5361 result = result && getOptions() 5362 .equals(other.getOptions()); 5363 } 5364 result = result && unknownFields.equals(other.unknownFields); 5365 return result; 5366 } 5367 5368 @java.lang.Override 5369 public int hashCode() { 5370 if (memoizedHashCode != 0) { 5371 return memoizedHashCode; 5372 } 5373 int hash = 41; 5374 hash = (19 * hash) + getDescriptor().hashCode(); 5375 if (hasStart()) { 5376 hash = (37 * hash) + START_FIELD_NUMBER; 5377 hash = (53 * hash) + getStart(); 5378 } 5379 if (hasEnd()) { 5380 hash = (37 * hash) + END_FIELD_NUMBER; 5381 hash = (53 * hash) + getEnd(); 5382 } 5383 if (hasOptions()) { 5384 hash = (37 * hash) + OPTIONS_FIELD_NUMBER; 5385 hash = (53 * hash) + getOptions().hashCode(); 5386 } 5387 hash = (29 * hash) + unknownFields.hashCode(); 5388 memoizedHashCode = hash; 5389 return hash; 5390 } 5391 5392 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 5393 java.nio.ByteBuffer data) 5394 throws com.google.protobuf.InvalidProtocolBufferException { 5395 return PARSER.parseFrom(data); 5396 } 5397 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 5398 java.nio.ByteBuffer data, 5399 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5400 throws com.google.protobuf.InvalidProtocolBufferException { 5401 return PARSER.parseFrom(data, extensionRegistry); 5402 } 5403 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 5404 com.google.protobuf.ByteString data) 5405 throws com.google.protobuf.InvalidProtocolBufferException { 5406 return PARSER.parseFrom(data); 5407 } 5408 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 5409 com.google.protobuf.ByteString data, 5410 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5411 throws com.google.protobuf.InvalidProtocolBufferException { 5412 return PARSER.parseFrom(data, extensionRegistry); 5413 } 5414 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom(byte[] data) 5415 throws com.google.protobuf.InvalidProtocolBufferException { 5416 return PARSER.parseFrom(data); 5417 } 5418 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 5419 byte[] data, 5420 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5421 throws com.google.protobuf.InvalidProtocolBufferException { 5422 return PARSER.parseFrom(data, extensionRegistry); 5423 } 5424 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom(java.io.InputStream input) 5425 throws java.io.IOException { 5426 return com.google.protobuf.GeneratedMessageV3 5427 .parseWithIOException(PARSER, input); 5428 } 5429 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 5430 java.io.InputStream input, 5431 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5432 throws java.io.IOException { 5433 return com.google.protobuf.GeneratedMessageV3 5434 .parseWithIOException(PARSER, input, extensionRegistry); 5435 } 5436 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom(java.io.InputStream input) 5437 throws java.io.IOException { 5438 return com.google.protobuf.GeneratedMessageV3 5439 .parseDelimitedWithIOException(PARSER, input); 5440 } 5441 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom( 5442 java.io.InputStream input, 5443 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5444 throws java.io.IOException { 5445 return com.google.protobuf.GeneratedMessageV3 5446 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 5447 } 5448 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 5449 com.google.protobuf.CodedInputStream input) 5450 throws java.io.IOException { 5451 return com.google.protobuf.GeneratedMessageV3 5452 .parseWithIOException(PARSER, input); 5453 } 5454 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 5455 com.google.protobuf.CodedInputStream input, 5456 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5457 throws java.io.IOException { 5458 return com.google.protobuf.GeneratedMessageV3 5459 .parseWithIOException(PARSER, input, extensionRegistry); 5460 } 5461 5462 public Builder newBuilderForType() { return newBuilder(); } 5463 public static Builder newBuilder() { 5464 return DEFAULT_INSTANCE.toBuilder(); 5465 } 5466 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange prototype) { 5467 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 5468 } 5469 public Builder toBuilder() { 5470 return this == DEFAULT_INSTANCE 5471 ? new Builder() : new Builder().mergeFrom(this); 5472 } 5473 5474 @java.lang.Override 5475 protected Builder newBuilderForType( 5476 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5477 Builder builder = new Builder(parent); 5478 return builder; 5479 } 5480 /** 5481 * Protobuf type {@code google.protobuf.DescriptorProto.ExtensionRange} 5482 */ 5483 public static final class Builder extends 5484 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 5485 // @@protoc_insertion_point(builder_implements:google.protobuf.DescriptorProto.ExtensionRange) 5486 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder { 5487 public static final com.google.protobuf.Descriptors.Descriptor 5488 getDescriptor() { 5489 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; 5490 } 5491 5492 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 5493 internalGetFieldAccessorTable() { 5494 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable 5495 .ensureFieldAccessorsInitialized( 5496 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class); 5497 } 5498 5499 // Construct using com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.newBuilder() 5500 private Builder() { 5501 maybeForceBuilderInitialization(); 5502 } 5503 5504 private Builder( 5505 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5506 super(parent); 5507 maybeForceBuilderInitialization(); 5508 } 5509 private void maybeForceBuilderInitialization() { 5510 if (com.google.protobuf.GeneratedMessageV3 5511 .alwaysUseFieldBuilders) { 5512 getOptionsFieldBuilder(); 5513 } 5514 } 5515 public Builder clear() { 5516 super.clear(); 5517 start_ = 0; 5518 bitField0_ = (bitField0_ & ~0x00000001); 5519 end_ = 0; 5520 bitField0_ = (bitField0_ & ~0x00000002); 5521 if (optionsBuilder_ == null) { 5522 options_ = null; 5523 } else { 5524 optionsBuilder_.clear(); 5525 } 5526 bitField0_ = (bitField0_ & ~0x00000004); 5527 return this; 5528 } 5529 5530 public com.google.protobuf.Descriptors.Descriptor 5531 getDescriptorForType() { 5532 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; 5533 } 5534 5535 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstanceForType() { 5536 return com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance(); 5537 } 5538 5539 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange build() { 5540 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = buildPartial(); 5541 if (!result.isInitialized()) { 5542 throw newUninitializedMessageException(result); 5543 } 5544 return result; 5545 } 5546 5547 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange buildPartial() { 5548 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = new com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange(this); 5549 int from_bitField0_ = bitField0_; 5550 int to_bitField0_ = 0; 5551 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 5552 to_bitField0_ |= 0x00000001; 5553 } 5554 result.start_ = start_; 5555 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 5556 to_bitField0_ |= 0x00000002; 5557 } 5558 result.end_ = end_; 5559 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 5560 to_bitField0_ |= 0x00000004; 5561 } 5562 if (optionsBuilder_ == null) { 5563 result.options_ = options_; 5564 } else { 5565 result.options_ = optionsBuilder_.build(); 5566 } 5567 result.bitField0_ = to_bitField0_; 5568 onBuilt(); 5569 return result; 5570 } 5571 5572 public Builder clone() { 5573 return (Builder) super.clone(); 5574 } 5575 public Builder setField( 5576 com.google.protobuf.Descriptors.FieldDescriptor field, 5577 java.lang.Object value) { 5578 return (Builder) super.setField(field, value); 5579 } 5580 public Builder clearField( 5581 com.google.protobuf.Descriptors.FieldDescriptor field) { 5582 return (Builder) super.clearField(field); 5583 } 5584 public Builder clearOneof( 5585 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 5586 return (Builder) super.clearOneof(oneof); 5587 } 5588 public Builder setRepeatedField( 5589 com.google.protobuf.Descriptors.FieldDescriptor field, 5590 int index, java.lang.Object value) { 5591 return (Builder) super.setRepeatedField(field, index, value); 5592 } 5593 public Builder addRepeatedField( 5594 com.google.protobuf.Descriptors.FieldDescriptor field, 5595 java.lang.Object value) { 5596 return (Builder) super.addRepeatedField(field, value); 5597 } 5598 public Builder mergeFrom(com.google.protobuf.Message other) { 5599 if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) { 5600 return mergeFrom((com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange)other); 5601 } else { 5602 super.mergeFrom(other); 5603 return this; 5604 } 5605 } 5606 5607 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange other) { 5608 if (other == com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()) return this; 5609 if (other.hasStart()) { 5610 setStart(other.getStart()); 5611 } 5612 if (other.hasEnd()) { 5613 setEnd(other.getEnd()); 5614 } 5615 if (other.hasOptions()) { 5616 mergeOptions(other.getOptions()); 5617 } 5618 this.mergeUnknownFields(other.unknownFields); 5619 onChanged(); 5620 return this; 5621 } 5622 5623 public final boolean isInitialized() { 5624 if (hasOptions()) { 5625 if (!getOptions().isInitialized()) { 5626 return false; 5627 } 5628 } 5629 return true; 5630 } 5631 5632 public Builder mergeFrom( 5633 com.google.protobuf.CodedInputStream input, 5634 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5635 throws java.io.IOException { 5636 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parsedMessage = null; 5637 try { 5638 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5639 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5640 parsedMessage = (com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) e.getUnfinishedMessage(); 5641 throw e.unwrapIOException(); 5642 } finally { 5643 if (parsedMessage != null) { 5644 mergeFrom(parsedMessage); 5645 } 5646 } 5647 return this; 5648 } 5649 private int bitField0_; 5650 5651 private int start_ ; 5652 /** 5653 * <code>optional int32 start = 1;</code> 5654 */ 5655 public boolean hasStart() { 5656 return ((bitField0_ & 0x00000001) == 0x00000001); 5657 } 5658 /** 5659 * <code>optional int32 start = 1;</code> 5660 */ 5661 public int getStart() { 5662 return start_; 5663 } 5664 /** 5665 * <code>optional int32 start = 1;</code> 5666 */ 5667 public Builder setStart(int value) { 5668 bitField0_ |= 0x00000001; 5669 start_ = value; 5670 onChanged(); 5671 return this; 5672 } 5673 /** 5674 * <code>optional int32 start = 1;</code> 5675 */ 5676 public Builder clearStart() { 5677 bitField0_ = (bitField0_ & ~0x00000001); 5678 start_ = 0; 5679 onChanged(); 5680 return this; 5681 } 5682 5683 private int end_ ; 5684 /** 5685 * <code>optional int32 end = 2;</code> 5686 */ 5687 public boolean hasEnd() { 5688 return ((bitField0_ & 0x00000002) == 0x00000002); 5689 } 5690 /** 5691 * <code>optional int32 end = 2;</code> 5692 */ 5693 public int getEnd() { 5694 return end_; 5695 } 5696 /** 5697 * <code>optional int32 end = 2;</code> 5698 */ 5699 public Builder setEnd(int value) { 5700 bitField0_ |= 0x00000002; 5701 end_ = value; 5702 onChanged(); 5703 return this; 5704 } 5705 /** 5706 * <code>optional int32 end = 2;</code> 5707 */ 5708 public Builder clearEnd() { 5709 bitField0_ = (bitField0_ & ~0x00000002); 5710 end_ = 0; 5711 onChanged(); 5712 return this; 5713 } 5714 5715 private com.google.protobuf.DescriptorProtos.ExtensionRangeOptions options_ = null; 5716 private com.google.protobuf.SingleFieldBuilderV3< 5717 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder, com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder> optionsBuilder_; 5718 /** 5719 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5720 */ 5721 public boolean hasOptions() { 5722 return ((bitField0_ & 0x00000004) == 0x00000004); 5723 } 5724 /** 5725 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5726 */ 5727 public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getOptions() { 5728 if (optionsBuilder_ == null) { 5729 return options_ == null ? com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; 5730 } else { 5731 return optionsBuilder_.getMessage(); 5732 } 5733 } 5734 /** 5735 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5736 */ 5737 public Builder setOptions(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions value) { 5738 if (optionsBuilder_ == null) { 5739 if (value == null) { 5740 throw new NullPointerException(); 5741 } 5742 options_ = value; 5743 onChanged(); 5744 } else { 5745 optionsBuilder_.setMessage(value); 5746 } 5747 bitField0_ |= 0x00000004; 5748 return this; 5749 } 5750 /** 5751 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5752 */ 5753 public Builder setOptions( 5754 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder builderForValue) { 5755 if (optionsBuilder_ == null) { 5756 options_ = builderForValue.build(); 5757 onChanged(); 5758 } else { 5759 optionsBuilder_.setMessage(builderForValue.build()); 5760 } 5761 bitField0_ |= 0x00000004; 5762 return this; 5763 } 5764 /** 5765 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5766 */ 5767 public Builder mergeOptions(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions value) { 5768 if (optionsBuilder_ == null) { 5769 if (((bitField0_ & 0x00000004) == 0x00000004) && 5770 options_ != null && 5771 options_ != com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance()) { 5772 options_ = 5773 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.newBuilder(options_).mergeFrom(value).buildPartial(); 5774 } else { 5775 options_ = value; 5776 } 5777 onChanged(); 5778 } else { 5779 optionsBuilder_.mergeFrom(value); 5780 } 5781 bitField0_ |= 0x00000004; 5782 return this; 5783 } 5784 /** 5785 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5786 */ 5787 public Builder clearOptions() { 5788 if (optionsBuilder_ == null) { 5789 options_ = null; 5790 onChanged(); 5791 } else { 5792 optionsBuilder_.clear(); 5793 } 5794 bitField0_ = (bitField0_ & ~0x00000004); 5795 return this; 5796 } 5797 /** 5798 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5799 */ 5800 public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder getOptionsBuilder() { 5801 bitField0_ |= 0x00000004; 5802 onChanged(); 5803 return getOptionsFieldBuilder().getBuilder(); 5804 } 5805 /** 5806 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5807 */ 5808 public com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder getOptionsOrBuilder() { 5809 if (optionsBuilder_ != null) { 5810 return optionsBuilder_.getMessageOrBuilder(); 5811 } else { 5812 return options_ == null ? 5813 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; 5814 } 5815 } 5816 /** 5817 * <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 5818 */ 5819 private com.google.protobuf.SingleFieldBuilderV3< 5820 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder, com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder> 5821 getOptionsFieldBuilder() { 5822 if (optionsBuilder_ == null) { 5823 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 5824 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder, com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder>( 5825 getOptions(), 5826 getParentForChildren(), 5827 isClean()); 5828 options_ = null; 5829 } 5830 return optionsBuilder_; 5831 } 5832 public final Builder setUnknownFields( 5833 final com.google.protobuf.UnknownFieldSet unknownFields) { 5834 return super.setUnknownFields(unknownFields); 5835 } 5836 5837 public final Builder mergeUnknownFields( 5838 final com.google.protobuf.UnknownFieldSet unknownFields) { 5839 return super.mergeUnknownFields(unknownFields); 5840 } 5841 5842 5843 // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto.ExtensionRange) 5844 } 5845 5846 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange) 5847 private static final com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange DEFAULT_INSTANCE; 5848 static { 5849 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange(); 5850 } 5851 5852 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstance() { 5853 return DEFAULT_INSTANCE; 5854 } 5855 5856 @java.lang.Deprecated public static final com.google.protobuf.Parser<ExtensionRange> 5857 PARSER = new com.google.protobuf.AbstractParser<ExtensionRange>() { 5858 public ExtensionRange parsePartialFrom( 5859 com.google.protobuf.CodedInputStream input, 5860 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5861 throws com.google.protobuf.InvalidProtocolBufferException { 5862 return new ExtensionRange(input, extensionRegistry); 5863 } 5864 }; 5865 5866 public static com.google.protobuf.Parser<ExtensionRange> parser() { 5867 return PARSER; 5868 } 5869 5870 @java.lang.Override 5871 public com.google.protobuf.Parser<ExtensionRange> getParserForType() { 5872 return PARSER; 5873 } 5874 5875 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstanceForType() { 5876 return DEFAULT_INSTANCE; 5877 } 5878 5879 } 5880 5881 public interface ReservedRangeOrBuilder extends 5882 // @@protoc_insertion_point(interface_extends:google.protobuf.DescriptorProto.ReservedRange) 5883 com.google.protobuf.MessageOrBuilder { 5884 5885 /** 5886 * <pre> 5887 * Inclusive. 5888 * </pre> 5889 * 5890 * <code>optional int32 start = 1;</code> 5891 */ 5892 boolean hasStart(); 5893 /** 5894 * <pre> 5895 * Inclusive. 5896 * </pre> 5897 * 5898 * <code>optional int32 start = 1;</code> 5899 */ 5900 int getStart(); 5901 5902 /** 5903 * <pre> 5904 * Exclusive. 5905 * </pre> 5906 * 5907 * <code>optional int32 end = 2;</code> 5908 */ 5909 boolean hasEnd(); 5910 /** 5911 * <pre> 5912 * Exclusive. 5913 * </pre> 5914 * 5915 * <code>optional int32 end = 2;</code> 5916 */ 5917 int getEnd(); 5918 } 5919 /** 5920 * <pre> 5921 * Range of reserved tag numbers. Reserved tag numbers may not be used by 5922 * fields or extension ranges in the same message. Reserved ranges may 5923 * not overlap. 5924 * </pre> 5925 * 5926 * Protobuf type {@code google.protobuf.DescriptorProto.ReservedRange} 5927 */ 5928 public static final class ReservedRange extends 5929 com.google.protobuf.GeneratedMessageV3 implements 5930 // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto.ReservedRange) 5931 ReservedRangeOrBuilder { 5932 private static final long serialVersionUID = 0L; 5933 // Use ReservedRange.newBuilder() to construct. 5934 private ReservedRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 5935 super(builder); 5936 } 5937 private ReservedRange() { 5938 start_ = 0; 5939 end_ = 0; 5940 } 5941 5942 @java.lang.Override 5943 public final com.google.protobuf.UnknownFieldSet 5944 getUnknownFields() { 5945 return this.unknownFields; 5946 } 5947 private ReservedRange( 5948 com.google.protobuf.CodedInputStream input, 5949 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5950 throws com.google.protobuf.InvalidProtocolBufferException { 5951 this(); 5952 int mutable_bitField0_ = 0; 5953 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 5954 com.google.protobuf.UnknownFieldSet.newBuilder(); 5955 try { 5956 boolean done = false; 5957 while (!done) { 5958 int tag = input.readTag(); 5959 switch (tag) { 5960 case 0: 5961 done = true; 5962 break; 5963 default: { 5964 if (!parseUnknownField( 5965 input, unknownFields, extensionRegistry, tag)) { 4771 5966 done = true; 4772 5967 } … … 4789 5984 } catch (java.io.IOException e) { 4790 5985 throw new com.google.protobuf.InvalidProtocolBufferException( 4791 e .getMessage()).setUnfinishedMessage(this);5986 e).setUnfinishedMessage(this); 4792 5987 } finally { 4793 5988 this.unknownFields = unknownFields.build(); … … 4797 5992 public static final com.google.protobuf.Descriptors.Descriptor 4798 5993 getDescriptor() { 4799 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; 4800 } 4801 4802 @Override 4803 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 5994 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor; 5995 } 5996 5997 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 4804 5998 internalGetFieldAccessorTable() { 4805 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ ExtensionRange_fieldAccessorTable5999 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_fieldAccessorTable 4806 6000 .ensureFieldAccessorsInitialized( 4807 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class); 4808 } 4809 4810 public static com.google.protobuf.Parser<ExtensionRange> PARSER = 4811 new com.google.protobuf.AbstractParser<ExtensionRange>() { 4812 @Override 4813 public ExtensionRange parsePartialFrom( 4814 com.google.protobuf.CodedInputStream input, 4815 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4816 throws com.google.protobuf.InvalidProtocolBufferException { 4817 return new ExtensionRange(input, extensionRegistry); 4818 } 4819 }; 4820 4821 @java.lang.Override 4822 public com.google.protobuf.Parser<ExtensionRange> getParserForType() { 4823 return PARSER; 6001 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder.class); 4824 6002 } 4825 6003 … … 4828 6006 private int start_; 4829 6007 /** 6008 * <pre> 6009 * Inclusive. 6010 * </pre> 6011 * 4830 6012 * <code>optional int32 start = 1;</code> 4831 6013 */ 4832 @Override 4833 public boolean hasStart() { 6014 public boolean hasStart() { 4834 6015 return ((bitField0_ & 0x00000001) == 0x00000001); 4835 6016 } 4836 6017 /** 6018 * <pre> 6019 * Inclusive. 6020 * </pre> 6021 * 4837 6022 * <code>optional int32 start = 1;</code> 4838 6023 */ 4839 @Override 4840 public int getStart() { 6024 public int getStart() { 4841 6025 return start_; 4842 6026 } … … 4845 6029 private int end_; 4846 6030 /** 6031 * <pre> 6032 * Exclusive. 6033 * </pre> 6034 * 4847 6035 * <code>optional int32 end = 2;</code> 4848 6036 */ 4849 @Override 4850 public boolean hasEnd() { 6037 public boolean hasEnd() { 4851 6038 return ((bitField0_ & 0x00000002) == 0x00000002); 4852 6039 } 4853 6040 /** 6041 * <pre> 6042 * Exclusive. 6043 * </pre> 6044 * 4854 6045 * <code>optional int32 end = 2;</code> 4855 6046 */ 4856 @Override 4857 public int getEnd() { 6047 public int getEnd() { 4858 6048 return end_; 4859 6049 } 4860 6050 4861 private void initFields() {4862 start_ = 0;4863 end_ = 0;4864 }4865 6051 private byte memoizedIsInitialized = -1; 4866 @Override 4867 public final boolean isInitialized() { 6052 public final boolean isInitialized() { 4868 6053 byte isInitialized = memoizedIsInitialized; 4869 6054 if (isInitialized == 1) return true; … … 4874 6059 } 4875 6060 4876 @Override 4877 public void writeTo(com.google.protobuf.CodedOutputStream output) 6061 public void writeTo(com.google.protobuf.CodedOutputStream output) 4878 6062 throws java.io.IOException { 4879 getSerializedSize();4880 6063 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4881 6064 output.writeInt32(1, start_); … … 4884 6067 output.writeInt32(2, end_); 4885 6068 } 4886 getUnknownFields().writeTo(output); 4887 } 4888 4889 private int memoizedSerializedSize = -1; 4890 @Override 4891 public int getSerializedSize() { 4892 int size = memoizedSerializedSize; 6069 unknownFields.writeTo(output); 6070 } 6071 6072 public int getSerializedSize() { 6073 int size = memoizedSize; 4893 6074 if (size != -1) return size; 4894 6075 … … 4902 6083 .computeInt32Size(2, end_); 4903 6084 } 4904 size += getUnknownFields().getSerializedSize();4905 memoizedS erializedSize = size;6085 size += unknownFields.getSerializedSize(); 6086 memoizedSize = size; 4906 6087 return size; 4907 6088 } 4908 6089 4909 private static final long serialVersionUID = 0L;4910 6090 @java.lang.Override 4911 protected java.lang.Object writeReplace() 4912 throws java.io.ObjectStreamException { 4913 return super.writeReplace(); 4914 } 4915 4916 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 6091 public boolean equals(final java.lang.Object obj) { 6092 if (obj == this) { 6093 return true; 6094 } 6095 if (!(obj instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange)) { 6096 return super.equals(obj); 6097 } 6098 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange other = (com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange) obj; 6099 6100 boolean result = true; 6101 result = result && (hasStart() == other.hasStart()); 6102 if (hasStart()) { 6103 result = result && (getStart() 6104 == other.getStart()); 6105 } 6106 result = result && (hasEnd() == other.hasEnd()); 6107 if (hasEnd()) { 6108 result = result && (getEnd() 6109 == other.getEnd()); 6110 } 6111 result = result && unknownFields.equals(other.unknownFields); 6112 return result; 6113 } 6114 6115 @java.lang.Override 6116 public int hashCode() { 6117 if (memoizedHashCode != 0) { 6118 return memoizedHashCode; 6119 } 6120 int hash = 41; 6121 hash = (19 * hash) + getDescriptor().hashCode(); 6122 if (hasStart()) { 6123 hash = (37 * hash) + START_FIELD_NUMBER; 6124 hash = (53 * hash) + getStart(); 6125 } 6126 if (hasEnd()) { 6127 hash = (37 * hash) + END_FIELD_NUMBER; 6128 hash = (53 * hash) + getEnd(); 6129 } 6130 hash = (29 * hash) + unknownFields.hashCode(); 6131 memoizedHashCode = hash; 6132 return hash; 6133 } 6134 6135 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( 6136 java.nio.ByteBuffer data) 6137 throws com.google.protobuf.InvalidProtocolBufferException { 6138 return PARSER.parseFrom(data); 6139 } 6140 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( 6141 java.nio.ByteBuffer data, 6142 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6143 throws com.google.protobuf.InvalidProtocolBufferException { 6144 return PARSER.parseFrom(data, extensionRegistry); 6145 } 6146 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( 4917 6147 com.google.protobuf.ByteString data) 4918 6148 throws com.google.protobuf.InvalidProtocolBufferException { 4919 6149 return PARSER.parseFrom(data); 4920 6150 } 4921 public static com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRange parseFrom(6151 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( 4922 6152 com.google.protobuf.ByteString data, 4923 6153 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 4925 6155 return PARSER.parseFrom(data, extensionRegistry); 4926 6156 } 4927 public static com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRange parseFrom(byte[] data)6157 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom(byte[] data) 4928 6158 throws com.google.protobuf.InvalidProtocolBufferException { 4929 6159 return PARSER.parseFrom(data); 4930 6160 } 4931 public static com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRange parseFrom(6161 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( 4932 6162 byte[] data, 4933 6163 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 4935 6165 return PARSER.parseFrom(data, extensionRegistry); 4936 6166 } 4937 public static com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRange parseFrom(java.io.InputStream input)6167 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom(java.io.InputStream input) 4938 6168 throws java.io.IOException { 4939 return PARSER.parseFrom(input); 4940 } 4941 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 6169 return com.google.protobuf.GeneratedMessageV3 6170 .parseWithIOException(PARSER, input); 6171 } 6172 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( 4942 6173 java.io.InputStream input, 4943 6174 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4944 6175 throws java.io.IOException { 4945 return PARSER.parseFrom(input, extensionRegistry); 4946 } 4947 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom(java.io.InputStream input) 6176 return com.google.protobuf.GeneratedMessageV3 6177 .parseWithIOException(PARSER, input, extensionRegistry); 6178 } 6179 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseDelimitedFrom(java.io.InputStream input) 4948 6180 throws java.io.IOException { 4949 return PARSER.parseDelimitedFrom(input); 4950 } 4951 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom( 6181 return com.google.protobuf.GeneratedMessageV3 6182 .parseDelimitedWithIOException(PARSER, input); 6183 } 6184 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseDelimitedFrom( 4952 6185 java.io.InputStream input, 4953 6186 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4954 6187 throws java.io.IOException { 4955 return PARSER.parseDelimitedFrom(input, extensionRegistry); 4956 } 4957 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 6188 return com.google.protobuf.GeneratedMessageV3 6189 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 6190 } 6191 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( 4958 6192 com.google.protobuf.CodedInputStream input) 4959 6193 throws java.io.IOException { 4960 return PARSER.parseFrom(input); 4961 } 4962 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( 6194 return com.google.protobuf.GeneratedMessageV3 6195 .parseWithIOException(PARSER, input); 6196 } 6197 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( 4963 6198 com.google.protobuf.CodedInputStream input, 4964 6199 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4965 6200 throws java.io.IOException { 4966 return PARSER.parseFrom(input, extensionRegistry); 4967 } 4968 4969 public static Builder newBuilder() { return Builder.create(); } 4970 @Override 4971 public Builder newBuilderForType() { return newBuilder(); } 4972 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange prototype) { 4973 return newBuilder().mergeFrom(prototype); 4974 } 4975 @Override 4976 public Builder toBuilder() { return newBuilder(this); } 6201 return com.google.protobuf.GeneratedMessageV3 6202 .parseWithIOException(PARSER, input, extensionRegistry); 6203 } 6204 6205 public Builder newBuilderForType() { return newBuilder(); } 6206 public static Builder newBuilder() { 6207 return DEFAULT_INSTANCE.toBuilder(); 6208 } 6209 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange prototype) { 6210 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 6211 } 6212 public Builder toBuilder() { 6213 return this == DEFAULT_INSTANCE 6214 ? new Builder() : new Builder().mergeFrom(this); 6215 } 4977 6216 4978 6217 @java.lang.Override 4979 6218 protected Builder newBuilderForType( 4980 com.google.protobuf.GeneratedMessage .BuilderParent parent) {6219 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4981 6220 Builder builder = new Builder(parent); 4982 6221 return builder; 4983 6222 } 4984 6223 /** 4985 * Protobuf type {@code google.protobuf.DescriptorProto.ExtensionRange} 6224 * <pre> 6225 * Range of reserved tag numbers. Reserved tag numbers may not be used by 6226 * fields or extension ranges in the same message. Reserved ranges may 6227 * not overlap. 6228 * </pre> 6229 * 6230 * Protobuf type {@code google.protobuf.DescriptorProto.ReservedRange} 4986 6231 */ 4987 6232 public static final class Builder extends 4988 com.google.protobuf.GeneratedMessage .Builder<Builder> implements4989 // @@protoc_insertion_point(builder_implements:google.protobuf.DescriptorProto. ExtensionRange)4990 com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRangeOrBuilder {6233 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 6234 // @@protoc_insertion_point(builder_implements:google.protobuf.DescriptorProto.ReservedRange) 6235 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder { 4991 6236 public static final com.google.protobuf.Descriptors.Descriptor 4992 6237 getDescriptor() { 4993 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; 4994 } 4995 4996 @Override 4997 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 6238 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor; 6239 } 6240 6241 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 4998 6242 internalGetFieldAccessorTable() { 4999 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ ExtensionRange_fieldAccessorTable6243 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_fieldAccessorTable 5000 6244 .ensureFieldAccessorsInitialized( 5001 com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class);5002 } 5003 5004 // Construct using com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRange.newBuilder()6245 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.class, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder.class); 6246 } 6247 6248 // Construct using com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.newBuilder() 5005 6249 private Builder() { 5006 6250 maybeForceBuilderInitialization(); … … 5008 6252 5009 6253 private Builder( 5010 com.google.protobuf.GeneratedMessage .BuilderParent parent) {6254 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5011 6255 super(parent); 5012 6256 maybeForceBuilderInitialization(); 5013 6257 } 5014 6258 private void maybeForceBuilderInitialization() { 5015 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 6259 if (com.google.protobuf.GeneratedMessageV3 6260 .alwaysUseFieldBuilders) { 5016 6261 } 5017 6262 } 5018 private static Builder create() { 5019 return new Builder(); 5020 } 5021 5022 @Override 5023 public Builder clear() { 6263 public Builder clear() { 5024 6264 super.clear(); 5025 6265 start_ = 0; … … 5030 6270 } 5031 6271 5032 @Override 5033 public Builder clone() { 5034 return create().mergeFrom(buildPartial()); 5035 } 5036 5037 @Override 5038 public com.google.protobuf.Descriptors.Descriptor 6272 public com.google.protobuf.Descriptors.Descriptor 5039 6273 getDescriptorForType() { 5040 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; 5041 } 5042 5043 @Override 5044 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstanceForType() { 5045 return com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance(); 5046 } 5047 5048 @Override 5049 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange build() { 5050 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = buildPartial(); 6274 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor; 6275 } 6276 6277 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getDefaultInstanceForType() { 6278 return com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance(); 6279 } 6280 6281 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange build() { 6282 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange result = buildPartial(); 5051 6283 if (!result.isInitialized()) { 5052 6284 throw newUninitializedMessageException(result); … … 5055 6287 } 5056 6288 5057 @Override 5058 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange buildPartial() { 5059 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = new com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange(this); 6289 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange buildPartial() { 6290 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange result = new com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange(this); 5060 6291 int from_bitField0_ = bitField0_; 5061 6292 int to_bitField0_ = 0; … … 5073 6304 } 5074 6305 5075 @Override 5076 public Builder mergeFrom(com.google.protobuf.Message other) { 5077 if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) { 5078 return mergeFrom((com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange)other); 6306 public Builder clone() { 6307 return (Builder) super.clone(); 6308 } 6309 public Builder setField( 6310 com.google.protobuf.Descriptors.FieldDescriptor field, 6311 java.lang.Object value) { 6312 return (Builder) super.setField(field, value); 6313 } 6314 public Builder clearField( 6315 com.google.protobuf.Descriptors.FieldDescriptor field) { 6316 return (Builder) super.clearField(field); 6317 } 6318 public Builder clearOneof( 6319 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 6320 return (Builder) super.clearOneof(oneof); 6321 } 6322 public Builder setRepeatedField( 6323 com.google.protobuf.Descriptors.FieldDescriptor field, 6324 int index, java.lang.Object value) { 6325 return (Builder) super.setRepeatedField(field, index, value); 6326 } 6327 public Builder addRepeatedField( 6328 com.google.protobuf.Descriptors.FieldDescriptor field, 6329 java.lang.Object value) { 6330 return (Builder) super.addRepeatedField(field, value); 6331 } 6332 public Builder mergeFrom(com.google.protobuf.Message other) { 6333 if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange) { 6334 return mergeFrom((com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange)other); 5079 6335 } else { 5080 6336 super.mergeFrom(other); … … 5083 6339 } 5084 6340 5085 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRange other) {5086 if (other == com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRange.getDefaultInstance()) return this;6341 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange other) { 6342 if (other == com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance()) return this; 5087 6343 if (other.hasStart()) { 5088 6344 setStart(other.getStart()); … … 5091 6347 setEnd(other.getEnd()); 5092 6348 } 5093 this.mergeUnknownFields(other.getUnknownFields()); 6349 this.mergeUnknownFields(other.unknownFields); 6350 onChanged(); 5094 6351 return this; 5095 6352 } 5096 6353 5097 @Override 5098 public final boolean isInitialized() { 6354 public final boolean isInitialized() { 5099 6355 return true; 5100 6356 } 5101 6357 5102 @Override 5103 public Builder mergeFrom( 6358 public Builder mergeFrom( 5104 6359 com.google.protobuf.CodedInputStream input, 5105 6360 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5106 6361 throws java.io.IOException { 5107 com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRange parsedMessage = null;6362 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange parsedMessage = null; 5108 6363 try { 5109 6364 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5110 6365 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5111 parsedMessage = (com.google.protobuf.DescriptorProtos.DescriptorProto. ExtensionRange) e.getUnfinishedMessage();5112 throw e ;6366 parsedMessage = (com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange) e.getUnfinishedMessage(); 6367 throw e.unwrapIOException(); 5113 6368 } finally { 5114 6369 if (parsedMessage != null) { … … 5122 6377 private int start_ ; 5123 6378 /** 6379 * <pre> 6380 * Inclusive. 6381 * </pre> 6382 * 5124 6383 * <code>optional int32 start = 1;</code> 5125 6384 */ 5126 @Override 5127 public boolean hasStart() { 6385 public boolean hasStart() { 5128 6386 return ((bitField0_ & 0x00000001) == 0x00000001); 5129 6387 } 5130 6388 /** 6389 * <pre> 6390 * Inclusive. 6391 * </pre> 6392 * 5131 6393 * <code>optional int32 start = 1;</code> 5132 6394 */ 5133 @Override 5134 public int getStart() { 6395 public int getStart() { 5135 6396 return start_; 5136 6397 } 5137 6398 /** 6399 * <pre> 6400 * Inclusive. 6401 * </pre> 6402 * 5138 6403 * <code>optional int32 start = 1;</code> 5139 6404 */ … … 5145 6410 } 5146 6411 /** 6412 * <pre> 6413 * Inclusive. 6414 * </pre> 6415 * 5147 6416 * <code>optional int32 start = 1;</code> 5148 6417 */ … … 5156 6425 private int end_ ; 5157 6426 /** 6427 * <pre> 6428 * Exclusive. 6429 * </pre> 6430 * 5158 6431 * <code>optional int32 end = 2;</code> 5159 6432 */ 5160 @Override 5161 public boolean hasEnd() { 6433 public boolean hasEnd() { 5162 6434 return ((bitField0_ & 0x00000002) == 0x00000002); 5163 6435 } 5164 6436 /** 6437 * <pre> 6438 * Exclusive. 6439 * </pre> 6440 * 5165 6441 * <code>optional int32 end = 2;</code> 5166 6442 */ 5167 @Override 5168 public int getEnd() { 6443 public int getEnd() { 5169 6444 return end_; 5170 6445 } 5171 6446 /** 6447 * <pre> 6448 * Exclusive. 6449 * </pre> 6450 * 5172 6451 * <code>optional int32 end = 2;</code> 5173 6452 */ … … 5179 6458 } 5180 6459 /** 6460 * <pre> 6461 * Exclusive. 6462 * </pre> 6463 * 5181 6464 * <code>optional int32 end = 2;</code> 5182 6465 */ … … 5187 6470 return this; 5188 6471 } 5189 5190 // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto.ExtensionRange) 5191 } 5192 6472 public final Builder setUnknownFields( 6473 final com.google.protobuf.UnknownFieldSet unknownFields) { 6474 return super.setUnknownFields(unknownFields); 6475 } 6476 6477 public final Builder mergeUnknownFields( 6478 final com.google.protobuf.UnknownFieldSet unknownFields) { 6479 return super.mergeUnknownFields(unknownFields); 6480 } 6481 6482 6483 // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto.ReservedRange) 6484 } 6485 6486 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange) 6487 private static final com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange DEFAULT_INSTANCE; 5193 6488 static { 5194 defaultInstance = new ExtensionRange(true); 5195 defaultInstance.initFields(); 5196 } 5197 5198 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange) 6489 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange(); 6490 } 6491 6492 public static com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getDefaultInstance() { 6493 return DEFAULT_INSTANCE; 6494 } 6495 6496 @java.lang.Deprecated public static final com.google.protobuf.Parser<ReservedRange> 6497 PARSER = new com.google.protobuf.AbstractParser<ReservedRange>() { 6498 public ReservedRange parsePartialFrom( 6499 com.google.protobuf.CodedInputStream input, 6500 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6501 throws com.google.protobuf.InvalidProtocolBufferException { 6502 return new ReservedRange(input, extensionRegistry); 6503 } 6504 }; 6505 6506 public static com.google.protobuf.Parser<ReservedRange> parser() { 6507 return PARSER; 6508 } 6509 6510 @java.lang.Override 6511 public com.google.protobuf.Parser<ReservedRange> getParserForType() { 6512 return PARSER; 6513 } 6514 6515 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getDefaultInstanceForType() { 6516 return DEFAULT_INSTANCE; 6517 } 6518 5199 6519 } 5200 6520 5201 6521 private int bitField0_; 5202 6522 public static final int NAME_FIELD_NUMBER = 1; 5203 private java.lang.Object name_;6523 private volatile java.lang.Object name_; 5204 6524 /** 5205 6525 * <code>optional string name = 1;</code> 5206 6526 */ 5207 @Override 5208 public boolean hasName() { 6527 public boolean hasName() { 5209 6528 return ((bitField0_ & 0x00000001) == 0x00000001); 5210 6529 } … … 5212 6531 * <code>optional string name = 1;</code> 5213 6532 */ 5214 @Override 5215 public java.lang.String getName() { 6533 public java.lang.String getName() { 5216 6534 java.lang.Object ref = name_; 5217 6535 if (ref instanceof java.lang.String) { 5218 6536 return (java.lang.String) ref; 5219 6537 } else { 5220 com.google.protobuf.ByteString bs = 6538 com.google.protobuf.ByteString bs = 5221 6539 (com.google.protobuf.ByteString) ref; 5222 6540 java.lang.String s = bs.toStringUtf8(); … … 5230 6548 * <code>optional string name = 1;</code> 5231 6549 */ 5232 @Override 5233 public com.google.protobuf.ByteString 6550 public com.google.protobuf.ByteString 5234 6551 getNameBytes() { 5235 6552 java.lang.Object ref = name_; 5236 6553 if (ref instanceof java.lang.String) { 5237 com.google.protobuf.ByteString b = 6554 com.google.protobuf.ByteString b = 5238 6555 com.google.protobuf.ByteString.copyFromUtf8( 5239 6556 (java.lang.String) ref); … … 5250 6567 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5251 6568 */ 5252 @Override 5253 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getFieldList() { 6569 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getFieldList() { 5254 6570 return field_; 5255 6571 } … … 5257 6573 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5258 6574 */ 5259 @Override 5260 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 6575 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 5261 6576 getFieldOrBuilderList() { 5262 6577 return field_; … … 5265 6580 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5266 6581 */ 5267 @Override 5268 public int getFieldCount() { 6582 public int getFieldCount() { 5269 6583 return field_.size(); 5270 6584 } … … 5272 6586 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5273 6587 */ 5274 @Override 5275 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { 6588 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { 5276 6589 return field_.get(index); 5277 6590 } … … 5279 6592 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 5280 6593 */ 5281 @Override 5282 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( 6594 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( 5283 6595 int index) { 5284 6596 return field_.get(index); … … 5290 6602 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 5291 6603 */ 5292 @Override 5293 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 6604 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 5294 6605 return extension_; 5295 6606 } … … 5297 6608 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 5298 6609 */ 5299 @Override 5300 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 6610 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 5301 6611 getExtensionOrBuilderList() { 5302 6612 return extension_; … … 5305 6615 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 5306 6616 */ 5307 @Override 5308 public int getExtensionCount() { 6617 public int getExtensionCount() { 5309 6618 return extension_.size(); 5310 6619 } … … 5312 6621 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 5313 6622 */ 5314 @Override 5315 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 6623 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 5316 6624 return extension_.get(index); 5317 6625 } … … 5319 6627 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 5320 6628 */ 5321 @Override 5322 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 6629 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 5323 6630 int index) { 5324 6631 return extension_.get(index); … … 5330 6637 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 5331 6638 */ 5332 @Override 5333 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getNestedTypeList() { 6639 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getNestedTypeList() { 5334 6640 return nestedType_; 5335 6641 } … … 5337 6643 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 5338 6644 */ 5339 @Override 5340 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 6645 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 5341 6646 getNestedTypeOrBuilderList() { 5342 6647 return nestedType_; … … 5345 6650 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 5346 6651 */ 5347 @Override 5348 public int getNestedTypeCount() { 6652 public int getNestedTypeCount() { 5349 6653 return nestedType_.size(); 5350 6654 } … … 5352 6656 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 5353 6657 */ 5354 @Override 5355 public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { 6658 public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { 5356 6659 return nestedType_.get(index); 5357 6660 } … … 5359 6662 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 5360 6663 */ 5361 @Override 5362 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( 6664 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( 5363 6665 int index) { 5364 6666 return nestedType_.get(index); … … 5370 6672 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 5371 6673 */ 5372 @Override 5373 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 6674 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 5374 6675 return enumType_; 5375 6676 } … … 5377 6678 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 5378 6679 */ 5379 @Override 5380 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 6680 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 5381 6681 getEnumTypeOrBuilderList() { 5382 6682 return enumType_; … … 5385 6685 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 5386 6686 */ 5387 @Override 5388 public int getEnumTypeCount() { 6687 public int getEnumTypeCount() { 5389 6688 return enumType_.size(); 5390 6689 } … … 5392 6691 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 5393 6692 */ 5394 @Override 5395 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 6693 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 5396 6694 return enumType_.get(index); 5397 6695 } … … 5399 6697 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 5400 6698 */ 5401 @Override 5402 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 6699 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 5403 6700 int index) { 5404 6701 return enumType_.get(index); … … 5410 6707 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 5411 6708 */ 5412 @Override 5413 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList() { 6709 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList() { 5414 6710 return extensionRange_; 5415 6711 } … … 5417 6713 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 5418 6714 */ 5419 @Override 5420 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 6715 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 5421 6716 getExtensionRangeOrBuilderList() { 5422 6717 return extensionRange_; … … 5425 6720 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 5426 6721 */ 5427 @Override 5428 public int getExtensionRangeCount() { 6722 public int getExtensionRangeCount() { 5429 6723 return extensionRange_.size(); 5430 6724 } … … 5432 6726 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 5433 6727 */ 5434 @Override 5435 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { 6728 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { 5436 6729 return extensionRange_.get(index); 5437 6730 } … … 5439 6732 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 5440 6733 */ 5441 @Override 5442 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( 6734 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( 5443 6735 int index) { 5444 6736 return extensionRange_.get(index); … … 5450 6742 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 5451 6743 */ 5452 @Override 5453 public java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> getOneofDeclList() { 6744 public java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> getOneofDeclList() { 5454 6745 return oneofDecl_; 5455 6746 } … … 5457 6748 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 5458 6749 */ 5459 @Override 5460 public java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> 6750 public java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> 5461 6751 getOneofDeclOrBuilderList() { 5462 6752 return oneofDecl_; … … 5465 6755 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 5466 6756 */ 5467 @Override 5468 public int getOneofDeclCount() { 6757 public int getOneofDeclCount() { 5469 6758 return oneofDecl_.size(); 5470 6759 } … … 5472 6761 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 5473 6762 */ 5474 @Override 5475 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index) { 6763 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index) { 5476 6764 return oneofDecl_.get(index); 5477 6765 } … … 5479 6767 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 5480 6768 */ 5481 @Override 5482 public com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( 6769 public com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( 5483 6770 int index) { 5484 6771 return oneofDecl_.get(index); … … 5490 6777 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 5491 6778 */ 5492 @Override 5493 public boolean hasOptions() { 6779 public boolean hasOptions() { 5494 6780 return ((bitField0_ & 0x00000002) == 0x00000002); 5495 6781 } … … 5497 6783 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 5498 6784 */ 5499 @Override 5500 public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { 5501 return options_; 6785 public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { 6786 return options_ == null ? com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; 5502 6787 } 5503 6788 /** 5504 6789 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 5505 6790 */ 5506 @Override 5507 public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { 5508 return options_; 5509 } 5510 5511 private void initFields() { 5512 name_ = ""; 5513 field_ = java.util.Collections.emptyList(); 5514 extension_ = java.util.Collections.emptyList(); 5515 nestedType_ = java.util.Collections.emptyList(); 5516 enumType_ = java.util.Collections.emptyList(); 5517 extensionRange_ = java.util.Collections.emptyList(); 5518 oneofDecl_ = java.util.Collections.emptyList(); 5519 options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); 5520 } 6791 public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { 6792 return options_ == null ? com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; 6793 } 6794 6795 public static final int RESERVED_RANGE_FIELD_NUMBER = 9; 6796 private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> reservedRange_; 6797 /** 6798 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 6799 */ 6800 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> getReservedRangeList() { 6801 return reservedRange_; 6802 } 6803 /** 6804 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 6805 */ 6806 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> 6807 getReservedRangeOrBuilderList() { 6808 return reservedRange_; 6809 } 6810 /** 6811 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 6812 */ 6813 public int getReservedRangeCount() { 6814 return reservedRange_.size(); 6815 } 6816 /** 6817 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 6818 */ 6819 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index) { 6820 return reservedRange_.get(index); 6821 } 6822 /** 6823 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 6824 */ 6825 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( 6826 int index) { 6827 return reservedRange_.get(index); 6828 } 6829 6830 public static final int RESERVED_NAME_FIELD_NUMBER = 10; 6831 private com.google.protobuf.LazyStringList reservedName_; 6832 /** 6833 * <pre> 6834 * Reserved field names, which may not be used by fields in the same message. 6835 * A given name may only be reserved once. 6836 * </pre> 6837 * 6838 * <code>repeated string reserved_name = 10;</code> 6839 */ 6840 public com.google.protobuf.ProtocolStringList 6841 getReservedNameList() { 6842 return reservedName_; 6843 } 6844 /** 6845 * <pre> 6846 * Reserved field names, which may not be used by fields in the same message. 6847 * A given name may only be reserved once. 6848 * </pre> 6849 * 6850 * <code>repeated string reserved_name = 10;</code> 6851 */ 6852 public int getReservedNameCount() { 6853 return reservedName_.size(); 6854 } 6855 /** 6856 * <pre> 6857 * Reserved field names, which may not be used by fields in the same message. 6858 * A given name may only be reserved once. 6859 * </pre> 6860 * 6861 * <code>repeated string reserved_name = 10;</code> 6862 */ 6863 public java.lang.String getReservedName(int index) { 6864 return reservedName_.get(index); 6865 } 6866 /** 6867 * <pre> 6868 * Reserved field names, which may not be used by fields in the same message. 6869 * A given name may only be reserved once. 6870 * </pre> 6871 * 6872 * <code>repeated string reserved_name = 10;</code> 6873 */ 6874 public com.google.protobuf.ByteString 6875 getReservedNameBytes(int index) { 6876 return reservedName_.getByteString(index); 6877 } 6878 5521 6879 private byte memoizedIsInitialized = -1; 5522 @Override 5523 public final boolean isInitialized() { 6880 public final boolean isInitialized() { 5524 6881 byte isInitialized = memoizedIsInitialized; 5525 6882 if (isInitialized == 1) return true; … … 5550 6907 } 5551 6908 } 6909 for (int i = 0; i < getExtensionRangeCount(); i++) { 6910 if (!getExtensionRange(i).isInitialized()) { 6911 memoizedIsInitialized = 0; 6912 return false; 6913 } 6914 } 6915 for (int i = 0; i < getOneofDeclCount(); i++) { 6916 if (!getOneofDecl(i).isInitialized()) { 6917 memoizedIsInitialized = 0; 6918 return false; 6919 } 6920 } 5552 6921 if (hasOptions()) { 5553 6922 if (!getOptions().isInitialized()) { … … 5560 6929 } 5561 6930 5562 @Override 5563 public void writeTo(com.google.protobuf.CodedOutputStream output) 6931 public void writeTo(com.google.protobuf.CodedOutputStream output) 5564 6932 throws java.io.IOException { 5565 getSerializedSize();5566 6933 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5567 output.writeBytes(1, getNameBytes());6934 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 5568 6935 } 5569 6936 for (int i = 0; i < field_.size(); i++) { … … 5583 6950 } 5584 6951 if (((bitField0_ & 0x00000002) == 0x00000002)) { 5585 output.writeMessage(7, options_);6952 output.writeMessage(7, getOptions()); 5586 6953 } 5587 6954 for (int i = 0; i < oneofDecl_.size(); i++) { 5588 6955 output.writeMessage(8, oneofDecl_.get(i)); 5589 6956 } 5590 getUnknownFields().writeTo(output); 5591 } 5592 5593 private int memoizedSerializedSize = -1; 5594 @Override 5595 public int getSerializedSize() { 5596 int size = memoizedSerializedSize; 6957 for (int i = 0; i < reservedRange_.size(); i++) { 6958 output.writeMessage(9, reservedRange_.get(i)); 6959 } 6960 for (int i = 0; i < reservedName_.size(); i++) { 6961 com.google.protobuf.GeneratedMessageV3.writeString(output, 10, reservedName_.getRaw(i)); 6962 } 6963 unknownFields.writeTo(output); 6964 } 6965 6966 public int getSerializedSize() { 6967 int size = memoizedSize; 5597 6968 if (size != -1) return size; 5598 6969 5599 6970 size = 0; 5600 6971 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5601 size += com.google.protobuf.CodedOutputStream 5602 .computeBytesSize(1, getNameBytes()); 6972 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 5603 6973 } 5604 6974 for (int i = 0; i < field_.size(); i++) { … … 5624 6994 if (((bitField0_ & 0x00000002) == 0x00000002)) { 5625 6995 size += com.google.protobuf.CodedOutputStream 5626 .computeMessageSize(7, options_);6996 .computeMessageSize(7, getOptions()); 5627 6997 } 5628 6998 for (int i = 0; i < oneofDecl_.size(); i++) { … … 5630 7000 .computeMessageSize(8, oneofDecl_.get(i)); 5631 7001 } 5632 size += getUnknownFields().getSerializedSize(); 5633 memoizedSerializedSize = size; 7002 for (int i = 0; i < reservedRange_.size(); i++) { 7003 size += com.google.protobuf.CodedOutputStream 7004 .computeMessageSize(9, reservedRange_.get(i)); 7005 } 7006 { 7007 int dataSize = 0; 7008 for (int i = 0; i < reservedName_.size(); i++) { 7009 dataSize += computeStringSizeNoTag(reservedName_.getRaw(i)); 7010 } 7011 size += dataSize; 7012 size += 1 * getReservedNameList().size(); 7013 } 7014 size += unknownFields.getSerializedSize(); 7015 memoizedSize = size; 5634 7016 return size; 5635 7017 } 5636 7018 5637 private static final long serialVersionUID = 0L;5638 7019 @java.lang.Override 5639 protected java.lang.Object writeReplace() 5640 throws java.io.ObjectStreamException { 5641 return super.writeReplace(); 5642 } 5643 7020 public boolean equals(final java.lang.Object obj) { 7021 if (obj == this) { 7022 return true; 7023 } 7024 if (!(obj instanceof com.google.protobuf.DescriptorProtos.DescriptorProto)) { 7025 return super.equals(obj); 7026 } 7027 com.google.protobuf.DescriptorProtos.DescriptorProto other = (com.google.protobuf.DescriptorProtos.DescriptorProto) obj; 7028 7029 boolean result = true; 7030 result = result && (hasName() == other.hasName()); 7031 if (hasName()) { 7032 result = result && getName() 7033 .equals(other.getName()); 7034 } 7035 result = result && getFieldList() 7036 .equals(other.getFieldList()); 7037 result = result && getExtensionList() 7038 .equals(other.getExtensionList()); 7039 result = result && getNestedTypeList() 7040 .equals(other.getNestedTypeList()); 7041 result = result && getEnumTypeList() 7042 .equals(other.getEnumTypeList()); 7043 result = result && getExtensionRangeList() 7044 .equals(other.getExtensionRangeList()); 7045 result = result && getOneofDeclList() 7046 .equals(other.getOneofDeclList()); 7047 result = result && (hasOptions() == other.hasOptions()); 7048 if (hasOptions()) { 7049 result = result && getOptions() 7050 .equals(other.getOptions()); 7051 } 7052 result = result && getReservedRangeList() 7053 .equals(other.getReservedRangeList()); 7054 result = result && getReservedNameList() 7055 .equals(other.getReservedNameList()); 7056 result = result && unknownFields.equals(other.unknownFields); 7057 return result; 7058 } 7059 7060 @java.lang.Override 7061 public int hashCode() { 7062 if (memoizedHashCode != 0) { 7063 return memoizedHashCode; 7064 } 7065 int hash = 41; 7066 hash = (19 * hash) + getDescriptor().hashCode(); 7067 if (hasName()) { 7068 hash = (37 * hash) + NAME_FIELD_NUMBER; 7069 hash = (53 * hash) + getName().hashCode(); 7070 } 7071 if (getFieldCount() > 0) { 7072 hash = (37 * hash) + FIELD_FIELD_NUMBER; 7073 hash = (53 * hash) + getFieldList().hashCode(); 7074 } 7075 if (getExtensionCount() > 0) { 7076 hash = (37 * hash) + EXTENSION_FIELD_NUMBER; 7077 hash = (53 * hash) + getExtensionList().hashCode(); 7078 } 7079 if (getNestedTypeCount() > 0) { 7080 hash = (37 * hash) + NESTED_TYPE_FIELD_NUMBER; 7081 hash = (53 * hash) + getNestedTypeList().hashCode(); 7082 } 7083 if (getEnumTypeCount() > 0) { 7084 hash = (37 * hash) + ENUM_TYPE_FIELD_NUMBER; 7085 hash = (53 * hash) + getEnumTypeList().hashCode(); 7086 } 7087 if (getExtensionRangeCount() > 0) { 7088 hash = (37 * hash) + EXTENSION_RANGE_FIELD_NUMBER; 7089 hash = (53 * hash) + getExtensionRangeList().hashCode(); 7090 } 7091 if (getOneofDeclCount() > 0) { 7092 hash = (37 * hash) + ONEOF_DECL_FIELD_NUMBER; 7093 hash = (53 * hash) + getOneofDeclList().hashCode(); 7094 } 7095 if (hasOptions()) { 7096 hash = (37 * hash) + OPTIONS_FIELD_NUMBER; 7097 hash = (53 * hash) + getOptions().hashCode(); 7098 } 7099 if (getReservedRangeCount() > 0) { 7100 hash = (37 * hash) + RESERVED_RANGE_FIELD_NUMBER; 7101 hash = (53 * hash) + getReservedRangeList().hashCode(); 7102 } 7103 if (getReservedNameCount() > 0) { 7104 hash = (37 * hash) + RESERVED_NAME_FIELD_NUMBER; 7105 hash = (53 * hash) + getReservedNameList().hashCode(); 7106 } 7107 hash = (29 * hash) + unknownFields.hashCode(); 7108 memoizedHashCode = hash; 7109 return hash; 7110 } 7111 7112 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( 7113 java.nio.ByteBuffer data) 7114 throws com.google.protobuf.InvalidProtocolBufferException { 7115 return PARSER.parseFrom(data); 7116 } 7117 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( 7118 java.nio.ByteBuffer data, 7119 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7120 throws com.google.protobuf.InvalidProtocolBufferException { 7121 return PARSER.parseFrom(data, extensionRegistry); 7122 } 5644 7123 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( 5645 7124 com.google.protobuf.ByteString data) … … 5665 7144 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom(java.io.InputStream input) 5666 7145 throws java.io.IOException { 5667 return PARSER.parseFrom(input); 7146 return com.google.protobuf.GeneratedMessageV3 7147 .parseWithIOException(PARSER, input); 5668 7148 } 5669 7149 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( … … 5671 7151 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5672 7152 throws java.io.IOException { 5673 return PARSER.parseFrom(input, extensionRegistry); 7153 return com.google.protobuf.GeneratedMessageV3 7154 .parseWithIOException(PARSER, input, extensionRegistry); 5674 7155 } 5675 7156 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseDelimitedFrom(java.io.InputStream input) 5676 7157 throws java.io.IOException { 5677 return PARSER.parseDelimitedFrom(input); 7158 return com.google.protobuf.GeneratedMessageV3 7159 .parseDelimitedWithIOException(PARSER, input); 5678 7160 } 5679 7161 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseDelimitedFrom( … … 5681 7163 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5682 7164 throws java.io.IOException { 5683 return PARSER.parseDelimitedFrom(input, extensionRegistry); 7165 return com.google.protobuf.GeneratedMessageV3 7166 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 5684 7167 } 5685 7168 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( 5686 7169 com.google.protobuf.CodedInputStream input) 5687 7170 throws java.io.IOException { 5688 return PARSER.parseFrom(input); 7171 return com.google.protobuf.GeneratedMessageV3 7172 .parseWithIOException(PARSER, input); 5689 7173 } 5690 7174 public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( … … 5692 7176 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5693 7177 throws java.io.IOException { 5694 return PARSER.parseFrom(input, extensionRegistry); 5695 } 5696 5697 public static Builder newBuilder() { return Builder.create(); } 5698 @Override 5699 public Builder newBuilderForType() { return newBuilder(); } 7178 return com.google.protobuf.GeneratedMessageV3 7179 .parseWithIOException(PARSER, input, extensionRegistry); 7180 } 7181 7182 public Builder newBuilderForType() { return newBuilder(); } 7183 public static Builder newBuilder() { 7184 return DEFAULT_INSTANCE.toBuilder(); 7185 } 5700 7186 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.DescriptorProto prototype) { 5701 return newBuilder().mergeFrom(prototype); 5702 } 5703 @Override 5704 public Builder toBuilder() { return newBuilder(this); } 7187 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 7188 } 7189 public Builder toBuilder() { 7190 return this == DEFAULT_INSTANCE 7191 ? new Builder() : new Builder().mergeFrom(this); 7192 } 5705 7193 5706 7194 @java.lang.Override 5707 7195 protected Builder newBuilderForType( 5708 com.google.protobuf.GeneratedMessage .BuilderParent parent) {7196 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5709 7197 Builder builder = new Builder(parent); 5710 7198 return builder; 5711 7199 } 5712 7200 /** 5713 * Protobuf type {@code google.protobuf.DescriptorProto}5714 *5715 7201 * <pre> 5716 7202 * Describes a message type. 5717 7203 * </pre> 7204 * 7205 * Protobuf type {@code google.protobuf.DescriptorProto} 5718 7206 */ 5719 7207 public static final class Builder extends 5720 com.google.protobuf.GeneratedMessage .Builder<Builder> implements7208 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 5721 7209 // @@protoc_insertion_point(builder_implements:google.protobuf.DescriptorProto) 5722 7210 com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder { … … 5726 7214 } 5727 7215 5728 @Override 5729 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 7216 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 5730 7217 internalGetFieldAccessorTable() { 5731 7218 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable … … 5740 7227 5741 7228 private Builder( 5742 com.google.protobuf.GeneratedMessage .BuilderParent parent) {7229 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 5743 7230 super(parent); 5744 7231 maybeForceBuilderInitialization(); 5745 7232 } 5746 7233 private void maybeForceBuilderInitialization() { 5747 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 7234 if (com.google.protobuf.GeneratedMessageV3 7235 .alwaysUseFieldBuilders) { 5748 7236 getFieldFieldBuilder(); 5749 7237 getExtensionFieldBuilder(); … … 5753 7241 getOneofDeclFieldBuilder(); 5754 7242 getOptionsFieldBuilder(); 5755 } 5756 } 5757 private static Builder create() { 5758 return new Builder(); 5759 } 5760 5761 @Override 5762 public Builder clear() { 7243 getReservedRangeFieldBuilder(); 7244 } 7245 } 7246 public Builder clear() { 5763 7247 super.clear(); 5764 7248 name_ = ""; … … 5801 7285 } 5802 7286 if (optionsBuilder_ == null) { 5803 options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance();7287 options_ = null; 5804 7288 } else { 5805 7289 optionsBuilder_.clear(); 5806 7290 } 5807 7291 bitField0_ = (bitField0_ & ~0x00000080); 5808 return this; 5809 } 5810 5811 @Override 5812 public Builder clone() { 5813 return create().mergeFrom(buildPartial()); 5814 } 5815 5816 @Override 5817 public com.google.protobuf.Descriptors.Descriptor 7292 if (reservedRangeBuilder_ == null) { 7293 reservedRange_ = java.util.Collections.emptyList(); 7294 bitField0_ = (bitField0_ & ~0x00000100); 7295 } else { 7296 reservedRangeBuilder_.clear(); 7297 } 7298 reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; 7299 bitField0_ = (bitField0_ & ~0x00000200); 7300 return this; 7301 } 7302 7303 public com.google.protobuf.Descriptors.Descriptor 5818 7304 getDescriptorForType() { 5819 7305 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; 5820 7306 } 5821 7307 5822 @Override 5823 public com.google.protobuf.DescriptorProtos.DescriptorProto getDefaultInstanceForType() { 7308 public com.google.protobuf.DescriptorProtos.DescriptorProto getDefaultInstanceForType() { 5824 7309 return com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance(); 5825 7310 } 5826 7311 5827 @Override 5828 public com.google.protobuf.DescriptorProtos.DescriptorProto build() { 7312 public com.google.protobuf.DescriptorProtos.DescriptorProto build() { 5829 7313 com.google.protobuf.DescriptorProtos.DescriptorProto result = buildPartial(); 5830 7314 if (!result.isInitialized()) { … … 5834 7318 } 5835 7319 5836 @Override 5837 public com.google.protobuf.DescriptorProtos.DescriptorProto buildPartial() { 7320 public com.google.protobuf.DescriptorProtos.DescriptorProto buildPartial() { 5838 7321 com.google.protobuf.DescriptorProtos.DescriptorProto result = new com.google.protobuf.DescriptorProtos.DescriptorProto(this); 5839 7322 int from_bitField0_ = bitField0_; … … 5905 7388 result.options_ = optionsBuilder_.build(); 5906 7389 } 7390 if (reservedRangeBuilder_ == null) { 7391 if (((bitField0_ & 0x00000100) == 0x00000100)) { 7392 reservedRange_ = java.util.Collections.unmodifiableList(reservedRange_); 7393 bitField0_ = (bitField0_ & ~0x00000100); 7394 } 7395 result.reservedRange_ = reservedRange_; 7396 } else { 7397 result.reservedRange_ = reservedRangeBuilder_.build(); 7398 } 7399 if (((bitField0_ & 0x00000200) == 0x00000200)) { 7400 reservedName_ = reservedName_.getUnmodifiableView(); 7401 bitField0_ = (bitField0_ & ~0x00000200); 7402 } 7403 result.reservedName_ = reservedName_; 5907 7404 result.bitField0_ = to_bitField0_; 5908 7405 onBuilt(); … … 5910 7407 } 5911 7408 5912 @Override 5913 public Builder mergeFrom(com.google.protobuf.Message other) { 7409 public Builder clone() { 7410 return (Builder) super.clone(); 7411 } 7412 public Builder setField( 7413 com.google.protobuf.Descriptors.FieldDescriptor field, 7414 java.lang.Object value) { 7415 return (Builder) super.setField(field, value); 7416 } 7417 public Builder clearField( 7418 com.google.protobuf.Descriptors.FieldDescriptor field) { 7419 return (Builder) super.clearField(field); 7420 } 7421 public Builder clearOneof( 7422 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 7423 return (Builder) super.clearOneof(oneof); 7424 } 7425 public Builder setRepeatedField( 7426 com.google.protobuf.Descriptors.FieldDescriptor field, 7427 int index, java.lang.Object value) { 7428 return (Builder) super.setRepeatedField(field, index, value); 7429 } 7430 public Builder addRepeatedField( 7431 com.google.protobuf.Descriptors.FieldDescriptor field, 7432 java.lang.Object value) { 7433 return (Builder) super.addRepeatedField(field, value); 7434 } 7435 public Builder mergeFrom(com.google.protobuf.Message other) { 5914 7436 if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto) { 5915 7437 return mergeFrom((com.google.protobuf.DescriptorProtos.DescriptorProto)other); … … 5945 7467 field_ = other.field_; 5946 7468 bitField0_ = (bitField0_ & ~0x00000002); 5947 fieldBuilder_ = 5948 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?7469 fieldBuilder_ = 7470 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 5949 7471 getFieldFieldBuilder() : null; 5950 7472 } else { … … 5971 7493 extension_ = other.extension_; 5972 7494 bitField0_ = (bitField0_ & ~0x00000004); 5973 extensionBuilder_ = 5974 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?7495 extensionBuilder_ = 7496 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 5975 7497 getExtensionFieldBuilder() : null; 5976 7498 } else { … … 5997 7519 nestedType_ = other.nestedType_; 5998 7520 bitField0_ = (bitField0_ & ~0x00000008); 5999 nestedTypeBuilder_ = 6000 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?7521 nestedTypeBuilder_ = 7522 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 6001 7523 getNestedTypeFieldBuilder() : null; 6002 7524 } else { … … 6023 7545 enumType_ = other.enumType_; 6024 7546 bitField0_ = (bitField0_ & ~0x00000010); 6025 enumTypeBuilder_ = 6026 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?7547 enumTypeBuilder_ = 7548 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 6027 7549 getEnumTypeFieldBuilder() : null; 6028 7550 } else { … … 6049 7571 extensionRange_ = other.extensionRange_; 6050 7572 bitField0_ = (bitField0_ & ~0x00000020); 6051 extensionRangeBuilder_ = 6052 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?7573 extensionRangeBuilder_ = 7574 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 6053 7575 getExtensionRangeFieldBuilder() : null; 6054 7576 } else { … … 6075 7597 oneofDecl_ = other.oneofDecl_; 6076 7598 bitField0_ = (bitField0_ & ~0x00000040); 6077 oneofDeclBuilder_ = 6078 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?7599 oneofDeclBuilder_ = 7600 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 6079 7601 getOneofDeclFieldBuilder() : null; 6080 7602 } else { … … 6086 7608 mergeOptions(other.getOptions()); 6087 7609 } 6088 this.mergeUnknownFields(other.getUnknownFields()); 6089 return this; 6090 } 6091 6092 @Override 6093 public final boolean isInitialized() { 7610 if (reservedRangeBuilder_ == null) { 7611 if (!other.reservedRange_.isEmpty()) { 7612 if (reservedRange_.isEmpty()) { 7613 reservedRange_ = other.reservedRange_; 7614 bitField0_ = (bitField0_ & ~0x00000100); 7615 } else { 7616 ensureReservedRangeIsMutable(); 7617 reservedRange_.addAll(other.reservedRange_); 7618 } 7619 onChanged(); 7620 } 7621 } else { 7622 if (!other.reservedRange_.isEmpty()) { 7623 if (reservedRangeBuilder_.isEmpty()) { 7624 reservedRangeBuilder_.dispose(); 7625 reservedRangeBuilder_ = null; 7626 reservedRange_ = other.reservedRange_; 7627 bitField0_ = (bitField0_ & ~0x00000100); 7628 reservedRangeBuilder_ = 7629 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 7630 getReservedRangeFieldBuilder() : null; 7631 } else { 7632 reservedRangeBuilder_.addAllMessages(other.reservedRange_); 7633 } 7634 } 7635 } 7636 if (!other.reservedName_.isEmpty()) { 7637 if (reservedName_.isEmpty()) { 7638 reservedName_ = other.reservedName_; 7639 bitField0_ = (bitField0_ & ~0x00000200); 7640 } else { 7641 ensureReservedNameIsMutable(); 7642 reservedName_.addAll(other.reservedName_); 7643 } 7644 onChanged(); 7645 } 7646 this.mergeUnknownFields(other.unknownFields); 7647 onChanged(); 7648 return this; 7649 } 7650 7651 public final boolean isInitialized() { 6094 7652 for (int i = 0; i < getFieldCount(); i++) { 6095 7653 if (!getField(i).isInitialized()) { 6096 6097 7654 return false; 6098 7655 } … … 6100 7657 for (int i = 0; i < getExtensionCount(); i++) { 6101 7658 if (!getExtension(i).isInitialized()) { 6102 6103 7659 return false; 6104 7660 } … … 6106 7662 for (int i = 0; i < getNestedTypeCount(); i++) { 6107 7663 if (!getNestedType(i).isInitialized()) { 6108 6109 7664 return false; 6110 7665 } … … 6112 7667 for (int i = 0; i < getEnumTypeCount(); i++) { 6113 7668 if (!getEnumType(i).isInitialized()) { 6114 6115 7669 return false; 6116 7670 } 6117 7671 } 7672 for (int i = 0; i < getExtensionRangeCount(); i++) { 7673 if (!getExtensionRange(i).isInitialized()) { 7674 return false; 7675 } 7676 } 7677 for (int i = 0; i < getOneofDeclCount(); i++) { 7678 if (!getOneofDecl(i).isInitialized()) { 7679 return false; 7680 } 7681 } 6118 7682 if (hasOptions()) { 6119 7683 if (!getOptions().isInitialized()) { 6120 6121 7684 return false; 6122 7685 } … … 6125 7688 } 6126 7689 6127 @Override 6128 public Builder mergeFrom( 7690 public Builder mergeFrom( 6129 7691 com.google.protobuf.CodedInputStream input, 6130 7692 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 6135 7697 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6136 7698 parsedMessage = (com.google.protobuf.DescriptorProtos.DescriptorProto) e.getUnfinishedMessage(); 6137 throw e ;7699 throw e.unwrapIOException(); 6138 7700 } finally { 6139 7701 if (parsedMessage != null) { … … 6149 7711 * <code>optional string name = 1;</code> 6150 7712 */ 6151 @Override 6152 public boolean hasName() { 7713 public boolean hasName() { 6153 7714 return ((bitField0_ & 0x00000001) == 0x00000001); 6154 7715 } … … 6156 7717 * <code>optional string name = 1;</code> 6157 7718 */ 6158 @Override 6159 public java.lang.String getName() { 7719 public java.lang.String getName() { 6160 7720 java.lang.Object ref = name_; 6161 7721 if (!(ref instanceof java.lang.String)) { … … 6174 7734 * <code>optional string name = 1;</code> 6175 7735 */ 6176 @Override 6177 public com.google.protobuf.ByteString 7736 public com.google.protobuf.ByteString 6178 7737 getNameBytes() { 6179 7738 java.lang.Object ref = name_; 6180 7739 if (ref instanceof String) { 6181 com.google.protobuf.ByteString b = 7740 com.google.protobuf.ByteString b = 6182 7741 com.google.protobuf.ByteString.copyFromUtf8( 6183 7742 (java.lang.String) ref); … … 6228 7787 private void ensureFieldIsMutable() { 6229 7788 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 6230 field_ = new java.util.ArrayList< >(field_);7789 field_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(field_); 6231 7790 bitField0_ |= 0x00000002; 6232 7791 } 6233 7792 } 6234 7793 6235 private com.google.protobuf.RepeatedFieldBuilder <7794 private com.google.protobuf.RepeatedFieldBuilderV3< 6236 7795 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> fieldBuilder_; 6237 7796 … … 6239 7798 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6240 7799 */ 6241 @Override 6242 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getFieldList() { 7800 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getFieldList() { 6243 7801 if (fieldBuilder_ == null) { 6244 7802 return java.util.Collections.unmodifiableList(field_); … … 6250 7808 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6251 7809 */ 6252 @Override 6253 public int getFieldCount() { 7810 public int getFieldCount() { 6254 7811 if (fieldBuilder_ == null) { 6255 7812 return field_.size(); … … 6261 7818 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6262 7819 */ 6263 @Override 6264 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { 7820 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { 6265 7821 if (fieldBuilder_ == null) { 6266 7822 return field_.get(index); … … 6412 7968 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6413 7969 */ 6414 @Override 6415 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( 7970 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( 6416 7971 int index) { 6417 7972 if (fieldBuilder_ == null) { … … 6423 7978 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6424 7979 */ 6425 @Override 6426 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 7980 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 6427 7981 getFieldOrBuilderList() { 6428 7982 if (fieldBuilder_ != null) { … … 6450 8004 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> 6451 8005 */ 6452 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> 8006 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> 6453 8007 getFieldBuilderList() { 6454 8008 return getFieldFieldBuilder().getBuilderList(); 6455 8009 } 6456 private com.google.protobuf.RepeatedFieldBuilder <6457 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 8010 private com.google.protobuf.RepeatedFieldBuilderV3< 8011 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 6458 8012 getFieldFieldBuilder() { 6459 8013 if (fieldBuilder_ == null) { 6460 fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 8014 fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 8015 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( 6461 8016 field_, 6462 8017 ((bitField0_ & 0x00000002) == 0x00000002), … … 6472 8027 private void ensureExtensionIsMutable() { 6473 8028 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 6474 extension_ = new java.util.ArrayList< >(extension_);8029 extension_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.FieldDescriptorProto>(extension_); 6475 8030 bitField0_ |= 0x00000004; 6476 8031 } 6477 8032 } 6478 8033 6479 private com.google.protobuf.RepeatedFieldBuilder <8034 private com.google.protobuf.RepeatedFieldBuilderV3< 6480 8035 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_; 6481 8036 … … 6483 8038 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6484 8039 */ 6485 @Override 6486 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 8040 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto> getExtensionList() { 6487 8041 if (extensionBuilder_ == null) { 6488 8042 return java.util.Collections.unmodifiableList(extension_); … … 6494 8048 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6495 8049 */ 6496 @Override 6497 public int getExtensionCount() { 8050 public int getExtensionCount() { 6498 8051 if (extensionBuilder_ == null) { 6499 8052 return extension_.size(); … … 6505 8058 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6506 8059 */ 6507 @Override 6508 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 8060 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { 6509 8061 if (extensionBuilder_ == null) { 6510 8062 return extension_.get(index); … … 6656 8208 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6657 8209 */ 6658 @Override 6659 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 8210 public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( 6660 8211 int index) { 6661 8212 if (extensionBuilder_ == null) { … … 6667 8218 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6668 8219 */ 6669 @Override 6670 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 8220 public java.util.List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 6671 8221 getExtensionOrBuilderList() { 6672 8222 if (extensionBuilder_ != null) { … … 6694 8244 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code> 6695 8245 */ 6696 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> 8246 public java.util.List<com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder> 6697 8247 getExtensionBuilderList() { 6698 8248 return getExtensionFieldBuilder().getBuilderList(); 6699 8249 } 6700 private com.google.protobuf.RepeatedFieldBuilder <6701 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 8250 private com.google.protobuf.RepeatedFieldBuilderV3< 8251 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> 6702 8252 getExtensionFieldBuilder() { 6703 8253 if (extensionBuilder_ == null) { 6704 extensionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 8254 extensionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 8255 com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( 6705 8256 extension_, 6706 8257 ((bitField0_ & 0x00000004) == 0x00000004), … … 6716 8267 private void ensureNestedTypeIsMutable() { 6717 8268 if (!((bitField0_ & 0x00000008) == 0x00000008)) { 6718 nestedType_ = new java.util.ArrayList< >(nestedType_);8269 nestedType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto>(nestedType_); 6719 8270 bitField0_ |= 0x00000008; 6720 8271 } 6721 8272 } 6722 8273 6723 private com.google.protobuf.RepeatedFieldBuilder <8274 private com.google.protobuf.RepeatedFieldBuilderV3< 6724 8275 com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> nestedTypeBuilder_; 6725 8276 … … 6727 8278 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6728 8279 */ 6729 @Override 6730 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getNestedTypeList() { 8280 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> getNestedTypeList() { 6731 8281 if (nestedTypeBuilder_ == null) { 6732 8282 return java.util.Collections.unmodifiableList(nestedType_); … … 6738 8288 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6739 8289 */ 6740 @Override 6741 public int getNestedTypeCount() { 8290 public int getNestedTypeCount() { 6742 8291 if (nestedTypeBuilder_ == null) { 6743 8292 return nestedType_.size(); … … 6749 8298 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6750 8299 */ 6751 @Override 6752 public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { 8300 public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { 6753 8301 if (nestedTypeBuilder_ == null) { 6754 8302 return nestedType_.get(index); … … 6900 8448 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6901 8449 */ 6902 @Override 6903 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( 8450 public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( 6904 8451 int index) { 6905 8452 if (nestedTypeBuilder_ == null) { … … 6911 8458 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6912 8459 */ 6913 @Override 6914 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 8460 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 6915 8461 getNestedTypeOrBuilderList() { 6916 8462 if (nestedTypeBuilder_ != null) { … … 6938 8484 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> 6939 8485 */ 6940 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.Builder> 8486 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.Builder> 6941 8487 getNestedTypeBuilderList() { 6942 8488 return getNestedTypeFieldBuilder().getBuilderList(); 6943 8489 } 6944 private com.google.protobuf.RepeatedFieldBuilder <6945 com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 8490 private com.google.protobuf.RepeatedFieldBuilderV3< 8491 com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 6946 8492 getNestedTypeFieldBuilder() { 6947 8493 if (nestedTypeBuilder_ == null) { 6948 nestedTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 8494 nestedTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 8495 com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>( 6949 8496 nestedType_, 6950 8497 ((bitField0_ & 0x00000008) == 0x00000008), … … 6960 8507 private void ensureEnumTypeIsMutable() { 6961 8508 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 6962 enumType_ = new java.util.ArrayList< >(enumType_);8509 enumType_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>(enumType_); 6963 8510 bitField0_ |= 0x00000010; 6964 8511 } 6965 8512 } 6966 8513 6967 private com.google.protobuf.RepeatedFieldBuilder <8514 private com.google.protobuf.RepeatedFieldBuilderV3< 6968 8515 com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_; 6969 8516 … … 6971 8518 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6972 8519 */ 6973 @Override 6974 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 8520 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> getEnumTypeList() { 6975 8521 if (enumTypeBuilder_ == null) { 6976 8522 return java.util.Collections.unmodifiableList(enumType_); … … 6982 8528 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6983 8529 */ 6984 @Override 6985 public int getEnumTypeCount() { 8530 public int getEnumTypeCount() { 6986 8531 if (enumTypeBuilder_ == null) { 6987 8532 return enumType_.size(); … … 6993 8538 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 6994 8539 */ 6995 @Override 6996 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 8540 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { 6997 8541 if (enumTypeBuilder_ == null) { 6998 8542 return enumType_.get(index); … … 7144 8688 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 7145 8689 */ 7146 @Override 7147 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 8690 public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( 7148 8691 int index) { 7149 8692 if (enumTypeBuilder_ == null) { … … 7155 8698 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 7156 8699 */ 7157 @Override 7158 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 8700 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 7159 8701 getEnumTypeOrBuilderList() { 7160 8702 if (enumTypeBuilder_ != null) { … … 7182 8724 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> 7183 8725 */ 7184 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder> 8726 public java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder> 7185 8727 getEnumTypeBuilderList() { 7186 8728 return getEnumTypeFieldBuilder().getBuilderList(); 7187 8729 } 7188 private com.google.protobuf.RepeatedFieldBuilder <7189 com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 8730 private com.google.protobuf.RepeatedFieldBuilderV3< 8731 com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> 7190 8732 getEnumTypeFieldBuilder() { 7191 8733 if (enumTypeBuilder_ == null) { 7192 enumTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 8734 enumTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 8735 com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder>( 7193 8736 enumType_, 7194 8737 ((bitField0_ & 0x00000010) == 0x00000010), … … 7204 8747 private void ensureExtensionRangeIsMutable() { 7205 8748 if (!((bitField0_ & 0x00000020) == 0x00000020)) { 7206 extensionRange_ = new java.util.ArrayList< >(extensionRange_);8749 extensionRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange>(extensionRange_); 7207 8750 bitField0_ |= 0x00000020; 7208 8751 } 7209 8752 } 7210 8753 7211 private com.google.protobuf.RepeatedFieldBuilder <8754 private com.google.protobuf.RepeatedFieldBuilderV3< 7212 8755 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> extensionRangeBuilder_; 7213 8756 … … 7215 8758 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7216 8759 */ 7217 @Override 7218 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList() { 8760 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList() { 7219 8761 if (extensionRangeBuilder_ == null) { 7220 8762 return java.util.Collections.unmodifiableList(extensionRange_); … … 7226 8768 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7227 8769 */ 7228 @Override 7229 public int getExtensionRangeCount() { 8770 public int getExtensionRangeCount() { 7230 8771 if (extensionRangeBuilder_ == null) { 7231 8772 return extensionRange_.size(); … … 7237 8778 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7238 8779 */ 7239 @Override 7240 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { 8780 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { 7241 8781 if (extensionRangeBuilder_ == null) { 7242 8782 return extensionRange_.get(index); … … 7388 8928 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7389 8929 */ 7390 @Override 7391 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( 8930 public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( 7392 8931 int index) { 7393 8932 if (extensionRangeBuilder_ == null) { … … 7399 8938 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7400 8939 */ 7401 @Override 7402 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 8940 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 7403 8941 getExtensionRangeOrBuilderList() { 7404 8942 if (extensionRangeBuilder_ != null) { … … 7426 8964 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;</code> 7427 8965 */ 7428 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder> 8966 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder> 7429 8967 getExtensionRangeBuilderList() { 7430 8968 return getExtensionRangeFieldBuilder().getBuilderList(); 7431 8969 } 7432 private com.google.protobuf.RepeatedFieldBuilder <7433 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 8970 private com.google.protobuf.RepeatedFieldBuilderV3< 8971 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> 7434 8972 getExtensionRangeFieldBuilder() { 7435 8973 if (extensionRangeBuilder_ == null) { 7436 extensionRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 8974 extensionRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 8975 com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder>( 7437 8976 extensionRange_, 7438 8977 ((bitField0_ & 0x00000020) == 0x00000020), … … 7448 8987 private void ensureOneofDeclIsMutable() { 7449 8988 if (!((bitField0_ & 0x00000040) == 0x00000040)) { 7450 oneofDecl_ = new java.util.ArrayList< >(oneofDecl_);8989 oneofDecl_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.OneofDescriptorProto>(oneofDecl_); 7451 8990 bitField0_ |= 0x00000040; 7452 8991 } 7453 8992 } 7454 8993 7455 private com.google.protobuf.RepeatedFieldBuilder <8994 private com.google.protobuf.RepeatedFieldBuilderV3< 7456 8995 com.google.protobuf.DescriptorProtos.OneofDescriptorProto, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> oneofDeclBuilder_; 7457 8996 … … 7459 8998 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 7460 8999 */ 7461 @Override 7462 public java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> getOneofDeclList() { 9000 public java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto> getOneofDeclList() { 7463 9001 if (oneofDeclBuilder_ == null) { 7464 9002 return java.util.Collections.unmodifiableList(oneofDecl_); … … 7470 9008 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 7471 9009 */ 7472 @Override 7473 public int getOneofDeclCount() { 9010 public int getOneofDeclCount() { 7474 9011 if (oneofDeclBuilder_ == null) { 7475 9012 return oneofDecl_.size(); … … 7481 9018 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 7482 9019 */ 7483 @Override 7484 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index) { 9020 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index) { 7485 9021 if (oneofDeclBuilder_ == null) { 7486 9022 return oneofDecl_.get(index); … … 7632 9168 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 7633 9169 */ 7634 @Override 7635 public com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( 9170 public com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( 7636 9171 int index) { 7637 9172 if (oneofDeclBuilder_ == null) { … … 7643 9178 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 7644 9179 */ 7645 @Override 7646 public java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> 9180 public java.util.List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> 7647 9181 getOneofDeclOrBuilderList() { 7648 9182 if (oneofDeclBuilder_ != null) { … … 7670 9204 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code> 7671 9205 */ 7672 public java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder> 9206 public java.util.List<com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder> 7673 9207 getOneofDeclBuilderList() { 7674 9208 return getOneofDeclFieldBuilder().getBuilderList(); 7675 9209 } 7676 private com.google.protobuf.RepeatedFieldBuilder <7677 com.google.protobuf.DescriptorProtos.OneofDescriptorProto, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> 9210 private com.google.protobuf.RepeatedFieldBuilderV3< 9211 com.google.protobuf.DescriptorProtos.OneofDescriptorProto, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> 7678 9212 getOneofDeclFieldBuilder() { 7679 9213 if (oneofDeclBuilder_ == null) { 7680 oneofDeclBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 9214 oneofDeclBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 9215 com.google.protobuf.DescriptorProtos.OneofDescriptorProto, com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder>( 7681 9216 oneofDecl_, 7682 9217 ((bitField0_ & 0x00000040) == 0x00000040), … … 7688 9223 } 7689 9224 7690 private com.google.protobuf.DescriptorProtos.MessageOptions options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance();7691 private com.google.protobuf.SingleFieldBuilder <9225 private com.google.protobuf.DescriptorProtos.MessageOptions options_ = null; 9226 private com.google.protobuf.SingleFieldBuilderV3< 7692 9227 com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder> optionsBuilder_; 7693 9228 /** 7694 9229 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7695 9230 */ 7696 @Override 7697 public boolean hasOptions() { 9231 public boolean hasOptions() { 7698 9232 return ((bitField0_ & 0x00000080) == 0x00000080); 7699 9233 } … … 7701 9235 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7702 9236 */ 7703 @Override 7704 public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { 9237 public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { 7705 9238 if (optionsBuilder_ == null) { 7706 return options_ ;9239 return options_ == null ? com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; 7707 9240 } else { 7708 9241 return optionsBuilder_.getMessage(); … … 7745 9278 if (optionsBuilder_ == null) { 7746 9279 if (((bitField0_ & 0x00000080) == 0x00000080) && 9280 options_ != null && 7747 9281 options_ != com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance()) { 7748 9282 options_ = … … 7763 9297 public Builder clearOptions() { 7764 9298 if (optionsBuilder_ == null) { 7765 options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance();9299 options_ = null; 7766 9300 onChanged(); 7767 9301 } else { … … 7782 9316 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7783 9317 */ 7784 @Override 7785 public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { 9318 public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { 7786 9319 if (optionsBuilder_ != null) { 7787 9320 return optionsBuilder_.getMessageOrBuilder(); 7788 9321 } else { 7789 return options_; 9322 return options_ == null ? 9323 com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; 7790 9324 } 7791 9325 } … … 7793 9327 * <code>optional .google.protobuf.MessageOptions options = 7;</code> 7794 9328 */ 7795 private com.google.protobuf.SingleFieldBuilder <7796 com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder> 9329 private com.google.protobuf.SingleFieldBuilderV3< 9330 com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder> 7797 9331 getOptionsFieldBuilder() { 7798 9332 if (optionsBuilder_ == null) { 7799 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<>( 9333 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 9334 com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder>( 7800 9335 getOptions(), 7801 9336 getParentForChildren(), … … 7806 9341 } 7807 9342 9343 private java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> reservedRange_ = 9344 java.util.Collections.emptyList(); 9345 private void ensureReservedRangeIsMutable() { 9346 if (!((bitField0_ & 0x00000100) == 0x00000100)) { 9347 reservedRange_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange>(reservedRange_); 9348 bitField0_ |= 0x00000100; 9349 } 9350 } 9351 9352 private com.google.protobuf.RepeatedFieldBuilderV3< 9353 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> reservedRangeBuilder_; 9354 9355 /** 9356 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9357 */ 9358 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> getReservedRangeList() { 9359 if (reservedRangeBuilder_ == null) { 9360 return java.util.Collections.unmodifiableList(reservedRange_); 9361 } else { 9362 return reservedRangeBuilder_.getMessageList(); 9363 } 9364 } 9365 /** 9366 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9367 */ 9368 public int getReservedRangeCount() { 9369 if (reservedRangeBuilder_ == null) { 9370 return reservedRange_.size(); 9371 } else { 9372 return reservedRangeBuilder_.getCount(); 9373 } 9374 } 9375 /** 9376 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9377 */ 9378 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index) { 9379 if (reservedRangeBuilder_ == null) { 9380 return reservedRange_.get(index); 9381 } else { 9382 return reservedRangeBuilder_.getMessage(index); 9383 } 9384 } 9385 /** 9386 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9387 */ 9388 public Builder setReservedRange( 9389 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange value) { 9390 if (reservedRangeBuilder_ == null) { 9391 if (value == null) { 9392 throw new NullPointerException(); 9393 } 9394 ensureReservedRangeIsMutable(); 9395 reservedRange_.set(index, value); 9396 onChanged(); 9397 } else { 9398 reservedRangeBuilder_.setMessage(index, value); 9399 } 9400 return this; 9401 } 9402 /** 9403 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9404 */ 9405 public Builder setReservedRange( 9406 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue) { 9407 if (reservedRangeBuilder_ == null) { 9408 ensureReservedRangeIsMutable(); 9409 reservedRange_.set(index, builderForValue.build()); 9410 onChanged(); 9411 } else { 9412 reservedRangeBuilder_.setMessage(index, builderForValue.build()); 9413 } 9414 return this; 9415 } 9416 /** 9417 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9418 */ 9419 public Builder addReservedRange(com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange value) { 9420 if (reservedRangeBuilder_ == null) { 9421 if (value == null) { 9422 throw new NullPointerException(); 9423 } 9424 ensureReservedRangeIsMutable(); 9425 reservedRange_.add(value); 9426 onChanged(); 9427 } else { 9428 reservedRangeBuilder_.addMessage(value); 9429 } 9430 return this; 9431 } 9432 /** 9433 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9434 */ 9435 public Builder addReservedRange( 9436 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange value) { 9437 if (reservedRangeBuilder_ == null) { 9438 if (value == null) { 9439 throw new NullPointerException(); 9440 } 9441 ensureReservedRangeIsMutable(); 9442 reservedRange_.add(index, value); 9443 onChanged(); 9444 } else { 9445 reservedRangeBuilder_.addMessage(index, value); 9446 } 9447 return this; 9448 } 9449 /** 9450 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9451 */ 9452 public Builder addReservedRange( 9453 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue) { 9454 if (reservedRangeBuilder_ == null) { 9455 ensureReservedRangeIsMutable(); 9456 reservedRange_.add(builderForValue.build()); 9457 onChanged(); 9458 } else { 9459 reservedRangeBuilder_.addMessage(builderForValue.build()); 9460 } 9461 return this; 9462 } 9463 /** 9464 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9465 */ 9466 public Builder addReservedRange( 9467 int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue) { 9468 if (reservedRangeBuilder_ == null) { 9469 ensureReservedRangeIsMutable(); 9470 reservedRange_.add(index, builderForValue.build()); 9471 onChanged(); 9472 } else { 9473 reservedRangeBuilder_.addMessage(index, builderForValue.build()); 9474 } 9475 return this; 9476 } 9477 /** 9478 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9479 */ 9480 public Builder addAllReservedRange( 9481 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange> values) { 9482 if (reservedRangeBuilder_ == null) { 9483 ensureReservedRangeIsMutable(); 9484 com.google.protobuf.AbstractMessageLite.Builder.addAll( 9485 values, reservedRange_); 9486 onChanged(); 9487 } else { 9488 reservedRangeBuilder_.addAllMessages(values); 9489 } 9490 return this; 9491 } 9492 /** 9493 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9494 */ 9495 public Builder clearReservedRange() { 9496 if (reservedRangeBuilder_ == null) { 9497 reservedRange_ = java.util.Collections.emptyList(); 9498 bitField0_ = (bitField0_ & ~0x00000100); 9499 onChanged(); 9500 } else { 9501 reservedRangeBuilder_.clear(); 9502 } 9503 return this; 9504 } 9505 /** 9506 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9507 */ 9508 public Builder removeReservedRange(int index) { 9509 if (reservedRangeBuilder_ == null) { 9510 ensureReservedRangeIsMutable(); 9511 reservedRange_.remove(index); 9512 onChanged(); 9513 } else { 9514 reservedRangeBuilder_.remove(index); 9515 } 9516 return this; 9517 } 9518 /** 9519 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9520 */ 9521 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder getReservedRangeBuilder( 9522 int index) { 9523 return getReservedRangeFieldBuilder().getBuilder(index); 9524 } 9525 /** 9526 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9527 */ 9528 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( 9529 int index) { 9530 if (reservedRangeBuilder_ == null) { 9531 return reservedRange_.get(index); } else { 9532 return reservedRangeBuilder_.getMessageOrBuilder(index); 9533 } 9534 } 9535 /** 9536 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9537 */ 9538 public java.util.List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> 9539 getReservedRangeOrBuilderList() { 9540 if (reservedRangeBuilder_ != null) { 9541 return reservedRangeBuilder_.getMessageOrBuilderList(); 9542 } else { 9543 return java.util.Collections.unmodifiableList(reservedRange_); 9544 } 9545 } 9546 /** 9547 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9548 */ 9549 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder addReservedRangeBuilder() { 9550 return getReservedRangeFieldBuilder().addBuilder( 9551 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance()); 9552 } 9553 /** 9554 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9555 */ 9556 public com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder addReservedRangeBuilder( 9557 int index) { 9558 return getReservedRangeFieldBuilder().addBuilder( 9559 index, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance()); 9560 } 9561 /** 9562 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;</code> 9563 */ 9564 public java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder> 9565 getReservedRangeBuilderList() { 9566 return getReservedRangeFieldBuilder().getBuilderList(); 9567 } 9568 private com.google.protobuf.RepeatedFieldBuilderV3< 9569 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> 9570 getReservedRangeFieldBuilder() { 9571 if (reservedRangeBuilder_ == null) { 9572 reservedRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 9573 com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder>( 9574 reservedRange_, 9575 ((bitField0_ & 0x00000100) == 0x00000100), 9576 getParentForChildren(), 9577 isClean()); 9578 reservedRange_ = null; 9579 } 9580 return reservedRangeBuilder_; 9581 } 9582 9583 private com.google.protobuf.LazyStringList reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; 9584 private void ensureReservedNameIsMutable() { 9585 if (!((bitField0_ & 0x00000200) == 0x00000200)) { 9586 reservedName_ = new com.google.protobuf.LazyStringArrayList(reservedName_); 9587 bitField0_ |= 0x00000200; 9588 } 9589 } 9590 /** 9591 * <pre> 9592 * Reserved field names, which may not be used by fields in the same message. 9593 * A given name may only be reserved once. 9594 * </pre> 9595 * 9596 * <code>repeated string reserved_name = 10;</code> 9597 */ 9598 public com.google.protobuf.ProtocolStringList 9599 getReservedNameList() { 9600 return reservedName_.getUnmodifiableView(); 9601 } 9602 /** 9603 * <pre> 9604 * Reserved field names, which may not be used by fields in the same message. 9605 * A given name may only be reserved once. 9606 * </pre> 9607 * 9608 * <code>repeated string reserved_name = 10;</code> 9609 */ 9610 public int getReservedNameCount() { 9611 return reservedName_.size(); 9612 } 9613 /** 9614 * <pre> 9615 * Reserved field names, which may not be used by fields in the same message. 9616 * A given name may only be reserved once. 9617 * </pre> 9618 * 9619 * <code>repeated string reserved_name = 10;</code> 9620 */ 9621 public java.lang.String getReservedName(int index) { 9622 return reservedName_.get(index); 9623 } 9624 /** 9625 * <pre> 9626 * Reserved field names, which may not be used by fields in the same message. 9627 * A given name may only be reserved once. 9628 * </pre> 9629 * 9630 * <code>repeated string reserved_name = 10;</code> 9631 */ 9632 public com.google.protobuf.ByteString 9633 getReservedNameBytes(int index) { 9634 return reservedName_.getByteString(index); 9635 } 9636 /** 9637 * <pre> 9638 * Reserved field names, which may not be used by fields in the same message. 9639 * A given name may only be reserved once. 9640 * </pre> 9641 * 9642 * <code>repeated string reserved_name = 10;</code> 9643 */ 9644 public Builder setReservedName( 9645 int index, java.lang.String value) { 9646 if (value == null) { 9647 throw new NullPointerException(); 9648 } 9649 ensureReservedNameIsMutable(); 9650 reservedName_.set(index, value); 9651 onChanged(); 9652 return this; 9653 } 9654 /** 9655 * <pre> 9656 * Reserved field names, which may not be used by fields in the same message. 9657 * A given name may only be reserved once. 9658 * </pre> 9659 * 9660 * <code>repeated string reserved_name = 10;</code> 9661 */ 9662 public Builder addReservedName( 9663 java.lang.String value) { 9664 if (value == null) { 9665 throw new NullPointerException(); 9666 } 9667 ensureReservedNameIsMutable(); 9668 reservedName_.add(value); 9669 onChanged(); 9670 return this; 9671 } 9672 /** 9673 * <pre> 9674 * Reserved field names, which may not be used by fields in the same message. 9675 * A given name may only be reserved once. 9676 * </pre> 9677 * 9678 * <code>repeated string reserved_name = 10;</code> 9679 */ 9680 public Builder addAllReservedName( 9681 java.lang.Iterable<java.lang.String> values) { 9682 ensureReservedNameIsMutable(); 9683 com.google.protobuf.AbstractMessageLite.Builder.addAll( 9684 values, reservedName_); 9685 onChanged(); 9686 return this; 9687 } 9688 /** 9689 * <pre> 9690 * Reserved field names, which may not be used by fields in the same message. 9691 * A given name may only be reserved once. 9692 * </pre> 9693 * 9694 * <code>repeated string reserved_name = 10;</code> 9695 */ 9696 public Builder clearReservedName() { 9697 reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; 9698 bitField0_ = (bitField0_ & ~0x00000200); 9699 onChanged(); 9700 return this; 9701 } 9702 /** 9703 * <pre> 9704 * Reserved field names, which may not be used by fields in the same message. 9705 * A given name may only be reserved once. 9706 * </pre> 9707 * 9708 * <code>repeated string reserved_name = 10;</code> 9709 */ 9710 public Builder addReservedNameBytes( 9711 com.google.protobuf.ByteString value) { 9712 if (value == null) { 9713 throw new NullPointerException(); 9714 } 9715 ensureReservedNameIsMutable(); 9716 reservedName_.add(value); 9717 onChanged(); 9718 return this; 9719 } 9720 public final Builder setUnknownFields( 9721 final com.google.protobuf.UnknownFieldSet unknownFields) { 9722 return super.setUnknownFields(unknownFields); 9723 } 9724 9725 public final Builder mergeUnknownFields( 9726 final com.google.protobuf.UnknownFieldSet unknownFields) { 9727 return super.mergeUnknownFields(unknownFields); 9728 } 9729 9730 7808 9731 // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto) 7809 9732 } 7810 9733 9734 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto) 9735 private static final com.google.protobuf.DescriptorProtos.DescriptorProto DEFAULT_INSTANCE; 7811 9736 static { 7812 defaultInstance = new DescriptorProto(true); 7813 defaultInstance.initFields(); 7814 } 7815 7816 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto) 9737 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.DescriptorProto(); 9738 } 9739 9740 public static com.google.protobuf.DescriptorProtos.DescriptorProto getDefaultInstance() { 9741 return DEFAULT_INSTANCE; 9742 } 9743 9744 @java.lang.Deprecated public static final com.google.protobuf.Parser<DescriptorProto> 9745 PARSER = new com.google.protobuf.AbstractParser<DescriptorProto>() { 9746 public DescriptorProto parsePartialFrom( 9747 com.google.protobuf.CodedInputStream input, 9748 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9749 throws com.google.protobuf.InvalidProtocolBufferException { 9750 return new DescriptorProto(input, extensionRegistry); 9751 } 9752 }; 9753 9754 public static com.google.protobuf.Parser<DescriptorProto> parser() { 9755 return PARSER; 9756 } 9757 9758 @java.lang.Override 9759 public com.google.protobuf.Parser<DescriptorProto> getParserForType() { 9760 return PARSER; 9761 } 9762 9763 public com.google.protobuf.DescriptorProtos.DescriptorProto getDefaultInstanceForType() { 9764 return DEFAULT_INSTANCE; 9765 } 9766 7817 9767 } 7818 9768 7819 public interface FieldDescriptorProtoOrBuilder extends 7820 // @@protoc_insertion_point(interface_extends:google.protobuf.FieldDescriptorProto) 7821 com.google.protobuf.MessageOrBuilder { 7822 7823 /** 7824 * <code>optional string name = 1;</code> 7825 */ 7826 boolean hasName(); 7827 /** 7828 * <code>optional string name = 1;</code> 7829 */ 7830 java.lang.String getName(); 7831 /** 7832 * <code>optional string name = 1;</code> 7833 */ 7834 com.google.protobuf.ByteString 7835 getNameBytes(); 7836 7837 /** 7838 * <code>optional int32 number = 3;</code> 7839 */ 7840 boolean hasNumber(); 7841 /** 7842 * <code>optional int32 number = 3;</code> 7843 */ 7844 int getNumber(); 7845 7846 /** 7847 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 7848 */ 7849 boolean hasLabel(); 7850 /** 7851 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 7852 */ 7853 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel(); 7854 7855 /** 7856 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 9769 public interface ExtensionRangeOptionsOrBuilder extends 9770 // @@protoc_insertion_point(interface_extends:google.protobuf.ExtensionRangeOptions) 9771 com.google.protobuf.GeneratedMessageV3. 9772 ExtendableMessageOrBuilder<ExtensionRangeOptions> { 9773 9774 /** 9775 * <pre> 9776 * The parser stores options it doesn't recognize here. See above. 9777 * </pre> 7857 9778 * 9779 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 9780 */ 9781 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 9782 getUninterpretedOptionList(); 9783 /** 7858 9784 * <pre> 7859 * If type_name is set, this need not be set. If both this and type_name 7860 * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 9785 * The parser stores options it doesn't recognize here. See above. 7861 9786 * </pre> 7862 */7863 boolean hasType();7864 /**7865 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code>7866 9787 * 9788 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 9789 */ 9790 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 9791 /** 7867 9792 * <pre> 7868 * If type_name is set, this need not be set. If both this and type_name 7869 * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 9793 * The parser stores options it doesn't recognize here. See above. 7870 9794 * </pre> 7871 */7872 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType();7873 7874 /**7875 * <code>optional string type_name = 6;</code>7876 9795 * 9796 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 9797 */ 9798 int getUninterpretedOptionCount(); 9799 /** 7877 9800 * <pre> 7878 * For message and enum types, this is the name of the type. If the name 7879 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 7880 * rules are used to find the type (i.e. first the nested types within this 7881 * message are searched, then within the parent, on up to the root 7882 * namespace). 9801 * The parser stores options it doesn't recognize here. See above. 7883 9802 * </pre> 7884 */7885 boolean hasTypeName();7886 /**7887 * <code>optional string type_name = 6;</code>7888 9803 * 9804 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 9805 */ 9806 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 9807 getUninterpretedOptionOrBuilderList(); 9808 /** 7889 9809 * <pre> 7890 * For message and enum types, this is the name of the type. If the name 7891 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 7892 * rules are used to find the type (i.e. first the nested types within this 7893 * message are searched, then within the parent, on up to the root 7894 * namespace). 9810 * The parser stores options it doesn't recognize here. See above. 7895 9811 * </pre> 7896 */7897 java.lang.String getTypeName();7898 /**7899 * <code>optional string type_name = 6;</code>7900 9812 * 7901 * <pre> 7902 * For message and enum types, this is the name of the type. If the name 7903 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 7904 * rules are used to find the type (i.e. first the nested types within this 7905 * message are searched, then within the parent, on up to the root 7906 * namespace). 7907 * </pre> 7908 */ 7909 com.google.protobuf.ByteString 7910 getTypeNameBytes(); 7911 7912 /** 7913 * <code>optional string extendee = 2;</code> 7914 * 7915 * <pre> 7916 * For extensions, this is the name of the type being extended. It is 7917 * resolved in the same manner as type_name. 7918 * </pre> 7919 */ 7920 boolean hasExtendee(); 7921 /** 7922 * <code>optional string extendee = 2;</code> 7923 * 7924 * <pre> 7925 * For extensions, this is the name of the type being extended. It is 7926 * resolved in the same manner as type_name. 7927 * </pre> 7928 */ 7929 java.lang.String getExtendee(); 7930 /** 7931 * <code>optional string extendee = 2;</code> 7932 * 7933 * <pre> 7934 * For extensions, this is the name of the type being extended. It is 7935 * resolved in the same manner as type_name. 7936 * </pre> 7937 */ 7938 com.google.protobuf.ByteString 7939 getExtendeeBytes(); 7940 7941 /** 7942 * <code>optional string default_value = 7;</code> 7943 * 7944 * <pre> 7945 * For numeric types, contains the original text representation of the value. 7946 * For booleans, "true" or "false". 7947 * For strings, contains the default text contents (not escaped in any way). 7948 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 7949 * TODO(kenton): Base-64 encode? 7950 * </pre> 7951 */ 7952 boolean hasDefaultValue(); 7953 /** 7954 * <code>optional string default_value = 7;</code> 7955 * 7956 * <pre> 7957 * For numeric types, contains the original text representation of the value. 7958 * For booleans, "true" or "false". 7959 * For strings, contains the default text contents (not escaped in any way). 7960 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 7961 * TODO(kenton): Base-64 encode? 7962 * </pre> 7963 */ 7964 java.lang.String getDefaultValue(); 7965 /** 7966 * <code>optional string default_value = 7;</code> 7967 * 7968 * <pre> 7969 * For numeric types, contains the original text representation of the value. 7970 * For booleans, "true" or "false". 7971 * For strings, contains the default text contents (not escaped in any way). 7972 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 7973 * TODO(kenton): Base-64 encode? 7974 * </pre> 7975 */ 7976 com.google.protobuf.ByteString 7977 getDefaultValueBytes(); 7978 7979 /** 7980 * <code>optional int32 oneof_index = 9;</code> 7981 * 7982 * <pre> 7983 * If set, gives the index of a oneof in the containing type's oneof_decl 7984 * list. This field is a member of that oneof. Extensions of a oneof should 7985 * not set this since the oneof to which they belong will be inferred based 7986 * on the extension range containing the extension's field number. 7987 * </pre> 7988 */ 7989 boolean hasOneofIndex(); 7990 /** 7991 * <code>optional int32 oneof_index = 9;</code> 7992 * 7993 * <pre> 7994 * If set, gives the index of a oneof in the containing type's oneof_decl 7995 * list. This field is a member of that oneof. Extensions of a oneof should 7996 * not set this since the oneof to which they belong will be inferred based 7997 * on the extension range containing the extension's field number. 7998 * </pre> 7999 */ 8000 int getOneofIndex(); 8001 8002 /** 8003 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 8004 */ 8005 boolean hasOptions(); 8006 /** 8007 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 8008 */ 8009 com.google.protobuf.DescriptorProtos.FieldOptions getOptions(); 8010 /** 8011 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 8012 */ 8013 com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder(); 9813 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 9814 */ 9815 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 9816 int index); 8014 9817 } 8015 9818 /** 8016 * Protobuf type {@code google.protobuf.FieldDescriptorProto} 8017 * 8018 * <pre> 8019 * Describes a field within a message. 8020 * </pre> 9819 * Protobuf type {@code google.protobuf.ExtensionRangeOptions} 8021 9820 */ 8022 public static final class FieldDescriptorProto extends 8023 com.google.protobuf.GeneratedMessage implements 8024 // @@protoc_insertion_point(message_implements:google.protobuf.FieldDescriptorProto) 8025 FieldDescriptorProtoOrBuilder { 8026 // Use FieldDescriptorProto.newBuilder() to construct. 8027 private FieldDescriptorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 9821 public static final class ExtensionRangeOptions extends 9822 com.google.protobuf.GeneratedMessageV3.ExtendableMessage< 9823 ExtensionRangeOptions> implements 9824 // @@protoc_insertion_point(message_implements:google.protobuf.ExtensionRangeOptions) 9825 ExtensionRangeOptionsOrBuilder { 9826 private static final long serialVersionUID = 0L; 9827 // Use ExtensionRangeOptions.newBuilder() to construct. 9828 private ExtensionRangeOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, ?> builder) { 8028 9829 super(builder); 8029 this.unknownFields = builder.getUnknownFields(); 8030 } 8031 private FieldDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 8032 8033 private static final FieldDescriptorProto defaultInstance; 8034 public static FieldDescriptorProto getDefaultInstance() { 8035 return defaultInstance; 8036 } 8037 8038 @Override 8039 public FieldDescriptorProto getDefaultInstanceForType() { 8040 return defaultInstance; 8041 } 8042 8043 private final com.google.protobuf.UnknownFieldSet unknownFields; 9830 } 9831 private ExtensionRangeOptions() { 9832 uninterpretedOption_ = java.util.Collections.emptyList(); 9833 } 9834 8044 9835 @java.lang.Override 8045 9836 public final com.google.protobuf.UnknownFieldSet 8046 9837 getUnknownFields() { 8047 9838 return this.unknownFields; 8048 9839 } 8049 private FieldDescriptorProto(9840 private ExtensionRangeOptions( 8050 9841 com.google.protobuf.CodedInputStream input, 8051 9842 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8052 9843 throws com.google.protobuf.InvalidProtocolBufferException { 8053 initFields();9844 this(); 8054 9845 int mutable_bitField0_ = 0; 8055 9846 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 8064 9855 break; 8065 9856 default: { 8066 if (!parseUnknownField(input, unknownFields, 8067 extensionRegistry, tag)) { 9857 if (!parseUnknownField( 9858 input, unknownFields, extensionRegistry, tag)) { 9859 done = true; 9860 } 9861 break; 9862 } 9863 case 7994: { 9864 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 9865 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 9866 mutable_bitField0_ |= 0x00000001; 9867 } 9868 uninterpretedOption_.add( 9869 input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 9870 break; 9871 } 9872 } 9873 } 9874 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9875 throw e.setUnfinishedMessage(this); 9876 } catch (java.io.IOException e) { 9877 throw new com.google.protobuf.InvalidProtocolBufferException( 9878 e).setUnfinishedMessage(this); 9879 } finally { 9880 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 9881 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 9882 } 9883 this.unknownFields = unknownFields.build(); 9884 makeExtensionsImmutable(); 9885 } 9886 } 9887 public static final com.google.protobuf.Descriptors.Descriptor 9888 getDescriptor() { 9889 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_descriptor; 9890 } 9891 9892 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 9893 internalGetFieldAccessorTable() { 9894 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_fieldAccessorTable 9895 .ensureFieldAccessorsInitialized( 9896 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.class, com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder.class); 9897 } 9898 9899 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 9900 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 9901 /** 9902 * <pre> 9903 * The parser stores options it doesn't recognize here. See above. 9904 * </pre> 9905 * 9906 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 9907 */ 9908 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 9909 return uninterpretedOption_; 9910 } 9911 /** 9912 * <pre> 9913 * The parser stores options it doesn't recognize here. See above. 9914 * </pre> 9915 * 9916 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 9917 */ 9918 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 9919 getUninterpretedOptionOrBuilderList() { 9920 return uninterpretedOption_; 9921 } 9922 /** 9923 * <pre> 9924 * The parser stores options it doesn't recognize here. See above. 9925 * </pre> 9926 * 9927 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 9928 */ 9929 public int getUninterpretedOptionCount() { 9930 return uninterpretedOption_.size(); 9931 } 9932 /** 9933 * <pre> 9934 * The parser stores options it doesn't recognize here. See above. 9935 * </pre> 9936 * 9937 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 9938 */ 9939 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 9940 return uninterpretedOption_.get(index); 9941 } 9942 /** 9943 * <pre> 9944 * The parser stores options it doesn't recognize here. See above. 9945 * </pre> 9946 * 9947 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 9948 */ 9949 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 9950 int index) { 9951 return uninterpretedOption_.get(index); 9952 } 9953 9954 private byte memoizedIsInitialized = -1; 9955 public final boolean isInitialized() { 9956 byte isInitialized = memoizedIsInitialized; 9957 if (isInitialized == 1) return true; 9958 if (isInitialized == 0) return false; 9959 9960 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 9961 if (!getUninterpretedOption(i).isInitialized()) { 9962 memoizedIsInitialized = 0; 9963 return false; 9964 } 9965 } 9966 if (!extensionsAreInitialized()) { 9967 memoizedIsInitialized = 0; 9968 return false; 9969 } 9970 memoizedIsInitialized = 1; 9971 return true; 9972 } 9973 9974 public void writeTo(com.google.protobuf.CodedOutputStream output) 9975 throws java.io.IOException { 9976 com.google.protobuf.GeneratedMessageV3 9977 .ExtendableMessage<com.google.protobuf.DescriptorProtos.ExtensionRangeOptions>.ExtensionWriter 9978 extensionWriter = newExtensionWriter(); 9979 for (int i = 0; i < uninterpretedOption_.size(); i++) { 9980 output.writeMessage(999, uninterpretedOption_.get(i)); 9981 } 9982 extensionWriter.writeUntil(536870912, output); 9983 unknownFields.writeTo(output); 9984 } 9985 9986 public int getSerializedSize() { 9987 int size = memoizedSize; 9988 if (size != -1) return size; 9989 9990 size = 0; 9991 for (int i = 0; i < uninterpretedOption_.size(); i++) { 9992 size += com.google.protobuf.CodedOutputStream 9993 .computeMessageSize(999, uninterpretedOption_.get(i)); 9994 } 9995 size += extensionsSerializedSize(); 9996 size += unknownFields.getSerializedSize(); 9997 memoizedSize = size; 9998 return size; 9999 } 10000 10001 @java.lang.Override 10002 public boolean equals(final java.lang.Object obj) { 10003 if (obj == this) { 10004 return true; 10005 } 10006 if (!(obj instanceof com.google.protobuf.DescriptorProtos.ExtensionRangeOptions)) { 10007 return super.equals(obj); 10008 } 10009 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions other = (com.google.protobuf.DescriptorProtos.ExtensionRangeOptions) obj; 10010 10011 boolean result = true; 10012 result = result && getUninterpretedOptionList() 10013 .equals(other.getUninterpretedOptionList()); 10014 result = result && unknownFields.equals(other.unknownFields); 10015 result = result && 10016 getExtensionFields().equals(other.getExtensionFields()); 10017 return result; 10018 } 10019 10020 @java.lang.Override 10021 public int hashCode() { 10022 if (memoizedHashCode != 0) { 10023 return memoizedHashCode; 10024 } 10025 int hash = 41; 10026 hash = (19 * hash) + getDescriptor().hashCode(); 10027 if (getUninterpretedOptionCount() > 0) { 10028 hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; 10029 hash = (53 * hash) + getUninterpretedOptionList().hashCode(); 10030 } 10031 hash = hashFields(hash, getExtensionFields()); 10032 hash = (29 * hash) + unknownFields.hashCode(); 10033 memoizedHashCode = hash; 10034 return hash; 10035 } 10036 10037 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( 10038 java.nio.ByteBuffer data) 10039 throws com.google.protobuf.InvalidProtocolBufferException { 10040 return PARSER.parseFrom(data); 10041 } 10042 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( 10043 java.nio.ByteBuffer data, 10044 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10045 throws com.google.protobuf.InvalidProtocolBufferException { 10046 return PARSER.parseFrom(data, extensionRegistry); 10047 } 10048 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( 10049 com.google.protobuf.ByteString data) 10050 throws com.google.protobuf.InvalidProtocolBufferException { 10051 return PARSER.parseFrom(data); 10052 } 10053 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( 10054 com.google.protobuf.ByteString data, 10055 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10056 throws com.google.protobuf.InvalidProtocolBufferException { 10057 return PARSER.parseFrom(data, extensionRegistry); 10058 } 10059 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom(byte[] data) 10060 throws com.google.protobuf.InvalidProtocolBufferException { 10061 return PARSER.parseFrom(data); 10062 } 10063 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( 10064 byte[] data, 10065 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10066 throws com.google.protobuf.InvalidProtocolBufferException { 10067 return PARSER.parseFrom(data, extensionRegistry); 10068 } 10069 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom(java.io.InputStream input) 10070 throws java.io.IOException { 10071 return com.google.protobuf.GeneratedMessageV3 10072 .parseWithIOException(PARSER, input); 10073 } 10074 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( 10075 java.io.InputStream input, 10076 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10077 throws java.io.IOException { 10078 return com.google.protobuf.GeneratedMessageV3 10079 .parseWithIOException(PARSER, input, extensionRegistry); 10080 } 10081 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseDelimitedFrom(java.io.InputStream input) 10082 throws java.io.IOException { 10083 return com.google.protobuf.GeneratedMessageV3 10084 .parseDelimitedWithIOException(PARSER, input); 10085 } 10086 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseDelimitedFrom( 10087 java.io.InputStream input, 10088 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10089 throws java.io.IOException { 10090 return com.google.protobuf.GeneratedMessageV3 10091 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 10092 } 10093 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( 10094 com.google.protobuf.CodedInputStream input) 10095 throws java.io.IOException { 10096 return com.google.protobuf.GeneratedMessageV3 10097 .parseWithIOException(PARSER, input); 10098 } 10099 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parseFrom( 10100 com.google.protobuf.CodedInputStream input, 10101 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10102 throws java.io.IOException { 10103 return com.google.protobuf.GeneratedMessageV3 10104 .parseWithIOException(PARSER, input, extensionRegistry); 10105 } 10106 10107 public Builder newBuilderForType() { return newBuilder(); } 10108 public static Builder newBuilder() { 10109 return DEFAULT_INSTANCE.toBuilder(); 10110 } 10111 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions prototype) { 10112 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 10113 } 10114 public Builder toBuilder() { 10115 return this == DEFAULT_INSTANCE 10116 ? new Builder() : new Builder().mergeFrom(this); 10117 } 10118 10119 @java.lang.Override 10120 protected Builder newBuilderForType( 10121 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 10122 Builder builder = new Builder(parent); 10123 return builder; 10124 } 10125 /** 10126 * Protobuf type {@code google.protobuf.ExtensionRangeOptions} 10127 */ 10128 public static final class Builder extends 10129 com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< 10130 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, Builder> implements 10131 // @@protoc_insertion_point(builder_implements:google.protobuf.ExtensionRangeOptions) 10132 com.google.protobuf.DescriptorProtos.ExtensionRangeOptionsOrBuilder { 10133 public static final com.google.protobuf.Descriptors.Descriptor 10134 getDescriptor() { 10135 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_descriptor; 10136 } 10137 10138 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10139 internalGetFieldAccessorTable() { 10140 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_fieldAccessorTable 10141 .ensureFieldAccessorsInitialized( 10142 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.class, com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Builder.class); 10143 } 10144 10145 // Construct using com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.newBuilder() 10146 private Builder() { 10147 maybeForceBuilderInitialization(); 10148 } 10149 10150 private Builder( 10151 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 10152 super(parent); 10153 maybeForceBuilderInitialization(); 10154 } 10155 private void maybeForceBuilderInitialization() { 10156 if (com.google.protobuf.GeneratedMessageV3 10157 .alwaysUseFieldBuilders) { 10158 getUninterpretedOptionFieldBuilder(); 10159 } 10160 } 10161 public Builder clear() { 10162 super.clear(); 10163 if (uninterpretedOptionBuilder_ == null) { 10164 uninterpretedOption_ = java.util.Collections.emptyList(); 10165 bitField0_ = (bitField0_ & ~0x00000001); 10166 } else { 10167 uninterpretedOptionBuilder_.clear(); 10168 } 10169 return this; 10170 } 10171 10172 public com.google.protobuf.Descriptors.Descriptor 10173 getDescriptorForType() { 10174 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_descriptor; 10175 } 10176 10177 public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getDefaultInstanceForType() { 10178 return com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance(); 10179 } 10180 10181 public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions build() { 10182 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions result = buildPartial(); 10183 if (!result.isInitialized()) { 10184 throw newUninitializedMessageException(result); 10185 } 10186 return result; 10187 } 10188 10189 public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions buildPartial() { 10190 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions result = new com.google.protobuf.DescriptorProtos.ExtensionRangeOptions(this); 10191 int from_bitField0_ = bitField0_; 10192 if (uninterpretedOptionBuilder_ == null) { 10193 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10194 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 10195 bitField0_ = (bitField0_ & ~0x00000001); 10196 } 10197 result.uninterpretedOption_ = uninterpretedOption_; 10198 } else { 10199 result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); 10200 } 10201 onBuilt(); 10202 return result; 10203 } 10204 10205 public Builder clone() { 10206 return (Builder) super.clone(); 10207 } 10208 public Builder setField( 10209 com.google.protobuf.Descriptors.FieldDescriptor field, 10210 java.lang.Object value) { 10211 return (Builder) super.setField(field, value); 10212 } 10213 public Builder clearField( 10214 com.google.protobuf.Descriptors.FieldDescriptor field) { 10215 return (Builder) super.clearField(field); 10216 } 10217 public Builder clearOneof( 10218 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 10219 return (Builder) super.clearOneof(oneof); 10220 } 10221 public Builder setRepeatedField( 10222 com.google.protobuf.Descriptors.FieldDescriptor field, 10223 int index, java.lang.Object value) { 10224 return (Builder) super.setRepeatedField(field, index, value); 10225 } 10226 public Builder addRepeatedField( 10227 com.google.protobuf.Descriptors.FieldDescriptor field, 10228 java.lang.Object value) { 10229 return (Builder) super.addRepeatedField(field, value); 10230 } 10231 public <Type> Builder setExtension( 10232 com.google.protobuf.GeneratedMessage.GeneratedExtension< 10233 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, Type> extension, 10234 Type value) { 10235 return (Builder) super.setExtension(extension, value); 10236 } 10237 public <Type> Builder setExtension( 10238 com.google.protobuf.GeneratedMessage.GeneratedExtension< 10239 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, java.util.List<Type>> extension, 10240 int index, Type value) { 10241 return (Builder) super.setExtension(extension, index, value); 10242 } 10243 public <Type> Builder addExtension( 10244 com.google.protobuf.GeneratedMessage.GeneratedExtension< 10245 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, java.util.List<Type>> extension, 10246 Type value) { 10247 return (Builder) super.addExtension(extension, value); 10248 } 10249 public <Type> Builder clearExtension( 10250 com.google.protobuf.GeneratedMessage.GeneratedExtension< 10251 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions, ?> extension) { 10252 return (Builder) super.clearExtension(extension); 10253 } 10254 public Builder mergeFrom(com.google.protobuf.Message other) { 10255 if (other instanceof com.google.protobuf.DescriptorProtos.ExtensionRangeOptions) { 10256 return mergeFrom((com.google.protobuf.DescriptorProtos.ExtensionRangeOptions)other); 10257 } else { 10258 super.mergeFrom(other); 10259 return this; 10260 } 10261 } 10262 10263 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.ExtensionRangeOptions other) { 10264 if (other == com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance()) return this; 10265 if (uninterpretedOptionBuilder_ == null) { 10266 if (!other.uninterpretedOption_.isEmpty()) { 10267 if (uninterpretedOption_.isEmpty()) { 10268 uninterpretedOption_ = other.uninterpretedOption_; 10269 bitField0_ = (bitField0_ & ~0x00000001); 10270 } else { 10271 ensureUninterpretedOptionIsMutable(); 10272 uninterpretedOption_.addAll(other.uninterpretedOption_); 10273 } 10274 onChanged(); 10275 } 10276 } else { 10277 if (!other.uninterpretedOption_.isEmpty()) { 10278 if (uninterpretedOptionBuilder_.isEmpty()) { 10279 uninterpretedOptionBuilder_.dispose(); 10280 uninterpretedOptionBuilder_ = null; 10281 uninterpretedOption_ = other.uninterpretedOption_; 10282 bitField0_ = (bitField0_ & ~0x00000001); 10283 uninterpretedOptionBuilder_ = 10284 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 10285 getUninterpretedOptionFieldBuilder() : null; 10286 } else { 10287 uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); 10288 } 10289 } 10290 } 10291 this.mergeExtensionFields(other); 10292 this.mergeUnknownFields(other.unknownFields); 10293 onChanged(); 10294 return this; 10295 } 10296 10297 public final boolean isInitialized() { 10298 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 10299 if (!getUninterpretedOption(i).isInitialized()) { 10300 return false; 10301 } 10302 } 10303 if (!extensionsAreInitialized()) { 10304 return false; 10305 } 10306 return true; 10307 } 10308 10309 public Builder mergeFrom( 10310 com.google.protobuf.CodedInputStream input, 10311 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10312 throws java.io.IOException { 10313 com.google.protobuf.DescriptorProtos.ExtensionRangeOptions parsedMessage = null; 10314 try { 10315 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 10316 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10317 parsedMessage = (com.google.protobuf.DescriptorProtos.ExtensionRangeOptions) e.getUnfinishedMessage(); 10318 throw e.unwrapIOException(); 10319 } finally { 10320 if (parsedMessage != null) { 10321 mergeFrom(parsedMessage); 10322 } 10323 } 10324 return this; 10325 } 10326 private int bitField0_; 10327 10328 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = 10329 java.util.Collections.emptyList(); 10330 private void ensureUninterpretedOptionIsMutable() { 10331 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 10332 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); 10333 bitField0_ |= 0x00000001; 10334 } 10335 } 10336 10337 private com.google.protobuf.RepeatedFieldBuilderV3< 10338 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 10339 10340 /** 10341 * <pre> 10342 * The parser stores options it doesn't recognize here. See above. 10343 * </pre> 10344 * 10345 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10346 */ 10347 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 10348 if (uninterpretedOptionBuilder_ == null) { 10349 return java.util.Collections.unmodifiableList(uninterpretedOption_); 10350 } else { 10351 return uninterpretedOptionBuilder_.getMessageList(); 10352 } 10353 } 10354 /** 10355 * <pre> 10356 * The parser stores options it doesn't recognize here. See above. 10357 * </pre> 10358 * 10359 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10360 */ 10361 public int getUninterpretedOptionCount() { 10362 if (uninterpretedOptionBuilder_ == null) { 10363 return uninterpretedOption_.size(); 10364 } else { 10365 return uninterpretedOptionBuilder_.getCount(); 10366 } 10367 } 10368 /** 10369 * <pre> 10370 * The parser stores options it doesn't recognize here. See above. 10371 * </pre> 10372 * 10373 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10374 */ 10375 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 10376 if (uninterpretedOptionBuilder_ == null) { 10377 return uninterpretedOption_.get(index); 10378 } else { 10379 return uninterpretedOptionBuilder_.getMessage(index); 10380 } 10381 } 10382 /** 10383 * <pre> 10384 * The parser stores options it doesn't recognize here. See above. 10385 * </pre> 10386 * 10387 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10388 */ 10389 public Builder setUninterpretedOption( 10390 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 10391 if (uninterpretedOptionBuilder_ == null) { 10392 if (value == null) { 10393 throw new NullPointerException(); 10394 } 10395 ensureUninterpretedOptionIsMutable(); 10396 uninterpretedOption_.set(index, value); 10397 onChanged(); 10398 } else { 10399 uninterpretedOptionBuilder_.setMessage(index, value); 10400 } 10401 return this; 10402 } 10403 /** 10404 * <pre> 10405 * The parser stores options it doesn't recognize here. See above. 10406 * </pre> 10407 * 10408 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10409 */ 10410 public Builder setUninterpretedOption( 10411 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { 10412 if (uninterpretedOptionBuilder_ == null) { 10413 ensureUninterpretedOptionIsMutable(); 10414 uninterpretedOption_.set(index, builderForValue.build()); 10415 onChanged(); 10416 } else { 10417 uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); 10418 } 10419 return this; 10420 } 10421 /** 10422 * <pre> 10423 * The parser stores options it doesn't recognize here. See above. 10424 * </pre> 10425 * 10426 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10427 */ 10428 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 10429 if (uninterpretedOptionBuilder_ == null) { 10430 if (value == null) { 10431 throw new NullPointerException(); 10432 } 10433 ensureUninterpretedOptionIsMutable(); 10434 uninterpretedOption_.add(value); 10435 onChanged(); 10436 } else { 10437 uninterpretedOptionBuilder_.addMessage(value); 10438 } 10439 return this; 10440 } 10441 /** 10442 * <pre> 10443 * The parser stores options it doesn't recognize here. See above. 10444 * </pre> 10445 * 10446 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10447 */ 10448 public Builder addUninterpretedOption( 10449 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 10450 if (uninterpretedOptionBuilder_ == null) { 10451 if (value == null) { 10452 throw new NullPointerException(); 10453 } 10454 ensureUninterpretedOptionIsMutable(); 10455 uninterpretedOption_.add(index, value); 10456 onChanged(); 10457 } else { 10458 uninterpretedOptionBuilder_.addMessage(index, value); 10459 } 10460 return this; 10461 } 10462 /** 10463 * <pre> 10464 * The parser stores options it doesn't recognize here. See above. 10465 * </pre> 10466 * 10467 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10468 */ 10469 public Builder addUninterpretedOption( 10470 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { 10471 if (uninterpretedOptionBuilder_ == null) { 10472 ensureUninterpretedOptionIsMutable(); 10473 uninterpretedOption_.add(builderForValue.build()); 10474 onChanged(); 10475 } else { 10476 uninterpretedOptionBuilder_.addMessage(builderForValue.build()); 10477 } 10478 return this; 10479 } 10480 /** 10481 * <pre> 10482 * The parser stores options it doesn't recognize here. See above. 10483 * </pre> 10484 * 10485 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10486 */ 10487 public Builder addUninterpretedOption( 10488 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { 10489 if (uninterpretedOptionBuilder_ == null) { 10490 ensureUninterpretedOptionIsMutable(); 10491 uninterpretedOption_.add(index, builderForValue.build()); 10492 onChanged(); 10493 } else { 10494 uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); 10495 } 10496 return this; 10497 } 10498 /** 10499 * <pre> 10500 * The parser stores options it doesn't recognize here. See above. 10501 * </pre> 10502 * 10503 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10504 */ 10505 public Builder addAllUninterpretedOption( 10506 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { 10507 if (uninterpretedOptionBuilder_ == null) { 10508 ensureUninterpretedOptionIsMutable(); 10509 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10510 values, uninterpretedOption_); 10511 onChanged(); 10512 } else { 10513 uninterpretedOptionBuilder_.addAllMessages(values); 10514 } 10515 return this; 10516 } 10517 /** 10518 * <pre> 10519 * The parser stores options it doesn't recognize here. See above. 10520 * </pre> 10521 * 10522 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10523 */ 10524 public Builder clearUninterpretedOption() { 10525 if (uninterpretedOptionBuilder_ == null) { 10526 uninterpretedOption_ = java.util.Collections.emptyList(); 10527 bitField0_ = (bitField0_ & ~0x00000001); 10528 onChanged(); 10529 } else { 10530 uninterpretedOptionBuilder_.clear(); 10531 } 10532 return this; 10533 } 10534 /** 10535 * <pre> 10536 * The parser stores options it doesn't recognize here. See above. 10537 * </pre> 10538 * 10539 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10540 */ 10541 public Builder removeUninterpretedOption(int index) { 10542 if (uninterpretedOptionBuilder_ == null) { 10543 ensureUninterpretedOptionIsMutable(); 10544 uninterpretedOption_.remove(index); 10545 onChanged(); 10546 } else { 10547 uninterpretedOptionBuilder_.remove(index); 10548 } 10549 return this; 10550 } 10551 /** 10552 * <pre> 10553 * The parser stores options it doesn't recognize here. See above. 10554 * </pre> 10555 * 10556 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10557 */ 10558 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( 10559 int index) { 10560 return getUninterpretedOptionFieldBuilder().getBuilder(index); 10561 } 10562 /** 10563 * <pre> 10564 * The parser stores options it doesn't recognize here. See above. 10565 * </pre> 10566 * 10567 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10568 */ 10569 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 10570 int index) { 10571 if (uninterpretedOptionBuilder_ == null) { 10572 return uninterpretedOption_.get(index); } else { 10573 return uninterpretedOptionBuilder_.getMessageOrBuilder(index); 10574 } 10575 } 10576 /** 10577 * <pre> 10578 * The parser stores options it doesn't recognize here. See above. 10579 * </pre> 10580 * 10581 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10582 */ 10583 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 10584 getUninterpretedOptionOrBuilderList() { 10585 if (uninterpretedOptionBuilder_ != null) { 10586 return uninterpretedOptionBuilder_.getMessageOrBuilderList(); 10587 } else { 10588 return java.util.Collections.unmodifiableList(uninterpretedOption_); 10589 } 10590 } 10591 /** 10592 * <pre> 10593 * The parser stores options it doesn't recognize here. See above. 10594 * </pre> 10595 * 10596 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10597 */ 10598 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { 10599 return getUninterpretedOptionFieldBuilder().addBuilder( 10600 com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 10601 } 10602 /** 10603 * <pre> 10604 * The parser stores options it doesn't recognize here. See above. 10605 * </pre> 10606 * 10607 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10608 */ 10609 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( 10610 int index) { 10611 return getUninterpretedOptionFieldBuilder().addBuilder( 10612 index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 10613 } 10614 /** 10615 * <pre> 10616 * The parser stores options it doesn't recognize here. See above. 10617 * </pre> 10618 * 10619 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 10620 */ 10621 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 10622 getUninterpretedOptionBuilderList() { 10623 return getUninterpretedOptionFieldBuilder().getBuilderList(); 10624 } 10625 private com.google.protobuf.RepeatedFieldBuilderV3< 10626 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 10627 getUninterpretedOptionFieldBuilder() { 10628 if (uninterpretedOptionBuilder_ == null) { 10629 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 10630 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( 10631 uninterpretedOption_, 10632 ((bitField0_ & 0x00000001) == 0x00000001), 10633 getParentForChildren(), 10634 isClean()); 10635 uninterpretedOption_ = null; 10636 } 10637 return uninterpretedOptionBuilder_; 10638 } 10639 public final Builder setUnknownFields( 10640 final com.google.protobuf.UnknownFieldSet unknownFields) { 10641 return super.setUnknownFields(unknownFields); 10642 } 10643 10644 public final Builder mergeUnknownFields( 10645 final com.google.protobuf.UnknownFieldSet unknownFields) { 10646 return super.mergeUnknownFields(unknownFields); 10647 } 10648 10649 10650 // @@protoc_insertion_point(builder_scope:google.protobuf.ExtensionRangeOptions) 10651 } 10652 10653 // @@protoc_insertion_point(class_scope:google.protobuf.ExtensionRangeOptions) 10654 private static final com.google.protobuf.DescriptorProtos.ExtensionRangeOptions DEFAULT_INSTANCE; 10655 static { 10656 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.ExtensionRangeOptions(); 10657 } 10658 10659 public static com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getDefaultInstance() { 10660 return DEFAULT_INSTANCE; 10661 } 10662 10663 @java.lang.Deprecated public static final com.google.protobuf.Parser<ExtensionRangeOptions> 10664 PARSER = new com.google.protobuf.AbstractParser<ExtensionRangeOptions>() { 10665 public ExtensionRangeOptions parsePartialFrom( 10666 com.google.protobuf.CodedInputStream input, 10667 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10668 throws com.google.protobuf.InvalidProtocolBufferException { 10669 return new ExtensionRangeOptions(input, extensionRegistry); 10670 } 10671 }; 10672 10673 public static com.google.protobuf.Parser<ExtensionRangeOptions> parser() { 10674 return PARSER; 10675 } 10676 10677 @java.lang.Override 10678 public com.google.protobuf.Parser<ExtensionRangeOptions> getParserForType() { 10679 return PARSER; 10680 } 10681 10682 public com.google.protobuf.DescriptorProtos.ExtensionRangeOptions getDefaultInstanceForType() { 10683 return DEFAULT_INSTANCE; 10684 } 10685 10686 } 10687 10688 public interface FieldDescriptorProtoOrBuilder extends 10689 // @@protoc_insertion_point(interface_extends:google.protobuf.FieldDescriptorProto) 10690 com.google.protobuf.MessageOrBuilder { 10691 10692 /** 10693 * <code>optional string name = 1;</code> 10694 */ 10695 boolean hasName(); 10696 /** 10697 * <code>optional string name = 1;</code> 10698 */ 10699 java.lang.String getName(); 10700 /** 10701 * <code>optional string name = 1;</code> 10702 */ 10703 com.google.protobuf.ByteString 10704 getNameBytes(); 10705 10706 /** 10707 * <code>optional int32 number = 3;</code> 10708 */ 10709 boolean hasNumber(); 10710 /** 10711 * <code>optional int32 number = 3;</code> 10712 */ 10713 int getNumber(); 10714 10715 /** 10716 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 10717 */ 10718 boolean hasLabel(); 10719 /** 10720 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 10721 */ 10722 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel(); 10723 10724 /** 10725 * <pre> 10726 * If type_name is set, this need not be set. If both this and type_name 10727 * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 10728 * </pre> 10729 * 10730 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 10731 */ 10732 boolean hasType(); 10733 /** 10734 * <pre> 10735 * If type_name is set, this need not be set. If both this and type_name 10736 * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 10737 * </pre> 10738 * 10739 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 10740 */ 10741 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType(); 10742 10743 /** 10744 * <pre> 10745 * For message and enum types, this is the name of the type. If the name 10746 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 10747 * rules are used to find the type (i.e. first the nested types within this 10748 * message are searched, then within the parent, on up to the root 10749 * namespace). 10750 * </pre> 10751 * 10752 * <code>optional string type_name = 6;</code> 10753 */ 10754 boolean hasTypeName(); 10755 /** 10756 * <pre> 10757 * For message and enum types, this is the name of the type. If the name 10758 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 10759 * rules are used to find the type (i.e. first the nested types within this 10760 * message are searched, then within the parent, on up to the root 10761 * namespace). 10762 * </pre> 10763 * 10764 * <code>optional string type_name = 6;</code> 10765 */ 10766 java.lang.String getTypeName(); 10767 /** 10768 * <pre> 10769 * For message and enum types, this is the name of the type. If the name 10770 * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 10771 * rules are used to find the type (i.e. first the nested types within this 10772 * message are searched, then within the parent, on up to the root 10773 * namespace). 10774 * </pre> 10775 * 10776 * <code>optional string type_name = 6;</code> 10777 */ 10778 com.google.protobuf.ByteString 10779 getTypeNameBytes(); 10780 10781 /** 10782 * <pre> 10783 * For extensions, this is the name of the type being extended. It is 10784 * resolved in the same manner as type_name. 10785 * </pre> 10786 * 10787 * <code>optional string extendee = 2;</code> 10788 */ 10789 boolean hasExtendee(); 10790 /** 10791 * <pre> 10792 * For extensions, this is the name of the type being extended. It is 10793 * resolved in the same manner as type_name. 10794 * </pre> 10795 * 10796 * <code>optional string extendee = 2;</code> 10797 */ 10798 java.lang.String getExtendee(); 10799 /** 10800 * <pre> 10801 * For extensions, this is the name of the type being extended. It is 10802 * resolved in the same manner as type_name. 10803 * </pre> 10804 * 10805 * <code>optional string extendee = 2;</code> 10806 */ 10807 com.google.protobuf.ByteString 10808 getExtendeeBytes(); 10809 10810 /** 10811 * <pre> 10812 * For numeric types, contains the original text representation of the value. 10813 * For booleans, "true" or "false". 10814 * For strings, contains the default text contents (not escaped in any way). 10815 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 10816 * TODO(kenton): Base-64 encode? 10817 * </pre> 10818 * 10819 * <code>optional string default_value = 7;</code> 10820 */ 10821 boolean hasDefaultValue(); 10822 /** 10823 * <pre> 10824 * For numeric types, contains the original text representation of the value. 10825 * For booleans, "true" or "false". 10826 * For strings, contains the default text contents (not escaped in any way). 10827 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 10828 * TODO(kenton): Base-64 encode? 10829 * </pre> 10830 * 10831 * <code>optional string default_value = 7;</code> 10832 */ 10833 java.lang.String getDefaultValue(); 10834 /** 10835 * <pre> 10836 * For numeric types, contains the original text representation of the value. 10837 * For booleans, "true" or "false". 10838 * For strings, contains the default text contents (not escaped in any way). 10839 * For bytes, contains the C escaped value. All bytes >= 128 are escaped. 10840 * TODO(kenton): Base-64 encode? 10841 * </pre> 10842 * 10843 * <code>optional string default_value = 7;</code> 10844 */ 10845 com.google.protobuf.ByteString 10846 getDefaultValueBytes(); 10847 10848 /** 10849 * <pre> 10850 * If set, gives the index of a oneof in the containing type's oneof_decl 10851 * list. This field is a member of that oneof. 10852 * </pre> 10853 * 10854 * <code>optional int32 oneof_index = 9;</code> 10855 */ 10856 boolean hasOneofIndex(); 10857 /** 10858 * <pre> 10859 * If set, gives the index of a oneof in the containing type's oneof_decl 10860 * list. This field is a member of that oneof. 10861 * </pre> 10862 * 10863 * <code>optional int32 oneof_index = 9;</code> 10864 */ 10865 int getOneofIndex(); 10866 10867 /** 10868 * <pre> 10869 * JSON name of this field. The value is set by protocol compiler. If the 10870 * user has set a "json_name" option on this field, that option's value 10871 * will be used. Otherwise, it's deduced from the field's name by converting 10872 * it to camelCase. 10873 * </pre> 10874 * 10875 * <code>optional string json_name = 10;</code> 10876 */ 10877 boolean hasJsonName(); 10878 /** 10879 * <pre> 10880 * JSON name of this field. The value is set by protocol compiler. If the 10881 * user has set a "json_name" option on this field, that option's value 10882 * will be used. Otherwise, it's deduced from the field's name by converting 10883 * it to camelCase. 10884 * </pre> 10885 * 10886 * <code>optional string json_name = 10;</code> 10887 */ 10888 java.lang.String getJsonName(); 10889 /** 10890 * <pre> 10891 * JSON name of this field. The value is set by protocol compiler. If the 10892 * user has set a "json_name" option on this field, that option's value 10893 * will be used. Otherwise, it's deduced from the field's name by converting 10894 * it to camelCase. 10895 * </pre> 10896 * 10897 * <code>optional string json_name = 10;</code> 10898 */ 10899 com.google.protobuf.ByteString 10900 getJsonNameBytes(); 10901 10902 /** 10903 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 10904 */ 10905 boolean hasOptions(); 10906 /** 10907 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 10908 */ 10909 com.google.protobuf.DescriptorProtos.FieldOptions getOptions(); 10910 /** 10911 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 10912 */ 10913 com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder(); 10914 } 10915 /** 10916 * <pre> 10917 * Describes a field within a message. 10918 * </pre> 10919 * 10920 * Protobuf type {@code google.protobuf.FieldDescriptorProto} 10921 */ 10922 public static final class FieldDescriptorProto extends 10923 com.google.protobuf.GeneratedMessageV3 implements 10924 // @@protoc_insertion_point(message_implements:google.protobuf.FieldDescriptorProto) 10925 FieldDescriptorProtoOrBuilder { 10926 private static final long serialVersionUID = 0L; 10927 // Use FieldDescriptorProto.newBuilder() to construct. 10928 private FieldDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 10929 super(builder); 10930 } 10931 private FieldDescriptorProto() { 10932 name_ = ""; 10933 number_ = 0; 10934 label_ = 1; 10935 type_ = 1; 10936 typeName_ = ""; 10937 extendee_ = ""; 10938 defaultValue_ = ""; 10939 oneofIndex_ = 0; 10940 jsonName_ = ""; 10941 } 10942 10943 @java.lang.Override 10944 public final com.google.protobuf.UnknownFieldSet 10945 getUnknownFields() { 10946 return this.unknownFields; 10947 } 10948 private FieldDescriptorProto( 10949 com.google.protobuf.CodedInputStream input, 10950 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10951 throws com.google.protobuf.InvalidProtocolBufferException { 10952 this(); 10953 int mutable_bitField0_ = 0; 10954 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 10955 com.google.protobuf.UnknownFieldSet.newBuilder(); 10956 try { 10957 boolean done = false; 10958 while (!done) { 10959 int tag = input.readTag(); 10960 switch (tag) { 10961 case 0: 10962 done = true; 10963 break; 10964 default: { 10965 if (!parseUnknownField( 10966 input, unknownFields, extensionRegistry, tag)) { 8068 10967 done = true; 8069 10968 } … … 8094 10993 } else { 8095 10994 bitField0_ |= 0x00000004; 8096 label_ = value;10995 label_ = rawValue; 8097 10996 } 8098 10997 break; … … 8105 11004 } else { 8106 11005 bitField0_ |= 0x00000008; 8107 type_ = value;11006 type_ = rawValue; 8108 11007 } 8109 11008 break; … … 8123 11022 case 66: { 8124 11023 com.google.protobuf.DescriptorProtos.FieldOptions.Builder subBuilder = null; 8125 if (((bitField0_ & 0x00000 100) == 0x00000100)) {11024 if (((bitField0_ & 0x00000200) == 0x00000200)) { 8126 11025 subBuilder = options_.toBuilder(); 8127 11026 } … … 8131 11030 options_ = subBuilder.buildPartial(); 8132 11031 } 8133 bitField0_ |= 0x00000 100;11032 bitField0_ |= 0x00000200; 8134 11033 break; 8135 11034 } … … 8139 11038 break; 8140 11039 } 11040 case 82: { 11041 com.google.protobuf.ByteString bs = input.readBytes(); 11042 bitField0_ |= 0x00000100; 11043 jsonName_ = bs; 11044 break; 11045 } 8141 11046 } 8142 11047 } … … 8145 11050 } catch (java.io.IOException e) { 8146 11051 throw new com.google.protobuf.InvalidProtocolBufferException( 8147 e .getMessage()).setUnfinishedMessage(this);11052 e).setUnfinishedMessage(this); 8148 11053 } finally { 8149 11054 this.unknownFields = unknownFields.build(); … … 8156 11061 } 8157 11062 8158 @Override 8159 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 11063 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 8160 11064 internalGetFieldAccessorTable() { 8161 11065 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable … … 8164 11068 } 8165 11069 8166 public static com.google.protobuf.Parser<FieldDescriptorProto> PARSER =8167 new com.google.protobuf.AbstractParser<FieldDescriptorProto>() {8168 @Override8169 public FieldDescriptorProto parsePartialFrom(8170 com.google.protobuf.CodedInputStream input,8171 com.google.protobuf.ExtensionRegistryLite extensionRegistry)8172 throws com.google.protobuf.InvalidProtocolBufferException {8173 return new FieldDescriptorProto(input, extensionRegistry);8174 }8175 };8176 8177 @java.lang.Override8178 public com.google.protobuf.Parser<FieldDescriptorProto> getParserForType() {8179 return PARSER;8180 }8181 8182 11070 /** 8183 11071 * Protobuf enum {@code google.protobuf.FieldDescriptorProto.Type} … … 8186 11074 implements com.google.protobuf.ProtocolMessageEnum { 8187 11075 /** 8188 * <code>TYPE_DOUBLE = 1;</code>8189 *8190 11076 * <pre> 8191 11077 * 0 is reserved for errors. 8192 11078 * Order is weird for historical reasons. 8193 11079 * </pre> 8194 */ 8195 TYPE_DOUBLE(0, 1), 11080 * 11081 * <code>TYPE_DOUBLE = 1;</code> 11082 */ 11083 TYPE_DOUBLE(1), 8196 11084 /** 8197 11085 * <code>TYPE_FLOAT = 2;</code> 8198 11086 */ 8199 TYPE_FLOAT(1, 2), 8200 /** 8201 * <code>TYPE_INT64 = 3;</code> 8202 * 11087 TYPE_FLOAT(2), 11088 /** 8203 11089 * <pre> 8204 11090 * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if 8205 11091 * negative values are likely. 8206 11092 * </pre> 8207 */ 8208 TYPE_INT64(2, 3), 11093 * 11094 * <code>TYPE_INT64 = 3;</code> 11095 */ 11096 TYPE_INT64(3), 8209 11097 /** 8210 11098 * <code>TYPE_UINT64 = 4;</code> 8211 11099 */ 8212 TYPE_UINT64(3, 4), 8213 /** 8214 * <code>TYPE_INT32 = 5;</code> 8215 * 11100 TYPE_UINT64(4), 11101 /** 8216 11102 * <pre> 8217 11103 * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if 8218 11104 * negative values are likely. 8219 11105 * </pre> 8220 */ 8221 TYPE_INT32(4, 5), 11106 * 11107 * <code>TYPE_INT32 = 5;</code> 11108 */ 11109 TYPE_INT32(5), 8222 11110 /** 8223 11111 * <code>TYPE_FIXED64 = 6;</code> 8224 11112 */ 8225 TYPE_FIXED64( 5,6),11113 TYPE_FIXED64(6), 8226 11114 /** 8227 11115 * <code>TYPE_FIXED32 = 7;</code> 8228 11116 */ 8229 TYPE_FIXED32( 6,7),11117 TYPE_FIXED32(7), 8230 11118 /** 8231 11119 * <code>TYPE_BOOL = 8;</code> 8232 11120 */ 8233 TYPE_BOOL( 7,8),11121 TYPE_BOOL(8), 8234 11122 /** 8235 11123 * <code>TYPE_STRING = 9;</code> 8236 11124 */ 8237 TYPE_STRING(8, 9), 8238 /** 11125 TYPE_STRING(9), 11126 /** 11127 * <pre> 11128 * Tag-delimited aggregate. 11129 * Group type is deprecated and not supported in proto3. However, Proto3 11130 * implementations should still be able to parse the group wire format and 11131 * treat group fields as unknown fields. 11132 * </pre> 11133 * 8239 11134 * <code>TYPE_GROUP = 10;</code> 8240 * 8241 * <pre>8242 * Tag-delimited aggregate.8243 * < /pre>8244 * /8245 TYPE_GROUP(9, 10),8246 /**11135 */ 11136 TYPE_GROUP(10), 11137 /** 11138 * <pre> 11139 * Length-delimited aggregate. 11140 * </pre> 11141 * 8247 11142 * <code>TYPE_MESSAGE = 11;</code> 8248 * 8249 * <pre>8250 * Length-delimited aggregate.8251 * < /pre>8252 * /8253 TYPE_MESSAGE(10, 11),8254 /**11143 */ 11144 TYPE_MESSAGE(11), 11145 /** 11146 * <pre> 11147 * New in version 2. 11148 * </pre> 11149 * 8255 11150 * <code>TYPE_BYTES = 12;</code> 8256 * 8257 * <pre> 8258 * New in version 2. 8259 * </pre> 8260 */ 8261 TYPE_BYTES(11, 12), 11151 */ 11152 TYPE_BYTES(12), 8262 11153 /** 8263 11154 * <code>TYPE_UINT32 = 13;</code> 8264 11155 */ 8265 TYPE_UINT32(1 2, 13),11156 TYPE_UINT32(13), 8266 11157 /** 8267 11158 * <code>TYPE_ENUM = 14;</code> 8268 11159 */ 8269 TYPE_ENUM(1 3, 14),11160 TYPE_ENUM(14), 8270 11161 /** 8271 11162 * <code>TYPE_SFIXED32 = 15;</code> 8272 11163 */ 8273 TYPE_SFIXED32(1 4, 15),11164 TYPE_SFIXED32(15), 8274 11165 /** 8275 11166 * <code>TYPE_SFIXED64 = 16;</code> 8276 11167 */ 8277 TYPE_SFIXED64(15, 16), 8278 /** 11168 TYPE_SFIXED64(16), 11169 /** 11170 * <pre> 11171 * Uses ZigZag encoding. 11172 * </pre> 11173 * 8279 11174 * <code>TYPE_SINT32 = 17;</code> 8280 * 11175 */ 11176 TYPE_SINT32(17), 11177 /** 8281 11178 * <pre> 8282 11179 * Uses ZigZag encoding. 8283 11180 * </pre> 8284 */ 8285 TYPE_SINT32(16, 17), 8286 /** 11181 * 8287 11182 * <code>TYPE_SINT64 = 18;</code> 8288 * 8289 * <pre> 8290 * Uses ZigZag encoding. 8291 * </pre> 8292 */ 8293 TYPE_SINT64(17, 18), 11183 */ 11184 TYPE_SINT64(18), 8294 11185 ; 8295 11186 8296 11187 /** 8297 * <code>TYPE_DOUBLE = 1;</code>8298 *8299 11188 * <pre> 8300 11189 * 0 is reserved for errors. 8301 11190 * Order is weird for historical reasons. 8302 11191 * </pre> 11192 * 11193 * <code>TYPE_DOUBLE = 1;</code> 8303 11194 */ 8304 11195 public static final int TYPE_DOUBLE_VALUE = 1; … … 8308 11199 public static final int TYPE_FLOAT_VALUE = 2; 8309 11200 /** 8310 * <code>TYPE_INT64 = 3;</code>8311 *8312 11201 * <pre> 8313 11202 * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if 8314 11203 * negative values are likely. 8315 11204 * </pre> 11205 * 11206 * <code>TYPE_INT64 = 3;</code> 8316 11207 */ 8317 11208 public static final int TYPE_INT64_VALUE = 3; … … 8321 11212 public static final int TYPE_UINT64_VALUE = 4; 8322 11213 /** 8323 * <code>TYPE_INT32 = 5;</code>8324 *8325 11214 * <pre> 8326 11215 * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if 8327 11216 * negative values are likely. 8328 11217 * </pre> 11218 * 11219 * <code>TYPE_INT32 = 5;</code> 8329 11220 */ 8330 11221 public static final int TYPE_INT32_VALUE = 5; … … 8346 11237 public static final int TYPE_STRING_VALUE = 9; 8347 11238 /** 11239 * <pre> 11240 * Tag-delimited aggregate. 11241 * Group type is deprecated and not supported in proto3. However, Proto3 11242 * implementations should still be able to parse the group wire format and 11243 * treat group fields as unknown fields. 11244 * </pre> 11245 * 8348 11246 * <code>TYPE_GROUP = 10;</code> 8349 *8350 * <pre>8351 * Tag-delimited aggregate.8352 * </pre>8353 11247 */ 8354 11248 public static final int TYPE_GROUP_VALUE = 10; 8355 11249 /** 11250 * <pre> 11251 * Length-delimited aggregate. 11252 * </pre> 11253 * 8356 11254 * <code>TYPE_MESSAGE = 11;</code> 8357 *8358 * <pre>8359 * Length-delimited aggregate.8360 * </pre>8361 11255 */ 8362 11256 public static final int TYPE_MESSAGE_VALUE = 11; 8363 11257 /** 11258 * <pre> 11259 * New in version 2. 11260 * </pre> 11261 * 8364 11262 * <code>TYPE_BYTES = 12;</code> 8365 *8366 * <pre>8367 * New in version 2.8368 * </pre>8369 11263 */ 8370 11264 public static final int TYPE_BYTES_VALUE = 12; … … 8386 11280 public static final int TYPE_SFIXED64_VALUE = 16; 8387 11281 /** 11282 * <pre> 11283 * Uses ZigZag encoding. 11284 * </pre> 11285 * 8388 11286 * <code>TYPE_SINT32 = 17;</code> 8389 * 11287 */ 11288 public static final int TYPE_SINT32_VALUE = 17; 11289 /** 8390 11290 * <pre> 8391 11291 * Uses ZigZag encoding. 8392 11292 * </pre> 8393 */ 8394 public static final int TYPE_SINT32_VALUE = 17; 8395 /** 11293 * 8396 11294 * <code>TYPE_SINT64 = 18;</code> 8397 *8398 * <pre>8399 * Uses ZigZag encoding.8400 * </pre>8401 11295 */ 8402 11296 public static final int TYPE_SINT64_VALUE = 18; 8403 11297 8404 11298 8405 @Override 8406 public final int getNumber() { return value; } 8407 11299 public final int getNumber() { 11300 return value; 11301 } 11302 11303 /** 11304 * @deprecated Use {@link #forNumber(int)} instead. 11305 */ 11306 @java.lang.Deprecated 8408 11307 public static Type valueOf(int value) { 11308 return forNumber(value); 11309 } 11310 11311 public static Type forNumber(int value) { 8409 11312 switch (value) { 8410 11313 case 1: return TYPE_DOUBLE; … … 8434 11337 return internalValueMap; 8435 11338 } 8436 private static com.google.protobuf.Internal.EnumLiteMap<Type>8437 internalValueMap =11339 private static final com.google.protobuf.Internal.EnumLiteMap< 11340 Type> internalValueMap = 8438 11341 new com.google.protobuf.Internal.EnumLiteMap<Type>() { 8439 @Override 8440 public Type findValueByNumber(int number) { 8441 return Type.valueOf(number); 11342 public Type findValueByNumber(int number) { 11343 return Type.forNumber(number); 8442 11344 } 8443 11345 }; 8444 11346 8445 @Override 8446 public final com.google.protobuf.Descriptors.EnumValueDescriptor 11347 public final com.google.protobuf.Descriptors.EnumValueDescriptor 8447 11348 getValueDescriptor() { 8448 return getDescriptor().getValues().get(index); 8449 } 8450 @Override 8451 public final com.google.protobuf.Descriptors.EnumDescriptor 11349 return getDescriptor().getValues().get(ordinal()); 11350 } 11351 public final com.google.protobuf.Descriptors.EnumDescriptor 8452 11352 getDescriptorForType() { 8453 11353 return getDescriptor(); … … 8469 11369 } 8470 11370 8471 private final int index;8472 11371 private final int value; 8473 11372 8474 private Type(int index, int value) { 8475 this.index = index; 11373 private Type(int value) { 8476 11374 this.value = value; 8477 11375 } … … 8486 11384 implements com.google.protobuf.ProtocolMessageEnum { 8487 11385 /** 11386 * <pre> 11387 * 0 is reserved for errors 11388 * </pre> 11389 * 8488 11390 * <code>LABEL_OPTIONAL = 1;</code> 8489 * 11391 */ 11392 LABEL_OPTIONAL(1), 11393 /** 11394 * <code>LABEL_REQUIRED = 2;</code> 11395 */ 11396 LABEL_REQUIRED(2), 11397 /** 11398 * <code>LABEL_REPEATED = 3;</code> 11399 */ 11400 LABEL_REPEATED(3), 11401 ; 11402 11403 /** 8490 11404 * <pre> 8491 11405 * 0 is reserved for errors 8492 11406 * </pre> 8493 */ 8494 LABEL_OPTIONAL(0, 1), 11407 * 11408 * <code>LABEL_OPTIONAL = 1;</code> 11409 */ 11410 public static final int LABEL_OPTIONAL_VALUE = 1; 8495 11411 /** 8496 11412 * <code>LABEL_REQUIRED = 2;</code> 8497 11413 */ 8498 LABEL_REQUIRED(1, 2),11414 public static final int LABEL_REQUIRED_VALUE = 2; 8499 11415 /** 8500 11416 * <code>LABEL_REPEATED = 3;</code> 8501 *8502 * <pre>8503 * TODO(sanjay): Should we add LABEL_MAP?8504 * </pre>8505 */8506 LABEL_REPEATED(2, 3),8507 ;8508 8509 /**8510 * <code>LABEL_OPTIONAL = 1;</code>8511 *8512 * <pre>8513 * 0 is reserved for errors8514 * </pre>8515 */8516 public static final int LABEL_OPTIONAL_VALUE = 1;8517 /**8518 * <code>LABEL_REQUIRED = 2;</code>8519 */8520 public static final int LABEL_REQUIRED_VALUE = 2;8521 /**8522 * <code>LABEL_REPEATED = 3;</code>8523 *8524 * <pre>8525 * TODO(sanjay): Should we add LABEL_MAP?8526 * </pre>8527 11417 */ 8528 11418 public static final int LABEL_REPEATED_VALUE = 3; 8529 11419 8530 11420 8531 @Override 8532 public final int getNumber() { return value; } 8533 11421 public final int getNumber() { 11422 return value; 11423 } 11424 11425 /** 11426 * @deprecated Use {@link #forNumber(int)} instead. 11427 */ 11428 @java.lang.Deprecated 8534 11429 public static Label valueOf(int value) { 11430 return forNumber(value); 11431 } 11432 11433 public static Label forNumber(int value) { 8535 11434 switch (value) { 8536 11435 case 1: return LABEL_OPTIONAL; … … 8545 11444 return internalValueMap; 8546 11445 } 8547 private static com.google.protobuf.Internal.EnumLiteMap<Label>8548 internalValueMap =11446 private static final com.google.protobuf.Internal.EnumLiteMap< 11447 Label> internalValueMap = 8549 11448 new com.google.protobuf.Internal.EnumLiteMap<Label>() { 8550 @Override 8551 public Label findValueByNumber(int number) { 8552 return Label.valueOf(number); 11449 public Label findValueByNumber(int number) { 11450 return Label.forNumber(number); 8553 11451 } 8554 11452 }; 8555 11453 8556 @Override 8557 public final com.google.protobuf.Descriptors.EnumValueDescriptor 11454 public final com.google.protobuf.Descriptors.EnumValueDescriptor 8558 11455 getValueDescriptor() { 8559 return getDescriptor().getValues().get(index); 8560 } 8561 @Override 8562 public final com.google.protobuf.Descriptors.EnumDescriptor 11456 return getDescriptor().getValues().get(ordinal()); 11457 } 11458 public final com.google.protobuf.Descriptors.EnumDescriptor 8563 11459 getDescriptorForType() { 8564 11460 return getDescriptor(); … … 8580 11476 } 8581 11477 8582 private final int index;8583 11478 private final int value; 8584 11479 8585 private Label(int index, int value) { 8586 this.index = index; 11480 private Label(int value) { 8587 11481 this.value = value; 8588 11482 } … … 8593 11487 private int bitField0_; 8594 11488 public static final int NAME_FIELD_NUMBER = 1; 8595 private java.lang.Object name_;11489 private volatile java.lang.Object name_; 8596 11490 /** 8597 11491 * <code>optional string name = 1;</code> 8598 11492 */ 8599 @Override 8600 public boolean hasName() { 11493 public boolean hasName() { 8601 11494 return ((bitField0_ & 0x00000001) == 0x00000001); 8602 11495 } … … 8604 11497 * <code>optional string name = 1;</code> 8605 11498 */ 8606 @Override 8607 public java.lang.String getName() { 11499 public java.lang.String getName() { 8608 11500 java.lang.Object ref = name_; 8609 11501 if (ref instanceof java.lang.String) { 8610 11502 return (java.lang.String) ref; 8611 11503 } else { 8612 com.google.protobuf.ByteString bs = 11504 com.google.protobuf.ByteString bs = 8613 11505 (com.google.protobuf.ByteString) ref; 8614 11506 java.lang.String s = bs.toStringUtf8(); … … 8622 11514 * <code>optional string name = 1;</code> 8623 11515 */ 8624 @Override 8625 public com.google.protobuf.ByteString 11516 public com.google.protobuf.ByteString 8626 11517 getNameBytes() { 8627 11518 java.lang.Object ref = name_; 8628 11519 if (ref instanceof java.lang.String) { 8629 com.google.protobuf.ByteString b = 11520 com.google.protobuf.ByteString b = 8630 11521 com.google.protobuf.ByteString.copyFromUtf8( 8631 11522 (java.lang.String) ref); … … 8642 11533 * <code>optional int32 number = 3;</code> 8643 11534 */ 8644 @Override 8645 public boolean hasNumber() { 11535 public boolean hasNumber() { 8646 11536 return ((bitField0_ & 0x00000002) == 0x00000002); 8647 11537 } … … 8649 11539 * <code>optional int32 number = 3;</code> 8650 11540 */ 8651 @Override 8652 public int getNumber() { 11541 public int getNumber() { 8653 11542 return number_; 8654 11543 } 8655 11544 8656 11545 public static final int LABEL_FIELD_NUMBER = 4; 8657 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Labellabel_;11546 private int label_; 8658 11547 /** 8659 11548 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 8660 11549 */ 8661 @Override 8662 public boolean hasLabel() { 11550 public boolean hasLabel() { 8663 11551 return ((bitField0_ & 0x00000004) == 0x00000004); 8664 11552 } … … 8666 11554 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 8667 11555 */ 8668 @Override8669 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { 8670 return label_;11556 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { 11557 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.valueOf(label_); 11558 return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL : result; 8671 11559 } 8672 11560 8673 11561 public static final int TYPE_FIELD_NUMBER = 5; 8674 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type type_; 8675 /** 8676 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 8677 * 11562 private int type_; 11563 /** 8678 11564 * <pre> 8679 11565 * If type_name is set, this need not be set. If both this and type_name 8680 11566 * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 8681 11567 * </pre> 8682 */ 8683 @Override 8684 public boolean hasType() { 11568 * 11569 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 11570 */ 11571 public boolean hasType() { 8685 11572 return ((bitField0_ & 0x00000008) == 0x00000008); 8686 11573 } 8687 11574 /** 8688 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code>8689 *8690 11575 * <pre> 8691 11576 * If type_name is set, this need not be set. If both this and type_name 8692 11577 * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 8693 11578 * </pre> 8694 */ 8695 @Override 8696 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { 8697 return type_; 11579 * 11580 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 11581 */ 11582 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { 11583 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.valueOf(type_); 11584 return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; 8698 11585 } 8699 11586 8700 11587 public static final int TYPE_NAME_FIELD_NUMBER = 6; 8701 private java.lang.Object typeName_; 8702 /** 8703 * <code>optional string type_name = 6;</code> 8704 * 11588 private volatile java.lang.Object typeName_; 11589 /** 8705 11590 * <pre> 8706 11591 * For message and enum types, this is the name of the type. If the name … … 8710 11595 * namespace). 8711 11596 * </pre> 8712 */ 8713 @Override 8714 public boolean hasTypeName() { 11597 * 11598 * <code>optional string type_name = 6;</code> 11599 */ 11600 public boolean hasTypeName() { 8715 11601 return ((bitField0_ & 0x00000010) == 0x00000010); 8716 11602 } 8717 11603 /** 8718 * <code>optional string type_name = 6;</code>8719 *8720 11604 * <pre> 8721 11605 * For message and enum types, this is the name of the type. If the name … … 8725 11609 * namespace). 8726 11610 * </pre> 8727 */ 8728 @Override 8729 public java.lang.String getTypeName() { 11611 * 11612 * <code>optional string type_name = 6;</code> 11613 */ 11614 public java.lang.String getTypeName() { 8730 11615 java.lang.Object ref = typeName_; 8731 11616 if (ref instanceof java.lang.String) { 8732 11617 return (java.lang.String) ref; 8733 11618 } else { 8734 com.google.protobuf.ByteString bs = 11619 com.google.protobuf.ByteString bs = 8735 11620 (com.google.protobuf.ByteString) ref; 8736 11621 java.lang.String s = bs.toStringUtf8(); … … 8742 11627 } 8743 11628 /** 8744 * <code>optional string type_name = 6;</code>8745 *8746 11629 * <pre> 8747 11630 * For message and enum types, this is the name of the type. If the name … … 8751 11634 * namespace). 8752 11635 * </pre> 8753 */ 8754 @Override 8755 public com.google.protobuf.ByteString 11636 * 11637 * <code>optional string type_name = 6;</code> 11638 */ 11639 public com.google.protobuf.ByteString 8756 11640 getTypeNameBytes() { 8757 11641 java.lang.Object ref = typeName_; 8758 11642 if (ref instanceof java.lang.String) { 8759 com.google.protobuf.ByteString b = 11643 com.google.protobuf.ByteString b = 8760 11644 com.google.protobuf.ByteString.copyFromUtf8( 8761 11645 (java.lang.String) ref); … … 8768 11652 8769 11653 public static final int EXTENDEE_FIELD_NUMBER = 2; 8770 private java.lang.Object extendee_; 8771 /** 8772 * <code>optional string extendee = 2;</code> 8773 * 11654 private volatile java.lang.Object extendee_; 11655 /** 8774 11656 * <pre> 8775 11657 * For extensions, this is the name of the type being extended. It is 8776 11658 * resolved in the same manner as type_name. 8777 11659 * </pre> 8778 */ 8779 @Override 8780 public boolean hasExtendee() { 11660 * 11661 * <code>optional string extendee = 2;</code> 11662 */ 11663 public boolean hasExtendee() { 8781 11664 return ((bitField0_ & 0x00000020) == 0x00000020); 8782 11665 } 8783 11666 /** 8784 * <code>optional string extendee = 2;</code>8785 *8786 11667 * <pre> 8787 11668 * For extensions, this is the name of the type being extended. It is 8788 11669 * resolved in the same manner as type_name. 8789 11670 * </pre> 8790 */ 8791 @Override 8792 public java.lang.String getExtendee() { 11671 * 11672 * <code>optional string extendee = 2;</code> 11673 */ 11674 public java.lang.String getExtendee() { 8793 11675 java.lang.Object ref = extendee_; 8794 11676 if (ref instanceof java.lang.String) { 8795 11677 return (java.lang.String) ref; 8796 11678 } else { 8797 com.google.protobuf.ByteString bs = 11679 com.google.protobuf.ByteString bs = 8798 11680 (com.google.protobuf.ByteString) ref; 8799 11681 java.lang.String s = bs.toStringUtf8(); … … 8805 11687 } 8806 11688 /** 8807 * <code>optional string extendee = 2;</code>8808 *8809 11689 * <pre> 8810 11690 * For extensions, this is the name of the type being extended. It is 8811 11691 * resolved in the same manner as type_name. 8812 11692 * </pre> 8813 */ 8814 @Override 8815 public com.google.protobuf.ByteString 11693 * 11694 * <code>optional string extendee = 2;</code> 11695 */ 11696 public com.google.protobuf.ByteString 8816 11697 getExtendeeBytes() { 8817 11698 java.lang.Object ref = extendee_; 8818 11699 if (ref instanceof java.lang.String) { 8819 com.google.protobuf.ByteString b = 11700 com.google.protobuf.ByteString b = 8820 11701 com.google.protobuf.ByteString.copyFromUtf8( 8821 11702 (java.lang.String) ref); … … 8828 11709 8829 11710 public static final int DEFAULT_VALUE_FIELD_NUMBER = 7; 8830 private java.lang.Object defaultValue_; 8831 /** 8832 * <code>optional string default_value = 7;</code> 8833 * 11711 private volatile java.lang.Object defaultValue_; 11712 /** 8834 11713 * <pre> 8835 11714 * For numeric types, contains the original text representation of the value. … … 8839 11718 * TODO(kenton): Base-64 encode? 8840 11719 * </pre> 8841 */ 8842 @Override 8843 public boolean hasDefaultValue() { 11720 * 11721 * <code>optional string default_value = 7;</code> 11722 */ 11723 public boolean hasDefaultValue() { 8844 11724 return ((bitField0_ & 0x00000040) == 0x00000040); 8845 11725 } 8846 11726 /** 8847 * <code>optional string default_value = 7;</code>8848 *8849 11727 * <pre> 8850 11728 * For numeric types, contains the original text representation of the value. … … 8854 11732 * TODO(kenton): Base-64 encode? 8855 11733 * </pre> 8856 */ 8857 @Override 8858 public java.lang.String getDefaultValue() { 11734 * 11735 * <code>optional string default_value = 7;</code> 11736 */ 11737 public java.lang.String getDefaultValue() { 8859 11738 java.lang.Object ref = defaultValue_; 8860 11739 if (ref instanceof java.lang.String) { 8861 11740 return (java.lang.String) ref; 8862 11741 } else { 8863 com.google.protobuf.ByteString bs = 11742 com.google.protobuf.ByteString bs = 8864 11743 (com.google.protobuf.ByteString) ref; 8865 11744 java.lang.String s = bs.toStringUtf8(); … … 8871 11750 } 8872 11751 /** 8873 * <code>optional string default_value = 7;</code>8874 *8875 11752 * <pre> 8876 11753 * For numeric types, contains the original text representation of the value. … … 8880 11757 * TODO(kenton): Base-64 encode? 8881 11758 * </pre> 8882 */ 8883 @Override 8884 public com.google.protobuf.ByteString 11759 * 11760 * <code>optional string default_value = 7;</code> 11761 */ 11762 public com.google.protobuf.ByteString 8885 11763 getDefaultValueBytes() { 8886 11764 java.lang.Object ref = defaultValue_; 8887 11765 if (ref instanceof java.lang.String) { 8888 com.google.protobuf.ByteString b = 11766 com.google.protobuf.ByteString b = 8889 11767 com.google.protobuf.ByteString.copyFromUtf8( 8890 11768 (java.lang.String) ref); … … 8899 11777 private int oneofIndex_; 8900 11778 /** 8901 * <code>optional int32 oneof_index = 9;</code>8902 *8903 11779 * <pre> 8904 11780 * If set, gives the index of a oneof in the containing type's oneof_decl 8905 * list. This field is a member of that oneof. Extensions of a oneof should 8906 * not set this since the oneof to which they belong will be inferred based 8907 * on the extension range containing the extension's field number. 11781 * list. This field is a member of that oneof. 8908 11782 * </pre> 8909 */ 8910 @Override 8911 public boolean hasOneofIndex() { 11783 * 11784 * <code>optional int32 oneof_index = 9;</code> 11785 */ 11786 public boolean hasOneofIndex() { 8912 11787 return ((bitField0_ & 0x00000080) == 0x00000080); 8913 11788 } 8914 11789 /** 8915 * <code>optional int32 oneof_index = 9;</code>8916 *8917 11790 * <pre> 8918 11791 * If set, gives the index of a oneof in the containing type's oneof_decl 8919 * list. This field is a member of that oneof. Extensions of a oneof should 8920 * not set this since the oneof to which they belong will be inferred based 8921 * on the extension range containing the extension's field number. 11792 * list. This field is a member of that oneof. 8922 11793 * </pre> 8923 */ 8924 @Override 8925 public int getOneofIndex() { 11794 * 11795 * <code>optional int32 oneof_index = 9;</code> 11796 */ 11797 public int getOneofIndex() { 8926 11798 return oneofIndex_; 11799 } 11800 11801 public static final int JSON_NAME_FIELD_NUMBER = 10; 11802 private volatile java.lang.Object jsonName_; 11803 /** 11804 * <pre> 11805 * JSON name of this field. The value is set by protocol compiler. If the 11806 * user has set a "json_name" option on this field, that option's value 11807 * will be used. Otherwise, it's deduced from the field's name by converting 11808 * it to camelCase. 11809 * </pre> 11810 * 11811 * <code>optional string json_name = 10;</code> 11812 */ 11813 public boolean hasJsonName() { 11814 return ((bitField0_ & 0x00000100) == 0x00000100); 11815 } 11816 /** 11817 * <pre> 11818 * JSON name of this field. The value is set by protocol compiler. If the 11819 * user has set a "json_name" option on this field, that option's value 11820 * will be used. Otherwise, it's deduced from the field's name by converting 11821 * it to camelCase. 11822 * </pre> 11823 * 11824 * <code>optional string json_name = 10;</code> 11825 */ 11826 public java.lang.String getJsonName() { 11827 java.lang.Object ref = jsonName_; 11828 if (ref instanceof java.lang.String) { 11829 return (java.lang.String) ref; 11830 } else { 11831 com.google.protobuf.ByteString bs = 11832 (com.google.protobuf.ByteString) ref; 11833 java.lang.String s = bs.toStringUtf8(); 11834 if (bs.isValidUtf8()) { 11835 jsonName_ = s; 11836 } 11837 return s; 11838 } 11839 } 11840 /** 11841 * <pre> 11842 * JSON name of this field. The value is set by protocol compiler. If the 11843 * user has set a "json_name" option on this field, that option's value 11844 * will be used. Otherwise, it's deduced from the field's name by converting 11845 * it to camelCase. 11846 * </pre> 11847 * 11848 * <code>optional string json_name = 10;</code> 11849 */ 11850 public com.google.protobuf.ByteString 11851 getJsonNameBytes() { 11852 java.lang.Object ref = jsonName_; 11853 if (ref instanceof java.lang.String) { 11854 com.google.protobuf.ByteString b = 11855 com.google.protobuf.ByteString.copyFromUtf8( 11856 (java.lang.String) ref); 11857 jsonName_ = b; 11858 return b; 11859 } else { 11860 return (com.google.protobuf.ByteString) ref; 11861 } 8927 11862 } 8928 11863 … … 8932 11867 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 8933 11868 */ 8934 @Override 8935 public boolean hasOptions() { 8936 return ((bitField0_ & 0x00000100) == 0x00000100); 11869 public boolean hasOptions() { 11870 return ((bitField0_ & 0x00000200) == 0x00000200); 8937 11871 } 8938 11872 /** 8939 11873 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 8940 11874 */ 8941 @Override 8942 public com.google.protobuf.DescriptorProtos.FieldOptions getOptions() { 8943 return options_; 11875 public com.google.protobuf.DescriptorProtos.FieldOptions getOptions() { 11876 return options_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : options_; 8944 11877 } 8945 11878 /** 8946 11879 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 8947 11880 */ 8948 @Override 8949 public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder() { 8950 return options_; 8951 } 8952 8953 private void initFields() { 8954 name_ = ""; 8955 number_ = 0; 8956 label_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL; 8957 type_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE; 8958 typeName_ = ""; 8959 extendee_ = ""; 8960 defaultValue_ = ""; 8961 oneofIndex_ = 0; 8962 options_ = com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); 8963 } 11881 public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder() { 11882 return options_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : options_; 11883 } 11884 8964 11885 private byte memoizedIsInitialized = -1; 8965 @Override 8966 public final boolean isInitialized() { 11886 public final boolean isInitialized() { 8967 11887 byte isInitialized = memoizedIsInitialized; 8968 11888 if (isInitialized == 1) return true; … … 8979 11899 } 8980 11900 8981 @Override 8982 public void writeTo(com.google.protobuf.CodedOutputStream output) 11901 public void writeTo(com.google.protobuf.CodedOutputStream output) 8983 11902 throws java.io.IOException { 8984 getSerializedSize();8985 11903 if (((bitField0_ & 0x00000001) == 0x00000001)) { 8986 output.writeBytes(1, getNameBytes());11904 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 8987 11905 } 8988 11906 if (((bitField0_ & 0x00000020) == 0x00000020)) { 8989 output.writeBytes(2, getExtendeeBytes());11907 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, extendee_); 8990 11908 } 8991 11909 if (((bitField0_ & 0x00000002) == 0x00000002)) { … … 8993 11911 } 8994 11912 if (((bitField0_ & 0x00000004) == 0x00000004)) { 8995 output.writeEnum(4, label_ .getNumber());11913 output.writeEnum(4, label_); 8996 11914 } 8997 11915 if (((bitField0_ & 0x00000008) == 0x00000008)) { 8998 output.writeEnum(5, type_ .getNumber());11916 output.writeEnum(5, type_); 8999 11917 } 9000 11918 if (((bitField0_ & 0x00000010) == 0x00000010)) { 9001 output.writeBytes(6, getTypeNameBytes());11919 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, typeName_); 9002 11920 } 9003 11921 if (((bitField0_ & 0x00000040) == 0x00000040)) { 9004 output.writeBytes(7, getDefaultValueBytes());9005 } 9006 if (((bitField0_ & 0x00000 100) == 0x00000100)) {9007 output.writeMessage(8, options_);11922 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, defaultValue_); 11923 } 11924 if (((bitField0_ & 0x00000200) == 0x00000200)) { 11925 output.writeMessage(8, getOptions()); 9008 11926 } 9009 11927 if (((bitField0_ & 0x00000080) == 0x00000080)) { 9010 11928 output.writeInt32(9, oneofIndex_); 9011 11929 } 9012 getUnknownFields().writeTo(output); 9013 } 9014 9015 private int memoizedSerializedSize = -1; 9016 @Override 9017 public int getSerializedSize() { 9018 int size = memoizedSerializedSize; 11930 if (((bitField0_ & 0x00000100) == 0x00000100)) { 11931 com.google.protobuf.GeneratedMessageV3.writeString(output, 10, jsonName_); 11932 } 11933 unknownFields.writeTo(output); 11934 } 11935 11936 public int getSerializedSize() { 11937 int size = memoizedSize; 9019 11938 if (size != -1) return size; 9020 11939 9021 11940 size = 0; 9022 11941 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9023 size += com.google.protobuf.CodedOutputStream 9024 .computeBytesSize(1, getNameBytes()); 11942 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 9025 11943 } 9026 11944 if (((bitField0_ & 0x00000020) == 0x00000020)) { 9027 size += com.google.protobuf.CodedOutputStream 9028 .computeBytesSize(2, getExtendeeBytes()); 11945 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, extendee_); 9029 11946 } 9030 11947 if (((bitField0_ & 0x00000002) == 0x00000002)) { … … 9034 11951 if (((bitField0_ & 0x00000004) == 0x00000004)) { 9035 11952 size += com.google.protobuf.CodedOutputStream 9036 .computeEnumSize(4, label_ .getNumber());11953 .computeEnumSize(4, label_); 9037 11954 } 9038 11955 if (((bitField0_ & 0x00000008) == 0x00000008)) { 9039 11956 size += com.google.protobuf.CodedOutputStream 9040 .computeEnumSize(5, type_ .getNumber());11957 .computeEnumSize(5, type_); 9041 11958 } 9042 11959 if (((bitField0_ & 0x00000010) == 0x00000010)) { 11960 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, typeName_); 11961 } 11962 if (((bitField0_ & 0x00000040) == 0x00000040)) { 11963 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, defaultValue_); 11964 } 11965 if (((bitField0_ & 0x00000200) == 0x00000200)) { 9043 11966 size += com.google.protobuf.CodedOutputStream 9044 .computeBytesSize(6, getTypeNameBytes()); 9045 } 9046 if (((bitField0_ & 0x00000040) == 0x00000040)) { 9047 size += com.google.protobuf.CodedOutputStream 9048 .computeBytesSize(7, getDefaultValueBytes()); 9049 } 9050 if (((bitField0_ & 0x00000100) == 0x00000100)) { 9051 size += com.google.protobuf.CodedOutputStream 9052 .computeMessageSize(8, options_); 11967 .computeMessageSize(8, getOptions()); 9053 11968 } 9054 11969 if (((bitField0_ & 0x00000080) == 0x00000080)) { … … 9056 11971 .computeInt32Size(9, oneofIndex_); 9057 11972 } 9058 size += getUnknownFields().getSerializedSize(); 9059 memoizedSerializedSize = size; 11973 if (((bitField0_ & 0x00000100) == 0x00000100)) { 11974 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, jsonName_); 11975 } 11976 size += unknownFields.getSerializedSize(); 11977 memoizedSize = size; 9060 11978 return size; 9061 11979 } 9062 11980 9063 private static final long serialVersionUID = 0L;9064 11981 @java.lang.Override 9065 protected java.lang.Object writeReplace() 9066 throws java.io.ObjectStreamException { 9067 return super.writeReplace(); 9068 } 9069 11982 public boolean equals(final java.lang.Object obj) { 11983 if (obj == this) { 11984 return true; 11985 } 11986 if (!(obj instanceof com.google.protobuf.DescriptorProtos.FieldDescriptorProto)) { 11987 return super.equals(obj); 11988 } 11989 com.google.protobuf.DescriptorProtos.FieldDescriptorProto other = (com.google.protobuf.DescriptorProtos.FieldDescriptorProto) obj; 11990 11991 boolean result = true; 11992 result = result && (hasName() == other.hasName()); 11993 if (hasName()) { 11994 result = result && getName() 11995 .equals(other.getName()); 11996 } 11997 result = result && (hasNumber() == other.hasNumber()); 11998 if (hasNumber()) { 11999 result = result && (getNumber() 12000 == other.getNumber()); 12001 } 12002 result = result && (hasLabel() == other.hasLabel()); 12003 if (hasLabel()) { 12004 result = result && label_ == other.label_; 12005 } 12006 result = result && (hasType() == other.hasType()); 12007 if (hasType()) { 12008 result = result && type_ == other.type_; 12009 } 12010 result = result && (hasTypeName() == other.hasTypeName()); 12011 if (hasTypeName()) { 12012 result = result && getTypeName() 12013 .equals(other.getTypeName()); 12014 } 12015 result = result && (hasExtendee() == other.hasExtendee()); 12016 if (hasExtendee()) { 12017 result = result && getExtendee() 12018 .equals(other.getExtendee()); 12019 } 12020 result = result && (hasDefaultValue() == other.hasDefaultValue()); 12021 if (hasDefaultValue()) { 12022 result = result && getDefaultValue() 12023 .equals(other.getDefaultValue()); 12024 } 12025 result = result && (hasOneofIndex() == other.hasOneofIndex()); 12026 if (hasOneofIndex()) { 12027 result = result && (getOneofIndex() 12028 == other.getOneofIndex()); 12029 } 12030 result = result && (hasJsonName() == other.hasJsonName()); 12031 if (hasJsonName()) { 12032 result = result && getJsonName() 12033 .equals(other.getJsonName()); 12034 } 12035 result = result && (hasOptions() == other.hasOptions()); 12036 if (hasOptions()) { 12037 result = result && getOptions() 12038 .equals(other.getOptions()); 12039 } 12040 result = result && unknownFields.equals(other.unknownFields); 12041 return result; 12042 } 12043 12044 @java.lang.Override 12045 public int hashCode() { 12046 if (memoizedHashCode != 0) { 12047 return memoizedHashCode; 12048 } 12049 int hash = 41; 12050 hash = (19 * hash) + getDescriptor().hashCode(); 12051 if (hasName()) { 12052 hash = (37 * hash) + NAME_FIELD_NUMBER; 12053 hash = (53 * hash) + getName().hashCode(); 12054 } 12055 if (hasNumber()) { 12056 hash = (37 * hash) + NUMBER_FIELD_NUMBER; 12057 hash = (53 * hash) + getNumber(); 12058 } 12059 if (hasLabel()) { 12060 hash = (37 * hash) + LABEL_FIELD_NUMBER; 12061 hash = (53 * hash) + label_; 12062 } 12063 if (hasType()) { 12064 hash = (37 * hash) + TYPE_FIELD_NUMBER; 12065 hash = (53 * hash) + type_; 12066 } 12067 if (hasTypeName()) { 12068 hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER; 12069 hash = (53 * hash) + getTypeName().hashCode(); 12070 } 12071 if (hasExtendee()) { 12072 hash = (37 * hash) + EXTENDEE_FIELD_NUMBER; 12073 hash = (53 * hash) + getExtendee().hashCode(); 12074 } 12075 if (hasDefaultValue()) { 12076 hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; 12077 hash = (53 * hash) + getDefaultValue().hashCode(); 12078 } 12079 if (hasOneofIndex()) { 12080 hash = (37 * hash) + ONEOF_INDEX_FIELD_NUMBER; 12081 hash = (53 * hash) + getOneofIndex(); 12082 } 12083 if (hasJsonName()) { 12084 hash = (37 * hash) + JSON_NAME_FIELD_NUMBER; 12085 hash = (53 * hash) + getJsonName().hashCode(); 12086 } 12087 if (hasOptions()) { 12088 hash = (37 * hash) + OPTIONS_FIELD_NUMBER; 12089 hash = (53 * hash) + getOptions().hashCode(); 12090 } 12091 hash = (29 * hash) + unknownFields.hashCode(); 12092 memoizedHashCode = hash; 12093 return hash; 12094 } 12095 12096 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 12097 java.nio.ByteBuffer data) 12098 throws com.google.protobuf.InvalidProtocolBufferException { 12099 return PARSER.parseFrom(data); 12100 } 12101 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 12102 java.nio.ByteBuffer data, 12103 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12104 throws com.google.protobuf.InvalidProtocolBufferException { 12105 return PARSER.parseFrom(data, extensionRegistry); 12106 } 9070 12107 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 9071 12108 com.google.protobuf.ByteString data) … … 9091 12128 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom(java.io.InputStream input) 9092 12129 throws java.io.IOException { 9093 return PARSER.parseFrom(input); 12130 return com.google.protobuf.GeneratedMessageV3 12131 .parseWithIOException(PARSER, input); 9094 12132 } 9095 12133 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( … … 9097 12135 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9098 12136 throws java.io.IOException { 9099 return PARSER.parseFrom(input, extensionRegistry); 12137 return com.google.protobuf.GeneratedMessageV3 12138 .parseWithIOException(PARSER, input, extensionRegistry); 9100 12139 } 9101 12140 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseDelimitedFrom(java.io.InputStream input) 9102 12141 throws java.io.IOException { 9103 return PARSER.parseDelimitedFrom(input); 12142 return com.google.protobuf.GeneratedMessageV3 12143 .parseDelimitedWithIOException(PARSER, input); 9104 12144 } 9105 12145 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseDelimitedFrom( … … 9107 12147 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9108 12148 throws java.io.IOException { 9109 return PARSER.parseDelimitedFrom(input, extensionRegistry); 12149 return com.google.protobuf.GeneratedMessageV3 12150 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 9110 12151 } 9111 12152 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( 9112 12153 com.google.protobuf.CodedInputStream input) 9113 12154 throws java.io.IOException { 9114 return PARSER.parseFrom(input); 12155 return com.google.protobuf.GeneratedMessageV3 12156 .parseWithIOException(PARSER, input); 9115 12157 } 9116 12158 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto parseFrom( … … 9118 12160 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9119 12161 throws java.io.IOException { 9120 return PARSER.parseFrom(input, extensionRegistry); 9121 } 9122 9123 public static Builder newBuilder() { return Builder.create(); } 9124 @Override 9125 public Builder newBuilderForType() { return newBuilder(); } 12162 return com.google.protobuf.GeneratedMessageV3 12163 .parseWithIOException(PARSER, input, extensionRegistry); 12164 } 12165 12166 public Builder newBuilderForType() { return newBuilder(); } 12167 public static Builder newBuilder() { 12168 return DEFAULT_INSTANCE.toBuilder(); 12169 } 9126 12170 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FieldDescriptorProto prototype) { 9127 return newBuilder().mergeFrom(prototype); 9128 } 9129 @Override 9130 public Builder toBuilder() { return newBuilder(this); } 12171 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 12172 } 12173 public Builder toBuilder() { 12174 return this == DEFAULT_INSTANCE 12175 ? new Builder() : new Builder().mergeFrom(this); 12176 } 9131 12177 9132 12178 @java.lang.Override 9133 12179 protected Builder newBuilderForType( 9134 com.google.protobuf.GeneratedMessage .BuilderParent parent) {12180 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 9135 12181 Builder builder = new Builder(parent); 9136 12182 return builder; 9137 12183 } 9138 12184 /** 9139 * Protobuf type {@code google.protobuf.FieldDescriptorProto}9140 *9141 12185 * <pre> 9142 12186 * Describes a field within a message. 9143 12187 * </pre> 12188 * 12189 * Protobuf type {@code google.protobuf.FieldDescriptorProto} 9144 12190 */ 9145 12191 public static final class Builder extends 9146 com.google.protobuf.GeneratedMessage .Builder<Builder> implements12192 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 9147 12193 // @@protoc_insertion_point(builder_implements:google.protobuf.FieldDescriptorProto) 9148 12194 com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder { … … 9152 12198 } 9153 12199 9154 @Override 9155 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 12200 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 9156 12201 internalGetFieldAccessorTable() { 9157 12202 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable … … 9166 12211 9167 12212 private Builder( 9168 com.google.protobuf.GeneratedMessage .BuilderParent parent) {12213 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 9169 12214 super(parent); 9170 12215 maybeForceBuilderInitialization(); 9171 12216 } 9172 12217 private void maybeForceBuilderInitialization() { 9173 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 12218 if (com.google.protobuf.GeneratedMessageV3 12219 .alwaysUseFieldBuilders) { 9174 12220 getOptionsFieldBuilder(); 9175 12221 } 9176 12222 } 9177 private static Builder create() { 9178 return new Builder(); 9179 } 9180 9181 @Override 9182 public Builder clear() { 12223 public Builder clear() { 9183 12224 super.clear(); 9184 12225 name_ = ""; … … 9186 12227 number_ = 0; 9187 12228 bitField0_ = (bitField0_ & ~0x00000002); 9188 label_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL;12229 label_ = 1; 9189 12230 bitField0_ = (bitField0_ & ~0x00000004); 9190 type_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE;12231 type_ = 1; 9191 12232 bitField0_ = (bitField0_ & ~0x00000008); 9192 12233 typeName_ = ""; … … 9198 12239 oneofIndex_ = 0; 9199 12240 bitField0_ = (bitField0_ & ~0x00000080); 12241 jsonName_ = ""; 12242 bitField0_ = (bitField0_ & ~0x00000100); 9200 12243 if (optionsBuilder_ == null) { 9201 options_ = com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance();12244 options_ = null; 9202 12245 } else { 9203 12246 optionsBuilder_.clear(); 9204 12247 } 9205 bitField0_ = (bitField0_ & ~0x00000100); 9206 return this; 9207 } 9208 9209 @Override 9210 public Builder clone() { 9211 return create().mergeFrom(buildPartial()); 9212 } 9213 9214 @Override 9215 public com.google.protobuf.Descriptors.Descriptor 12248 bitField0_ = (bitField0_ & ~0x00000200); 12249 return this; 12250 } 12251 12252 public com.google.protobuf.Descriptors.Descriptor 9216 12253 getDescriptorForType() { 9217 12254 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; 9218 12255 } 9219 12256 9220 @Override 9221 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getDefaultInstanceForType() { 12257 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getDefaultInstanceForType() { 9222 12258 return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance(); 9223 12259 } 9224 12260 9225 @Override 9226 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto build() { 12261 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto build() { 9227 12262 com.google.protobuf.DescriptorProtos.FieldDescriptorProto result = buildPartial(); 9228 12263 if (!result.isInitialized()) { … … 9232 12267 } 9233 12268 9234 @Override 9235 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto buildPartial() { 12269 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto buildPartial() { 9236 12270 com.google.protobuf.DescriptorProtos.FieldDescriptorProto result = new com.google.protobuf.DescriptorProtos.FieldDescriptorProto(this); 9237 12271 int from_bitField0_ = bitField0_; … … 9272 12306 to_bitField0_ |= 0x00000100; 9273 12307 } 12308 result.jsonName_ = jsonName_; 12309 if (((from_bitField0_ & 0x00000200) == 0x00000200)) { 12310 to_bitField0_ |= 0x00000200; 12311 } 9274 12312 if (optionsBuilder_ == null) { 9275 12313 result.options_ = options_; … … 9282 12320 } 9283 12321 9284 @Override 9285 public Builder mergeFrom(com.google.protobuf.Message other) { 12322 public Builder clone() { 12323 return (Builder) super.clone(); 12324 } 12325 public Builder setField( 12326 com.google.protobuf.Descriptors.FieldDescriptor field, 12327 java.lang.Object value) { 12328 return (Builder) super.setField(field, value); 12329 } 12330 public Builder clearField( 12331 com.google.protobuf.Descriptors.FieldDescriptor field) { 12332 return (Builder) super.clearField(field); 12333 } 12334 public Builder clearOneof( 12335 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 12336 return (Builder) super.clearOneof(oneof); 12337 } 12338 public Builder setRepeatedField( 12339 com.google.protobuf.Descriptors.FieldDescriptor field, 12340 int index, java.lang.Object value) { 12341 return (Builder) super.setRepeatedField(field, index, value); 12342 } 12343 public Builder addRepeatedField( 12344 com.google.protobuf.Descriptors.FieldDescriptor field, 12345 java.lang.Object value) { 12346 return (Builder) super.addRepeatedField(field, value); 12347 } 12348 public Builder mergeFrom(com.google.protobuf.Message other) { 9286 12349 if (other instanceof com.google.protobuf.DescriptorProtos.FieldDescriptorProto) { 9287 12350 return mergeFrom((com.google.protobuf.DescriptorProtos.FieldDescriptorProto)other); … … 9326 12389 setOneofIndex(other.getOneofIndex()); 9327 12390 } 12391 if (other.hasJsonName()) { 12392 bitField0_ |= 0x00000100; 12393 jsonName_ = other.jsonName_; 12394 onChanged(); 12395 } 9328 12396 if (other.hasOptions()) { 9329 12397 mergeOptions(other.getOptions()); 9330 12398 } 9331 this.mergeUnknownFields(other. getUnknownFields());9332 return this;9333 }9334 9335 @Override 9336 12399 this.mergeUnknownFields(other.unknownFields); 12400 onChanged(); 12401 return this; 12402 } 12403 12404 public final boolean isInitialized() { 9337 12405 if (hasOptions()) { 9338 12406 if (!getOptions().isInitialized()) { 9339 9340 12407 return false; 9341 12408 } … … 9344 12411 } 9345 12412 9346 @Override 9347 public Builder mergeFrom( 12413 public Builder mergeFrom( 9348 12414 com.google.protobuf.CodedInputStream input, 9349 12415 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 9354 12420 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9355 12421 parsedMessage = (com.google.protobuf.DescriptorProtos.FieldDescriptorProto) e.getUnfinishedMessage(); 9356 throw e ;12422 throw e.unwrapIOException(); 9357 12423 } finally { 9358 12424 if (parsedMessage != null) { … … 9368 12434 * <code>optional string name = 1;</code> 9369 12435 */ 9370 @Override 9371 public boolean hasName() { 12436 public boolean hasName() { 9372 12437 return ((bitField0_ & 0x00000001) == 0x00000001); 9373 12438 } … … 9375 12440 * <code>optional string name = 1;</code> 9376 12441 */ 9377 @Override 9378 public java.lang.String getName() { 12442 public java.lang.String getName() { 9379 12443 java.lang.Object ref = name_; 9380 12444 if (!(ref instanceof java.lang.String)) { … … 9393 12457 * <code>optional string name = 1;</code> 9394 12458 */ 9395 @Override 9396 public com.google.protobuf.ByteString 12459 public com.google.protobuf.ByteString 9397 12460 getNameBytes() { 9398 12461 java.lang.Object ref = name_; 9399 12462 if (ref instanceof String) { 9400 com.google.protobuf.ByteString b = 12463 com.google.protobuf.ByteString b = 9401 12464 com.google.protobuf.ByteString.copyFromUtf8( 9402 12465 (java.lang.String) ref); … … 9447 12510 * <code>optional int32 number = 3;</code> 9448 12511 */ 9449 @Override 9450 public boolean hasNumber() { 12512 public boolean hasNumber() { 9451 12513 return ((bitField0_ & 0x00000002) == 0x00000002); 9452 12514 } … … 9454 12516 * <code>optional int32 number = 3;</code> 9455 12517 */ 9456 @Override 9457 public int getNumber() { 12518 public int getNumber() { 9458 12519 return number_; 9459 12520 } … … 9477 12538 } 9478 12539 9479 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label label_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL;12540 private int label_ = 1; 9480 12541 /** 9481 12542 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 9482 12543 */ 9483 @Override 9484 public boolean hasLabel() { 12544 public boolean hasLabel() { 9485 12545 return ((bitField0_ & 0x00000004) == 0x00000004); 9486 12546 } … … 9488 12548 * <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code> 9489 12549 */ 9490 @Override9491 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { 9492 return label_;12550 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel() { 12551 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.valueOf(label_); 12552 return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL : result; 9493 12553 } 9494 12554 /** … … 9500 12560 } 9501 12561 bitField0_ |= 0x00000004; 9502 label_ = value ;12562 label_ = value.getNumber(); 9503 12563 onChanged(); 9504 12564 return this; … … 9509 12569 public Builder clearLabel() { 9510 12570 bitField0_ = (bitField0_ & ~0x00000004); 9511 label_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label.LABEL_OPTIONAL;12571 label_ = 1; 9512 12572 onChanged(); 9513 12573 return this; 9514 12574 } 9515 12575 9516 private com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type type_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE; 9517 /** 9518 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 9519 * 12576 private int type_ = 1; 12577 /** 9520 12578 * <pre> 9521 12579 * If type_name is set, this need not be set. If both this and type_name 9522 12580 * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 9523 12581 * </pre> 9524 */ 9525 @Override 9526 public boolean hasType() { 12582 * 12583 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 12584 */ 12585 public boolean hasType() { 9527 12586 return ((bitField0_ & 0x00000008) == 0x00000008); 9528 12587 } 9529 12588 /** 9530 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code>9531 *9532 12589 * <pre> 9533 12590 * If type_name is set, this need not be set. If both this and type_name 9534 12591 * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 9535 12592 * </pre> 9536 */ 9537 @Override 9538 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { 9539 return type_; 9540 } 9541 /** 12593 * 9542 12594 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 9543 * 12595 */ 12596 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType() { 12597 com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.valueOf(type_); 12598 return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; 12599 } 12600 /** 9544 12601 * <pre> 9545 12602 * If type_name is set, this need not be set. If both this and type_name 9546 12603 * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 9547 12604 * </pre> 12605 * 12606 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 9548 12607 */ 9549 12608 public Builder setType(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type value) { … … 9552 12611 } 9553 12612 bitField0_ |= 0x00000008; 9554 type_ = value ;12613 type_ = value.getNumber(); 9555 12614 onChanged(); 9556 12615 return this; 9557 12616 } 9558 12617 /** 9559 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code>9560 *9561 12618 * <pre> 9562 12619 * If type_name is set, this need not be set. If both this and type_name 9563 12620 * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 9564 12621 * </pre> 12622 * 12623 * <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code> 9565 12624 */ 9566 12625 public Builder clearType() { 9567 12626 bitField0_ = (bitField0_ & ~0x00000008); 9568 type_ = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE;12627 type_ = 1; 9569 12628 onChanged(); 9570 12629 return this; … … 9573 12632 private java.lang.Object typeName_ = ""; 9574 12633 /** 9575 * <code>optional string type_name = 6;</code>9576 *9577 12634 * <pre> 9578 12635 * For message and enum types, this is the name of the type. If the name … … 9582 12639 * namespace). 9583 12640 * </pre> 9584 */ 9585 @Override 9586 public boolean hasTypeName() { 12641 * 12642 * <code>optional string type_name = 6;</code> 12643 */ 12644 public boolean hasTypeName() { 9587 12645 return ((bitField0_ & 0x00000010) == 0x00000010); 9588 12646 } 9589 12647 /** 9590 * <code>optional string type_name = 6;</code>9591 *9592 12648 * <pre> 9593 12649 * For message and enum types, this is the name of the type. If the name … … 9597 12653 * namespace). 9598 12654 * </pre> 9599 */ 9600 @Override 9601 public java.lang.String getTypeName() { 12655 * 12656 * <code>optional string type_name = 6;</code> 12657 */ 12658 public java.lang.String getTypeName() { 9602 12659 java.lang.Object ref = typeName_; 9603 12660 if (!(ref instanceof java.lang.String)) { … … 9614 12671 } 9615 12672 /** 9616 * <code>optional string type_name = 6;</code>9617 *9618 12673 * <pre> 9619 12674 * For message and enum types, this is the name of the type. If the name … … 9623 12678 * namespace). 9624 12679 * </pre> 9625 */ 9626 @Override 9627 public com.google.protobuf.ByteString 12680 * 12681 * <code>optional string type_name = 6;</code> 12682 */ 12683 public com.google.protobuf.ByteString 9628 12684 getTypeNameBytes() { 9629 12685 java.lang.Object ref = typeName_; 9630 12686 if (ref instanceof String) { 9631 com.google.protobuf.ByteString b = 12687 com.google.protobuf.ByteString b = 9632 12688 com.google.protobuf.ByteString.copyFromUtf8( 9633 12689 (java.lang.String) ref); … … 9639 12695 } 9640 12696 /** 9641 * <code>optional string type_name = 6;</code>9642 *9643 12697 * <pre> 9644 12698 * For message and enum types, this is the name of the type. If the name … … 9648 12702 * namespace). 9649 12703 * </pre> 12704 * 12705 * <code>optional string type_name = 6;</code> 9650 12706 */ 9651 12707 public Builder setTypeName( … … 9660 12716 } 9661 12717 /** 9662 * <code>optional string type_name = 6;</code>9663 *9664 12718 * <pre> 9665 12719 * For message and enum types, this is the name of the type. If the name … … 9669 12723 * namespace). 9670 12724 * </pre> 12725 * 12726 * <code>optional string type_name = 6;</code> 9671 12727 */ 9672 12728 public Builder clearTypeName() { … … 9677 12733 } 9678 12734 /** 9679 * <code>optional string type_name = 6;</code>9680 *9681 12735 * <pre> 9682 12736 * For message and enum types, this is the name of the type. If the name … … 9686 12740 * namespace). 9687 12741 * </pre> 12742 * 12743 * <code>optional string type_name = 6;</code> 9688 12744 */ 9689 12745 public Builder setTypeNameBytes( … … 9700 12756 private java.lang.Object extendee_ = ""; 9701 12757 /** 9702 * <code>optional string extendee = 2;</code>9703 *9704 12758 * <pre> 9705 12759 * For extensions, this is the name of the type being extended. It is 9706 12760 * resolved in the same manner as type_name. 9707 12761 * </pre> 9708 */ 9709 @Override 9710 public boolean hasExtendee() { 12762 * 12763 * <code>optional string extendee = 2;</code> 12764 */ 12765 public boolean hasExtendee() { 9711 12766 return ((bitField0_ & 0x00000020) == 0x00000020); 9712 12767 } 9713 12768 /** 9714 * <code>optional string extendee = 2;</code>9715 *9716 12769 * <pre> 9717 12770 * For extensions, this is the name of the type being extended. It is 9718 12771 * resolved in the same manner as type_name. 9719 12772 * </pre> 9720 */ 9721 @Override 9722 public java.lang.String getExtendee() { 12773 * 12774 * <code>optional string extendee = 2;</code> 12775 */ 12776 public java.lang.String getExtendee() { 9723 12777 java.lang.Object ref = extendee_; 9724 12778 if (!(ref instanceof java.lang.String)) { … … 9735 12789 } 9736 12790 /** 9737 * <code>optional string extendee = 2;</code>9738 *9739 12791 * <pre> 9740 12792 * For extensions, this is the name of the type being extended. It is 9741 12793 * resolved in the same manner as type_name. 9742 12794 * </pre> 9743 */ 9744 @Override 9745 public com.google.protobuf.ByteString 12795 * 12796 * <code>optional string extendee = 2;</code> 12797 */ 12798 public com.google.protobuf.ByteString 9746 12799 getExtendeeBytes() { 9747 12800 java.lang.Object ref = extendee_; 9748 12801 if (ref instanceof String) { 9749 com.google.protobuf.ByteString b = 12802 com.google.protobuf.ByteString b = 9750 12803 com.google.protobuf.ByteString.copyFromUtf8( 9751 12804 (java.lang.String) ref); … … 9757 12810 } 9758 12811 /** 9759 * <code>optional string extendee = 2;</code>9760 *9761 12812 * <pre> 9762 12813 * For extensions, this is the name of the type being extended. It is 9763 12814 * resolved in the same manner as type_name. 9764 12815 * </pre> 12816 * 12817 * <code>optional string extendee = 2;</code> 9765 12818 */ 9766 12819 public Builder setExtendee( … … 9775 12828 } 9776 12829 /** 9777 * <code>optional string extendee = 2;</code>9778 *9779 12830 * <pre> 9780 12831 * For extensions, this is the name of the type being extended. It is 9781 12832 * resolved in the same manner as type_name. 9782 12833 * </pre> 12834 * 12835 * <code>optional string extendee = 2;</code> 9783 12836 */ 9784 12837 public Builder clearExtendee() { … … 9789 12842 } 9790 12843 /** 9791 * <code>optional string extendee = 2;</code>9792 *9793 12844 * <pre> 9794 12845 * For extensions, this is the name of the type being extended. It is 9795 12846 * resolved in the same manner as type_name. 9796 12847 * </pre> 12848 * 12849 * <code>optional string extendee = 2;</code> 9797 12850 */ 9798 12851 public Builder setExtendeeBytes( … … 9809 12862 private java.lang.Object defaultValue_ = ""; 9810 12863 /** 9811 * <code>optional string default_value = 7;</code>9812 *9813 12864 * <pre> 9814 12865 * For numeric types, contains the original text representation of the value. … … 9818 12869 * TODO(kenton): Base-64 encode? 9819 12870 * </pre> 9820 */ 9821 @Override 9822 public boolean hasDefaultValue() { 12871 * 12872 * <code>optional string default_value = 7;</code> 12873 */ 12874 public boolean hasDefaultValue() { 9823 12875 return ((bitField0_ & 0x00000040) == 0x00000040); 9824 12876 } 9825 12877 /** 9826 * <code>optional string default_value = 7;</code>9827 *9828 12878 * <pre> 9829 12879 * For numeric types, contains the original text representation of the value. … … 9833 12883 * TODO(kenton): Base-64 encode? 9834 12884 * </pre> 9835 */ 9836 @Override 9837 public java.lang.String getDefaultValue() { 12885 * 12886 * <code>optional string default_value = 7;</code> 12887 */ 12888 public java.lang.String getDefaultValue() { 9838 12889 java.lang.Object ref = defaultValue_; 9839 12890 if (!(ref instanceof java.lang.String)) { … … 9850 12901 } 9851 12902 /** 9852 * <code>optional string default_value = 7;</code>9853 *9854 12903 * <pre> 9855 12904 * For numeric types, contains the original text representation of the value. … … 9859 12908 * TODO(kenton): Base-64 encode? 9860 12909 * </pre> 9861 */ 9862 @Override 9863 public com.google.protobuf.ByteString 12910 * 12911 * <code>optional string default_value = 7;</code> 12912 */ 12913 public com.google.protobuf.ByteString 9864 12914 getDefaultValueBytes() { 9865 12915 java.lang.Object ref = defaultValue_; 9866 12916 if (ref instanceof String) { 9867 com.google.protobuf.ByteString b = 12917 com.google.protobuf.ByteString b = 9868 12918 com.google.protobuf.ByteString.copyFromUtf8( 9869 12919 (java.lang.String) ref); … … 9875 12925 } 9876 12926 /** 9877 * <code>optional string default_value = 7;</code>9878 *9879 12927 * <pre> 9880 12928 * For numeric types, contains the original text representation of the value. … … 9884 12932 * TODO(kenton): Base-64 encode? 9885 12933 * </pre> 12934 * 12935 * <code>optional string default_value = 7;</code> 9886 12936 */ 9887 12937 public Builder setDefaultValue( … … 9896 12946 } 9897 12947 /** 9898 * <code>optional string default_value = 7;</code>9899 *9900 12948 * <pre> 9901 12949 * For numeric types, contains the original text representation of the value. … … 9905 12953 * TODO(kenton): Base-64 encode? 9906 12954 * </pre> 12955 * 12956 * <code>optional string default_value = 7;</code> 9907 12957 */ 9908 12958 public Builder clearDefaultValue() { … … 9913 12963 } 9914 12964 /** 9915 * <code>optional string default_value = 7;</code>9916 *9917 12965 * <pre> 9918 12966 * For numeric types, contains the original text representation of the value. … … 9922 12970 * TODO(kenton): Base-64 encode? 9923 12971 * </pre> 12972 * 12973 * <code>optional string default_value = 7;</code> 9924 12974 */ 9925 12975 public Builder setDefaultValueBytes( … … 9936 12986 private int oneofIndex_ ; 9937 12987 /** 12988 * <pre> 12989 * If set, gives the index of a oneof in the containing type's oneof_decl 12990 * list. This field is a member of that oneof. 12991 * </pre> 12992 * 9938 12993 * <code>optional int32 oneof_index = 9;</code> 9939 * 12994 */ 12995 public boolean hasOneofIndex() { 12996 return ((bitField0_ & 0x00000080) == 0x00000080); 12997 } 12998 /** 9940 12999 * <pre> 9941 13000 * If set, gives the index of a oneof in the containing type's oneof_decl 9942 * list. This field is a member of that oneof. Extensions of a oneof should 9943 * not set this since the oneof to which they belong will be inferred based 9944 * on the extension range containing the extension's field number. 9945 * </pre> 9946 */ 9947 @Override 9948 public boolean hasOneofIndex() { 9949 return ((bitField0_ & 0x00000080) == 0x00000080); 9950 } 9951 /** 13001 * list. This field is a member of that oneof. 13002 * </pre> 13003 * 9952 13004 * <code>optional int32 oneof_index = 9;</code> 9953 * 13005 */ 13006 public int getOneofIndex() { 13007 return oneofIndex_; 13008 } 13009 /** 9954 13010 * <pre> 9955 13011 * If set, gives the index of a oneof in the containing type's oneof_decl 9956 * list. This field is a member of that oneof. Extensions of a oneof should 9957 * not set this since the oneof to which they belong will be inferred based 9958 * on the extension range containing the extension's field number. 9959 * </pre> 9960 */ 9961 @Override 9962 public int getOneofIndex() { 9963 return oneofIndex_; 9964 } 9965 /** 13012 * list. This field is a member of that oneof. 13013 * </pre> 13014 * 9966 13015 * <code>optional int32 oneof_index = 9;</code> 9967 *9968 * <pre>9969 * If set, gives the index of a oneof in the containing type's oneof_decl9970 * list. This field is a member of that oneof. Extensions of a oneof should9971 * not set this since the oneof to which they belong will be inferred based9972 * on the extension range containing the extension's field number.9973 * </pre>9974 13016 */ 9975 13017 public Builder setOneofIndex(int value) { … … 9980 13022 } 9981 13023 /** 13024 * <pre> 13025 * If set, gives the index of a oneof in the containing type's oneof_decl 13026 * list. This field is a member of that oneof. 13027 * </pre> 13028 * 9982 13029 * <code>optional int32 oneof_index = 9;</code> 9983 *9984 * <pre>9985 * If set, gives the index of a oneof in the containing type's oneof_decl9986 * list. This field is a member of that oneof. Extensions of a oneof should9987 * not set this since the oneof to which they belong will be inferred based9988 * on the extension range containing the extension's field number.9989 * </pre>9990 13030 */ 9991 13031 public Builder clearOneofIndex() { … … 9996 13036 } 9997 13037 9998 private com.google.protobuf.DescriptorProtos.FieldOptions options_ = com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); 9999 private com.google.protobuf.SingleFieldBuilder< 13038 private java.lang.Object jsonName_ = ""; 13039 /** 13040 * <pre> 13041 * JSON name of this field. The value is set by protocol compiler. If the 13042 * user has set a "json_name" option on this field, that option's value 13043 * will be used. Otherwise, it's deduced from the field's name by converting 13044 * it to camelCase. 13045 * </pre> 13046 * 13047 * <code>optional string json_name = 10;</code> 13048 */ 13049 public boolean hasJsonName() { 13050 return ((bitField0_ & 0x00000100) == 0x00000100); 13051 } 13052 /** 13053 * <pre> 13054 * JSON name of this field. The value is set by protocol compiler. If the 13055 * user has set a "json_name" option on this field, that option's value 13056 * will be used. Otherwise, it's deduced from the field's name by converting 13057 * it to camelCase. 13058 * </pre> 13059 * 13060 * <code>optional string json_name = 10;</code> 13061 */ 13062 public java.lang.String getJsonName() { 13063 java.lang.Object ref = jsonName_; 13064 if (!(ref instanceof java.lang.String)) { 13065 com.google.protobuf.ByteString bs = 13066 (com.google.protobuf.ByteString) ref; 13067 java.lang.String s = bs.toStringUtf8(); 13068 if (bs.isValidUtf8()) { 13069 jsonName_ = s; 13070 } 13071 return s; 13072 } else { 13073 return (java.lang.String) ref; 13074 } 13075 } 13076 /** 13077 * <pre> 13078 * JSON name of this field. The value is set by protocol compiler. If the 13079 * user has set a "json_name" option on this field, that option's value 13080 * will be used. Otherwise, it's deduced from the field's name by converting 13081 * it to camelCase. 13082 * </pre> 13083 * 13084 * <code>optional string json_name = 10;</code> 13085 */ 13086 public com.google.protobuf.ByteString 13087 getJsonNameBytes() { 13088 java.lang.Object ref = jsonName_; 13089 if (ref instanceof String) { 13090 com.google.protobuf.ByteString b = 13091 com.google.protobuf.ByteString.copyFromUtf8( 13092 (java.lang.String) ref); 13093 jsonName_ = b; 13094 return b; 13095 } else { 13096 return (com.google.protobuf.ByteString) ref; 13097 } 13098 } 13099 /** 13100 * <pre> 13101 * JSON name of this field. The value is set by protocol compiler. If the 13102 * user has set a "json_name" option on this field, that option's value 13103 * will be used. Otherwise, it's deduced from the field's name by converting 13104 * it to camelCase. 13105 * </pre> 13106 * 13107 * <code>optional string json_name = 10;</code> 13108 */ 13109 public Builder setJsonName( 13110 java.lang.String value) { 13111 if (value == null) { 13112 throw new NullPointerException(); 13113 } 13114 bitField0_ |= 0x00000100; 13115 jsonName_ = value; 13116 onChanged(); 13117 return this; 13118 } 13119 /** 13120 * <pre> 13121 * JSON name of this field. The value is set by protocol compiler. If the 13122 * user has set a "json_name" option on this field, that option's value 13123 * will be used. Otherwise, it's deduced from the field's name by converting 13124 * it to camelCase. 13125 * </pre> 13126 * 13127 * <code>optional string json_name = 10;</code> 13128 */ 13129 public Builder clearJsonName() { 13130 bitField0_ = (bitField0_ & ~0x00000100); 13131 jsonName_ = getDefaultInstance().getJsonName(); 13132 onChanged(); 13133 return this; 13134 } 13135 /** 13136 * <pre> 13137 * JSON name of this field. The value is set by protocol compiler. If the 13138 * user has set a "json_name" option on this field, that option's value 13139 * will be used. Otherwise, it's deduced from the field's name by converting 13140 * it to camelCase. 13141 * </pre> 13142 * 13143 * <code>optional string json_name = 10;</code> 13144 */ 13145 public Builder setJsonNameBytes( 13146 com.google.protobuf.ByteString value) { 13147 if (value == null) { 13148 throw new NullPointerException(); 13149 } 13150 bitField0_ |= 0x00000100; 13151 jsonName_ = value; 13152 onChanged(); 13153 return this; 13154 } 13155 13156 private com.google.protobuf.DescriptorProtos.FieldOptions options_ = null; 13157 private com.google.protobuf.SingleFieldBuilderV3< 10000 13158 com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder> optionsBuilder_; 10001 13159 /** 10002 13160 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 10003 13161 */ 10004 @Override 10005 public boolean hasOptions() { 10006 return ((bitField0_ & 0x00000100) == 0x00000100); 13162 public boolean hasOptions() { 13163 return ((bitField0_ & 0x00000200) == 0x00000200); 10007 13164 } 10008 13165 /** 10009 13166 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 10010 13167 */ 10011 @Override 10012 public com.google.protobuf.DescriptorProtos.FieldOptions getOptions() { 13168 public com.google.protobuf.DescriptorProtos.FieldOptions getOptions() { 10013 13169 if (optionsBuilder_ == null) { 10014 return options_ ;13170 return options_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : options_; 10015 13171 } else { 10016 13172 return optionsBuilder_.getMessage(); … … 10030 13186 optionsBuilder_.setMessage(value); 10031 13187 } 10032 bitField0_ |= 0x00000 100;13188 bitField0_ |= 0x00000200; 10033 13189 return this; 10034 13190 } … … 10044 13200 optionsBuilder_.setMessage(builderForValue.build()); 10045 13201 } 10046 bitField0_ |= 0x00000 100;13202 bitField0_ |= 0x00000200; 10047 13203 return this; 10048 13204 } … … 10052 13208 public Builder mergeOptions(com.google.protobuf.DescriptorProtos.FieldOptions value) { 10053 13209 if (optionsBuilder_ == null) { 10054 if (((bitField0_ & 0x00000100) == 0x00000100) && 13210 if (((bitField0_ & 0x00000200) == 0x00000200) && 13211 options_ != null && 10055 13212 options_ != com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance()) { 10056 13213 options_ = … … 10063 13220 optionsBuilder_.mergeFrom(value); 10064 13221 } 10065 bitField0_ |= 0x00000 100;13222 bitField0_ |= 0x00000200; 10066 13223 return this; 10067 13224 } … … 10071 13228 public Builder clearOptions() { 10072 13229 if (optionsBuilder_ == null) { 10073 options_ = com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance();13230 options_ = null; 10074 13231 onChanged(); 10075 13232 } else { 10076 13233 optionsBuilder_.clear(); 10077 13234 } 10078 bitField0_ = (bitField0_ & ~0x00000 100);13235 bitField0_ = (bitField0_ & ~0x00000200); 10079 13236 return this; 10080 13237 } … … 10083 13240 */ 10084 13241 public com.google.protobuf.DescriptorProtos.FieldOptions.Builder getOptionsBuilder() { 10085 bitField0_ |= 0x00000 100;13242 bitField0_ |= 0x00000200; 10086 13243 onChanged(); 10087 13244 return getOptionsFieldBuilder().getBuilder(); … … 10090 13247 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 10091 13248 */ 10092 @Override 10093 public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder() { 13249 public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder() { 10094 13250 if (optionsBuilder_ != null) { 10095 13251 return optionsBuilder_.getMessageOrBuilder(); 10096 13252 } else { 10097 return options_; 13253 return options_ == null ? 13254 com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : options_; 10098 13255 } 10099 13256 } … … 10101 13258 * <code>optional .google.protobuf.FieldOptions options = 8;</code> 10102 13259 */ 10103 private com.google.protobuf.SingleFieldBuilder <10104 com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder> 13260 private com.google.protobuf.SingleFieldBuilderV3< 13261 com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder> 10105 13262 getOptionsFieldBuilder() { 10106 13263 if (optionsBuilder_ == null) { 10107 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<>( 13264 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 13265 com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder>( 10108 13266 getOptions(), 10109 13267 getParentForChildren(), … … 10113 13271 return optionsBuilder_; 10114 13272 } 13273 public final Builder setUnknownFields( 13274 final com.google.protobuf.UnknownFieldSet unknownFields) { 13275 return super.setUnknownFields(unknownFields); 13276 } 13277 13278 public final Builder mergeUnknownFields( 13279 final com.google.protobuf.UnknownFieldSet unknownFields) { 13280 return super.mergeUnknownFields(unknownFields); 13281 } 13282 10115 13283 10116 13284 // @@protoc_insertion_point(builder_scope:google.protobuf.FieldDescriptorProto) 10117 13285 } 10118 13286 13287 // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto) 13288 private static final com.google.protobuf.DescriptorProtos.FieldDescriptorProto DEFAULT_INSTANCE; 10119 13289 static { 10120 defaultInstance = new FieldDescriptorProto(true); 10121 defaultInstance.initFields(); 10122 } 10123 10124 // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto) 13290 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.FieldDescriptorProto(); 13291 } 13292 13293 public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto getDefaultInstance() { 13294 return DEFAULT_INSTANCE; 13295 } 13296 13297 @java.lang.Deprecated public static final com.google.protobuf.Parser<FieldDescriptorProto> 13298 PARSER = new com.google.protobuf.AbstractParser<FieldDescriptorProto>() { 13299 public FieldDescriptorProto parsePartialFrom( 13300 com.google.protobuf.CodedInputStream input, 13301 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13302 throws com.google.protobuf.InvalidProtocolBufferException { 13303 return new FieldDescriptorProto(input, extensionRegistry); 13304 } 13305 }; 13306 13307 public static com.google.protobuf.Parser<FieldDescriptorProto> parser() { 13308 return PARSER; 13309 } 13310 13311 @java.lang.Override 13312 public com.google.protobuf.Parser<FieldDescriptorProto> getParserForType() { 13313 return PARSER; 13314 } 13315 13316 public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getDefaultInstanceForType() { 13317 return DEFAULT_INSTANCE; 13318 } 13319 10125 13320 } 10126 13321 … … 10142 13337 com.google.protobuf.ByteString 10143 13338 getNameBytes(); 13339 13340 /** 13341 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13342 */ 13343 boolean hasOptions(); 13344 /** 13345 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13346 */ 13347 com.google.protobuf.DescriptorProtos.OneofOptions getOptions(); 13348 /** 13349 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13350 */ 13351 com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder getOptionsOrBuilder(); 10144 13352 } 10145 13353 /** 10146 * Protobuf type {@code google.protobuf.OneofDescriptorProto}10147 *10148 13354 * <pre> 10149 13355 * Describes a oneof. 10150 13356 * </pre> 13357 * 13358 * Protobuf type {@code google.protobuf.OneofDescriptorProto} 10151 13359 */ 10152 public static final class OneofDescriptorProto extends10153 com.google.protobuf.GeneratedMessage implements13360 public static final class OneofDescriptorProto extends 13361 com.google.protobuf.GeneratedMessageV3 implements 10154 13362 // @@protoc_insertion_point(message_implements:google.protobuf.OneofDescriptorProto) 10155 13363 OneofDescriptorProtoOrBuilder { 13364 private static final long serialVersionUID = 0L; 10156 13365 // Use OneofDescriptorProto.newBuilder() to construct. 10157 private OneofDescriptorProto(com.google.protobuf.GeneratedMessage .Builder<?> builder) {13366 private OneofDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 10158 13367 super(builder); 10159 this.unknownFields = builder.getUnknownFields(); 10160 } 10161 private OneofDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 10162 10163 private static final OneofDescriptorProto defaultInstance; 10164 public static OneofDescriptorProto getDefaultInstance() { 10165 return defaultInstance; 10166 } 10167 10168 @Override 10169 public OneofDescriptorProto getDefaultInstanceForType() { 10170 return defaultInstance; 10171 } 10172 10173 private final com.google.protobuf.UnknownFieldSet unknownFields; 13368 } 13369 private OneofDescriptorProto() { 13370 name_ = ""; 13371 } 13372 10174 13373 @java.lang.Override 10175 13374 public final com.google.protobuf.UnknownFieldSet 10176 13375 getUnknownFields() { 10177 13376 return this.unknownFields; 10178 13377 } … … 10181 13380 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10182 13381 throws com.google.protobuf.InvalidProtocolBufferException { 10183 initFields();13382 this(); 10184 13383 int mutable_bitField0_ = 0; 10185 13384 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 10194 13393 break; 10195 13394 default: { 10196 if (!parseUnknownField( input, unknownFields,10197 13395 if (!parseUnknownField( 13396 input, unknownFields, extensionRegistry, tag)) { 10198 13397 done = true; 10199 13398 } … … 10206 13405 break; 10207 13406 } 13407 case 18: { 13408 com.google.protobuf.DescriptorProtos.OneofOptions.Builder subBuilder = null; 13409 if (((bitField0_ & 0x00000002) == 0x00000002)) { 13410 subBuilder = options_.toBuilder(); 13411 } 13412 options_ = input.readMessage(com.google.protobuf.DescriptorProtos.OneofOptions.PARSER, extensionRegistry); 13413 if (subBuilder != null) { 13414 subBuilder.mergeFrom(options_); 13415 options_ = subBuilder.buildPartial(); 13416 } 13417 bitField0_ |= 0x00000002; 13418 break; 13419 } 10208 13420 } 10209 13421 } … … 10212 13424 } catch (java.io.IOException e) { 10213 13425 throw new com.google.protobuf.InvalidProtocolBufferException( 10214 e .getMessage()).setUnfinishedMessage(this);13426 e).setUnfinishedMessage(this); 10215 13427 } finally { 10216 13428 this.unknownFields = unknownFields.build(); … … 10223 13435 } 10224 13436 10225 @Override 10226 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 13437 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10227 13438 internalGetFieldAccessorTable() { 10228 13439 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofDescriptorProto_fieldAccessorTable … … 10231 13442 } 10232 13443 10233 public static com.google.protobuf.Parser<OneofDescriptorProto> PARSER =10234 new com.google.protobuf.AbstractParser<OneofDescriptorProto>() {10235 @Override10236 public OneofDescriptorProto parsePartialFrom(10237 com.google.protobuf.CodedInputStream input,10238 com.google.protobuf.ExtensionRegistryLite extensionRegistry)10239 throws com.google.protobuf.InvalidProtocolBufferException {10240 return new OneofDescriptorProto(input, extensionRegistry);10241 }10242 };10243 10244 @java.lang.Override10245 public com.google.protobuf.Parser<OneofDescriptorProto> getParserForType() {10246 return PARSER;10247 }10248 10249 13444 private int bitField0_; 10250 13445 public static final int NAME_FIELD_NUMBER = 1; 10251 private java.lang.Object name_;13446 private volatile java.lang.Object name_; 10252 13447 /** 10253 13448 * <code>optional string name = 1;</code> 10254 13449 */ 10255 @Override 10256 public boolean hasName() { 13450 public boolean hasName() { 10257 13451 return ((bitField0_ & 0x00000001) == 0x00000001); 10258 13452 } … … 10260 13454 * <code>optional string name = 1;</code> 10261 13455 */ 10262 @Override 10263 public java.lang.String getName() { 13456 public java.lang.String getName() { 10264 13457 java.lang.Object ref = name_; 10265 13458 if (ref instanceof java.lang.String) { 10266 13459 return (java.lang.String) ref; 10267 13460 } else { 10268 com.google.protobuf.ByteString bs = 13461 com.google.protobuf.ByteString bs = 10269 13462 (com.google.protobuf.ByteString) ref; 10270 13463 java.lang.String s = bs.toStringUtf8(); … … 10278 13471 * <code>optional string name = 1;</code> 10279 13472 */ 10280 @Override 10281 public com.google.protobuf.ByteString 13473 public com.google.protobuf.ByteString 10282 13474 getNameBytes() { 10283 13475 java.lang.Object ref = name_; 10284 13476 if (ref instanceof java.lang.String) { 10285 com.google.protobuf.ByteString b = 13477 com.google.protobuf.ByteString b = 10286 13478 com.google.protobuf.ByteString.copyFromUtf8( 10287 13479 (java.lang.String) ref); … … 10293 13485 } 10294 13486 10295 private void initFields() { 10296 name_ = ""; 10297 } 13487 public static final int OPTIONS_FIELD_NUMBER = 2; 13488 private com.google.protobuf.DescriptorProtos.OneofOptions options_; 13489 /** 13490 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13491 */ 13492 public boolean hasOptions() { 13493 return ((bitField0_ & 0x00000002) == 0x00000002); 13494 } 13495 /** 13496 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13497 */ 13498 public com.google.protobuf.DescriptorProtos.OneofOptions getOptions() { 13499 return options_ == null ? com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance() : options_; 13500 } 13501 /** 13502 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13503 */ 13504 public com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder getOptionsOrBuilder() { 13505 return options_ == null ? com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance() : options_; 13506 } 13507 10298 13508 private byte memoizedIsInitialized = -1; 10299 @Override 10300 public final boolean isInitialized() { 13509 public final boolean isInitialized() { 10301 13510 byte isInitialized = memoizedIsInitialized; 10302 13511 if (isInitialized == 1) return true; 10303 13512 if (isInitialized == 0) return false; 10304 13513 13514 if (hasOptions()) { 13515 if (!getOptions().isInitialized()) { 13516 memoizedIsInitialized = 0; 13517 return false; 13518 } 13519 } 10305 13520 memoizedIsInitialized = 1; 10306 13521 return true; 10307 13522 } 10308 13523 10309 @Override 10310 public void writeTo(com.google.protobuf.CodedOutputStream output) 13524 public void writeTo(com.google.protobuf.CodedOutputStream output) 10311 13525 throws java.io.IOException { 10312 getSerializedSize();10313 13526 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10314 output.writeBytes(1, getNameBytes()); 10315 } 10316 getUnknownFields().writeTo(output); 10317 } 10318 10319 private int memoizedSerializedSize = -1; 10320 @Override 10321 public int getSerializedSize() { 10322 int size = memoizedSerializedSize; 13527 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 13528 } 13529 if (((bitField0_ & 0x00000002) == 0x00000002)) { 13530 output.writeMessage(2, getOptions()); 13531 } 13532 unknownFields.writeTo(output); 13533 } 13534 13535 public int getSerializedSize() { 13536 int size = memoizedSize; 10323 13537 if (size != -1) return size; 10324 13538 10325 13539 size = 0; 10326 13540 if (((bitField0_ & 0x00000001) == 0x00000001)) { 13541 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 13542 } 13543 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10327 13544 size += com.google.protobuf.CodedOutputStream 10328 .compute BytesSize(1, getNameBytes());10329 } 10330 size += getUnknownFields().getSerializedSize();10331 memoizedS erializedSize = size;13545 .computeMessageSize(2, getOptions()); 13546 } 13547 size += unknownFields.getSerializedSize(); 13548 memoizedSize = size; 10332 13549 return size; 10333 13550 } 10334 13551 10335 private static final long serialVersionUID = 0L;10336 13552 @java.lang.Override 10337 protected java.lang.Object writeReplace() 10338 throws java.io.ObjectStreamException { 10339 return super.writeReplace(); 10340 } 10341 13553 public boolean equals(final java.lang.Object obj) { 13554 if (obj == this) { 13555 return true; 13556 } 13557 if (!(obj instanceof com.google.protobuf.DescriptorProtos.OneofDescriptorProto)) { 13558 return super.equals(obj); 13559 } 13560 com.google.protobuf.DescriptorProtos.OneofDescriptorProto other = (com.google.protobuf.DescriptorProtos.OneofDescriptorProto) obj; 13561 13562 boolean result = true; 13563 result = result && (hasName() == other.hasName()); 13564 if (hasName()) { 13565 result = result && getName() 13566 .equals(other.getName()); 13567 } 13568 result = result && (hasOptions() == other.hasOptions()); 13569 if (hasOptions()) { 13570 result = result && getOptions() 13571 .equals(other.getOptions()); 13572 } 13573 result = result && unknownFields.equals(other.unknownFields); 13574 return result; 13575 } 13576 13577 @java.lang.Override 13578 public int hashCode() { 13579 if (memoizedHashCode != 0) { 13580 return memoizedHashCode; 13581 } 13582 int hash = 41; 13583 hash = (19 * hash) + getDescriptor().hashCode(); 13584 if (hasName()) { 13585 hash = (37 * hash) + NAME_FIELD_NUMBER; 13586 hash = (53 * hash) + getName().hashCode(); 13587 } 13588 if (hasOptions()) { 13589 hash = (37 * hash) + OPTIONS_FIELD_NUMBER; 13590 hash = (53 * hash) + getOptions().hashCode(); 13591 } 13592 hash = (29 * hash) + unknownFields.hashCode(); 13593 memoizedHashCode = hash; 13594 return hash; 13595 } 13596 13597 public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( 13598 java.nio.ByteBuffer data) 13599 throws com.google.protobuf.InvalidProtocolBufferException { 13600 return PARSER.parseFrom(data); 13601 } 13602 public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( 13603 java.nio.ByteBuffer data, 13604 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13605 throws com.google.protobuf.InvalidProtocolBufferException { 13606 return PARSER.parseFrom(data, extensionRegistry); 13607 } 10342 13608 public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( 10343 13609 com.google.protobuf.ByteString data) … … 10363 13629 public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom(java.io.InputStream input) 10364 13630 throws java.io.IOException { 10365 return PARSER.parseFrom(input); 13631 return com.google.protobuf.GeneratedMessageV3 13632 .parseWithIOException(PARSER, input); 10366 13633 } 10367 13634 public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( … … 10369 13636 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10370 13637 throws java.io.IOException { 10371 return PARSER.parseFrom(input, extensionRegistry); 13638 return com.google.protobuf.GeneratedMessageV3 13639 .parseWithIOException(PARSER, input, extensionRegistry); 10372 13640 } 10373 13641 public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseDelimitedFrom(java.io.InputStream input) 10374 13642 throws java.io.IOException { 10375 return PARSER.parseDelimitedFrom(input); 13643 return com.google.protobuf.GeneratedMessageV3 13644 .parseDelimitedWithIOException(PARSER, input); 10376 13645 } 10377 13646 public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseDelimitedFrom( … … 10379 13648 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10380 13649 throws java.io.IOException { 10381 return PARSER.parseDelimitedFrom(input, extensionRegistry); 13650 return com.google.protobuf.GeneratedMessageV3 13651 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 10382 13652 } 10383 13653 public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( 10384 13654 com.google.protobuf.CodedInputStream input) 10385 13655 throws java.io.IOException { 10386 return PARSER.parseFrom(input); 13656 return com.google.protobuf.GeneratedMessageV3 13657 .parseWithIOException(PARSER, input); 10387 13658 } 10388 13659 public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto parseFrom( … … 10390 13661 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10391 13662 throws java.io.IOException { 10392 return PARSER.parseFrom(input, extensionRegistry); 10393 } 10394 10395 public static Builder newBuilder() { return Builder.create(); } 10396 @Override 10397 public Builder newBuilderForType() { return newBuilder(); } 13663 return com.google.protobuf.GeneratedMessageV3 13664 .parseWithIOException(PARSER, input, extensionRegistry); 13665 } 13666 13667 public Builder newBuilderForType() { return newBuilder(); } 13668 public static Builder newBuilder() { 13669 return DEFAULT_INSTANCE.toBuilder(); 13670 } 10398 13671 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.OneofDescriptorProto prototype) { 10399 return newBuilder().mergeFrom(prototype); 10400 } 10401 @Override 10402 public Builder toBuilder() { return newBuilder(this); } 13672 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 13673 } 13674 public Builder toBuilder() { 13675 return this == DEFAULT_INSTANCE 13676 ? new Builder() : new Builder().mergeFrom(this); 13677 } 10403 13678 10404 13679 @java.lang.Override 10405 13680 protected Builder newBuilderForType( 10406 com.google.protobuf.GeneratedMessage .BuilderParent parent) {13681 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 10407 13682 Builder builder = new Builder(parent); 10408 13683 return builder; 10409 13684 } 10410 13685 /** 10411 * Protobuf type {@code google.protobuf.OneofDescriptorProto}10412 *10413 13686 * <pre> 10414 13687 * Describes a oneof. 10415 13688 * </pre> 13689 * 13690 * Protobuf type {@code google.protobuf.OneofDescriptorProto} 10416 13691 */ 10417 13692 public static final class Builder extends 10418 com.google.protobuf.GeneratedMessage .Builder<Builder> implements13693 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 10419 13694 // @@protoc_insertion_point(builder_implements:google.protobuf.OneofDescriptorProto) 10420 13695 com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder { … … 10424 13699 } 10425 13700 10426 @Override 10427 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 13701 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10428 13702 internalGetFieldAccessorTable() { 10429 13703 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofDescriptorProto_fieldAccessorTable … … 10438 13712 10439 13713 private Builder( 10440 com.google.protobuf.GeneratedMessage .BuilderParent parent) {13714 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 10441 13715 super(parent); 10442 13716 maybeForceBuilderInitialization(); 10443 13717 } 10444 13718 private void maybeForceBuilderInitialization() { 10445 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 10446 } 10447 } 10448 private static Builder create() { 10449 return new Builder(); 10450 } 10451 10452 @Override 10453 public Builder clear() { 13719 if (com.google.protobuf.GeneratedMessageV3 13720 .alwaysUseFieldBuilders) { 13721 getOptionsFieldBuilder(); 13722 } 13723 } 13724 public Builder clear() { 10454 13725 super.clear(); 10455 13726 name_ = ""; 10456 13727 bitField0_ = (bitField0_ & ~0x00000001); 10457 return this;10458 }10459 10460 @Override10461 public Builder clone() { 10462 return create().mergeFrom(buildPartial());10463 }10464 10465 @Override 10466 13728 if (optionsBuilder_ == null) { 13729 options_ = null; 13730 } else { 13731 optionsBuilder_.clear(); 13732 } 13733 bitField0_ = (bitField0_ & ~0x00000002); 13734 return this; 13735 } 13736 13737 public com.google.protobuf.Descriptors.Descriptor 10467 13738 getDescriptorForType() { 10468 13739 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofDescriptorProto_descriptor; 10469 13740 } 10470 13741 10471 @Override 10472 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getDefaultInstanceForType() { 13742 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getDefaultInstanceForType() { 10473 13743 return com.google.protobuf.DescriptorProtos.OneofDescriptorProto.getDefaultInstance(); 10474 13744 } 10475 13745 10476 @Override 10477 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto build() { 13746 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto build() { 10478 13747 com.google.protobuf.DescriptorProtos.OneofDescriptorProto result = buildPartial(); 10479 13748 if (!result.isInitialized()) { … … 10483 13752 } 10484 13753 10485 @Override 10486 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto buildPartial() { 13754 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto buildPartial() { 10487 13755 com.google.protobuf.DescriptorProtos.OneofDescriptorProto result = new com.google.protobuf.DescriptorProtos.OneofDescriptorProto(this); 10488 13756 int from_bitField0_ = bitField0_; … … 10492 13760 } 10493 13761 result.name_ = name_; 13762 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 13763 to_bitField0_ |= 0x00000002; 13764 } 13765 if (optionsBuilder_ == null) { 13766 result.options_ = options_; 13767 } else { 13768 result.options_ = optionsBuilder_.build(); 13769 } 10494 13770 result.bitField0_ = to_bitField0_; 10495 13771 onBuilt(); … … 10497 13773 } 10498 13774 10499 @Override 10500 public Builder mergeFrom(com.google.protobuf.Message other) { 13775 public Builder clone() { 13776 return (Builder) super.clone(); 13777 } 13778 public Builder setField( 13779 com.google.protobuf.Descriptors.FieldDescriptor field, 13780 java.lang.Object value) { 13781 return (Builder) super.setField(field, value); 13782 } 13783 public Builder clearField( 13784 com.google.protobuf.Descriptors.FieldDescriptor field) { 13785 return (Builder) super.clearField(field); 13786 } 13787 public Builder clearOneof( 13788 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 13789 return (Builder) super.clearOneof(oneof); 13790 } 13791 public Builder setRepeatedField( 13792 com.google.protobuf.Descriptors.FieldDescriptor field, 13793 int index, java.lang.Object value) { 13794 return (Builder) super.setRepeatedField(field, index, value); 13795 } 13796 public Builder addRepeatedField( 13797 com.google.protobuf.Descriptors.FieldDescriptor field, 13798 java.lang.Object value) { 13799 return (Builder) super.addRepeatedField(field, value); 13800 } 13801 public Builder mergeFrom(com.google.protobuf.Message other) { 10501 13802 if (other instanceof com.google.protobuf.DescriptorProtos.OneofDescriptorProto) { 10502 13803 return mergeFrom((com.google.protobuf.DescriptorProtos.OneofDescriptorProto)other); … … 10514 13815 onChanged(); 10515 13816 } 10516 this.mergeUnknownFields(other.getUnknownFields()); 10517 return this; 10518 } 10519 10520 @Override 10521 public final boolean isInitialized() { 13817 if (other.hasOptions()) { 13818 mergeOptions(other.getOptions()); 13819 } 13820 this.mergeUnknownFields(other.unknownFields); 13821 onChanged(); 13822 return this; 13823 } 13824 13825 public final boolean isInitialized() { 13826 if (hasOptions()) { 13827 if (!getOptions().isInitialized()) { 13828 return false; 13829 } 13830 } 10522 13831 return true; 10523 13832 } 10524 13833 10525 @Override 10526 public Builder mergeFrom( 13834 public Builder mergeFrom( 10527 13835 com.google.protobuf.CodedInputStream input, 10528 13836 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 10533 13841 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10534 13842 parsedMessage = (com.google.protobuf.DescriptorProtos.OneofDescriptorProto) e.getUnfinishedMessage(); 10535 throw e ;13843 throw e.unwrapIOException(); 10536 13844 } finally { 10537 13845 if (parsedMessage != null) { … … 10547 13855 * <code>optional string name = 1;</code> 10548 13856 */ 10549 @Override 10550 public boolean hasName() { 13857 public boolean hasName() { 10551 13858 return ((bitField0_ & 0x00000001) == 0x00000001); 10552 13859 } … … 10554 13861 * <code>optional string name = 1;</code> 10555 13862 */ 10556 @Override 10557 public java.lang.String getName() { 13863 public java.lang.String getName() { 10558 13864 java.lang.Object ref = name_; 10559 13865 if (!(ref instanceof java.lang.String)) { … … 10572 13878 * <code>optional string name = 1;</code> 10573 13879 */ 10574 @Override 10575 public com.google.protobuf.ByteString 13880 public com.google.protobuf.ByteString 10576 13881 getNameBytes() { 10577 13882 java.lang.Object ref = name_; 10578 13883 if (ref instanceof String) { 10579 com.google.protobuf.ByteString b = 13884 com.google.protobuf.ByteString b = 10580 13885 com.google.protobuf.ByteString.copyFromUtf8( 10581 13886 (java.lang.String) ref); … … 10622 13927 } 10623 13928 13929 private com.google.protobuf.DescriptorProtos.OneofOptions options_ = null; 13930 private com.google.protobuf.SingleFieldBuilderV3< 13931 com.google.protobuf.DescriptorProtos.OneofOptions, com.google.protobuf.DescriptorProtos.OneofOptions.Builder, com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder> optionsBuilder_; 13932 /** 13933 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13934 */ 13935 public boolean hasOptions() { 13936 return ((bitField0_ & 0x00000002) == 0x00000002); 13937 } 13938 /** 13939 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13940 */ 13941 public com.google.protobuf.DescriptorProtos.OneofOptions getOptions() { 13942 if (optionsBuilder_ == null) { 13943 return options_ == null ? com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance() : options_; 13944 } else { 13945 return optionsBuilder_.getMessage(); 13946 } 13947 } 13948 /** 13949 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13950 */ 13951 public Builder setOptions(com.google.protobuf.DescriptorProtos.OneofOptions value) { 13952 if (optionsBuilder_ == null) { 13953 if (value == null) { 13954 throw new NullPointerException(); 13955 } 13956 options_ = value; 13957 onChanged(); 13958 } else { 13959 optionsBuilder_.setMessage(value); 13960 } 13961 bitField0_ |= 0x00000002; 13962 return this; 13963 } 13964 /** 13965 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13966 */ 13967 public Builder setOptions( 13968 com.google.protobuf.DescriptorProtos.OneofOptions.Builder builderForValue) { 13969 if (optionsBuilder_ == null) { 13970 options_ = builderForValue.build(); 13971 onChanged(); 13972 } else { 13973 optionsBuilder_.setMessage(builderForValue.build()); 13974 } 13975 bitField0_ |= 0x00000002; 13976 return this; 13977 } 13978 /** 13979 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 13980 */ 13981 public Builder mergeOptions(com.google.protobuf.DescriptorProtos.OneofOptions value) { 13982 if (optionsBuilder_ == null) { 13983 if (((bitField0_ & 0x00000002) == 0x00000002) && 13984 options_ != null && 13985 options_ != com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance()) { 13986 options_ = 13987 com.google.protobuf.DescriptorProtos.OneofOptions.newBuilder(options_).mergeFrom(value).buildPartial(); 13988 } else { 13989 options_ = value; 13990 } 13991 onChanged(); 13992 } else { 13993 optionsBuilder_.mergeFrom(value); 13994 } 13995 bitField0_ |= 0x00000002; 13996 return this; 13997 } 13998 /** 13999 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 14000 */ 14001 public Builder clearOptions() { 14002 if (optionsBuilder_ == null) { 14003 options_ = null; 14004 onChanged(); 14005 } else { 14006 optionsBuilder_.clear(); 14007 } 14008 bitField0_ = (bitField0_ & ~0x00000002); 14009 return this; 14010 } 14011 /** 14012 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 14013 */ 14014 public com.google.protobuf.DescriptorProtos.OneofOptions.Builder getOptionsBuilder() { 14015 bitField0_ |= 0x00000002; 14016 onChanged(); 14017 return getOptionsFieldBuilder().getBuilder(); 14018 } 14019 /** 14020 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 14021 */ 14022 public com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder getOptionsOrBuilder() { 14023 if (optionsBuilder_ != null) { 14024 return optionsBuilder_.getMessageOrBuilder(); 14025 } else { 14026 return options_ == null ? 14027 com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance() : options_; 14028 } 14029 } 14030 /** 14031 * <code>optional .google.protobuf.OneofOptions options = 2;</code> 14032 */ 14033 private com.google.protobuf.SingleFieldBuilderV3< 14034 com.google.protobuf.DescriptorProtos.OneofOptions, com.google.protobuf.DescriptorProtos.OneofOptions.Builder, com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder> 14035 getOptionsFieldBuilder() { 14036 if (optionsBuilder_ == null) { 14037 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 14038 com.google.protobuf.DescriptorProtos.OneofOptions, com.google.protobuf.DescriptorProtos.OneofOptions.Builder, com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder>( 14039 getOptions(), 14040 getParentForChildren(), 14041 isClean()); 14042 options_ = null; 14043 } 14044 return optionsBuilder_; 14045 } 14046 public final Builder setUnknownFields( 14047 final com.google.protobuf.UnknownFieldSet unknownFields) { 14048 return super.setUnknownFields(unknownFields); 14049 } 14050 14051 public final Builder mergeUnknownFields( 14052 final com.google.protobuf.UnknownFieldSet unknownFields) { 14053 return super.mergeUnknownFields(unknownFields); 14054 } 14055 14056 10624 14057 // @@protoc_insertion_point(builder_scope:google.protobuf.OneofDescriptorProto) 10625 14058 } 10626 14059 14060 // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto) 14061 private static final com.google.protobuf.DescriptorProtos.OneofDescriptorProto DEFAULT_INSTANCE; 10627 14062 static { 10628 defaultInstance = new OneofDescriptorProto(true); 10629 defaultInstance.initFields(); 10630 } 10631 10632 // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto) 14063 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.OneofDescriptorProto(); 14064 } 14065 14066 public static com.google.protobuf.DescriptorProtos.OneofDescriptorProto getDefaultInstance() { 14067 return DEFAULT_INSTANCE; 14068 } 14069 14070 @java.lang.Deprecated public static final com.google.protobuf.Parser<OneofDescriptorProto> 14071 PARSER = new com.google.protobuf.AbstractParser<OneofDescriptorProto>() { 14072 public OneofDescriptorProto parsePartialFrom( 14073 com.google.protobuf.CodedInputStream input, 14074 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14075 throws com.google.protobuf.InvalidProtocolBufferException { 14076 return new OneofDescriptorProto(input, extensionRegistry); 14077 } 14078 }; 14079 14080 public static com.google.protobuf.Parser<OneofDescriptorProto> parser() { 14081 return PARSER; 14082 } 14083 14084 @java.lang.Override 14085 public com.google.protobuf.Parser<OneofDescriptorProto> getParserForType() { 14086 return PARSER; 14087 } 14088 14089 public com.google.protobuf.DescriptorProtos.OneofDescriptorProto getDefaultInstanceForType() { 14090 return DEFAULT_INSTANCE; 14091 } 14092 10633 14093 } 10634 14094 … … 10654 14114 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10655 14115 */ 10656 java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> 14116 java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> 10657 14117 getValueList(); 10658 14118 /** … … 10667 14127 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10668 14128 */ 10669 java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 14129 java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 10670 14130 getValueOrBuilderList(); 10671 14131 /** … … 10689 14149 } 10690 14150 /** 10691 * Protobuf type {@code google.protobuf.EnumDescriptorProto}10692 *10693 14151 * <pre> 10694 14152 * Describes an enum type. 10695 14153 * </pre> 14154 * 14155 * Protobuf type {@code google.protobuf.EnumDescriptorProto} 10696 14156 */ 10697 public static final class EnumDescriptorProto extends10698 com.google.protobuf.GeneratedMessage implements14157 public static final class EnumDescriptorProto extends 14158 com.google.protobuf.GeneratedMessageV3 implements 10699 14159 // @@protoc_insertion_point(message_implements:google.protobuf.EnumDescriptorProto) 10700 14160 EnumDescriptorProtoOrBuilder { 14161 private static final long serialVersionUID = 0L; 10701 14162 // Use EnumDescriptorProto.newBuilder() to construct. 10702 private EnumDescriptorProto(com.google.protobuf.GeneratedMessage .Builder<?> builder) {14163 private EnumDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 10703 14164 super(builder); 10704 this.unknownFields = builder.getUnknownFields(); 10705 } 10706 private EnumDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 10707 10708 private static final EnumDescriptorProto defaultInstance; 10709 public static EnumDescriptorProto getDefaultInstance() { 10710 return defaultInstance; 10711 } 10712 10713 @Override 10714 public EnumDescriptorProto getDefaultInstanceForType() { 10715 return defaultInstance; 10716 } 10717 10718 private final com.google.protobuf.UnknownFieldSet unknownFields; 14165 } 14166 private EnumDescriptorProto() { 14167 name_ = ""; 14168 value_ = java.util.Collections.emptyList(); 14169 } 14170 10719 14171 @java.lang.Override 10720 14172 public final com.google.protobuf.UnknownFieldSet 10721 14173 getUnknownFields() { 10722 14174 return this.unknownFields; 10723 14175 } … … 10726 14178 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10727 14179 throws com.google.protobuf.InvalidProtocolBufferException { 10728 initFields();14180 this(); 10729 14181 int mutable_bitField0_ = 0; 10730 14182 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 10739 14191 break; 10740 14192 default: { 10741 if (!parseUnknownField( input, unknownFields,10742 14193 if (!parseUnknownField( 14194 input, unknownFields, extensionRegistry, tag)) { 10743 14195 done = true; 10744 14196 } … … 10753 14205 case 18: { 10754 14206 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 10755 value_ = new java.util.ArrayList< >();14207 value_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto>(); 10756 14208 mutable_bitField0_ |= 0x00000002; 10757 14209 } 10758 value_.add(input.readMessage(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.PARSER, extensionRegistry)); 14210 value_.add( 14211 input.readMessage(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.PARSER, extensionRegistry)); 10759 14212 break; 10760 14213 } … … 10778 14231 } catch (java.io.IOException e) { 10779 14232 throw new com.google.protobuf.InvalidProtocolBufferException( 10780 e .getMessage()).setUnfinishedMessage(this);14233 e).setUnfinishedMessage(this); 10781 14234 } finally { 10782 14235 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { … … 10792 14245 } 10793 14246 10794 @Override 10795 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 14247 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 10796 14248 internalGetFieldAccessorTable() { 10797 14249 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable … … 10800 14252 } 10801 14253 10802 public static com.google.protobuf.Parser<EnumDescriptorProto> PARSER =10803 new com.google.protobuf.AbstractParser<EnumDescriptorProto>() {10804 @Override10805 public EnumDescriptorProto parsePartialFrom(10806 com.google.protobuf.CodedInputStream input,10807 com.google.protobuf.ExtensionRegistryLite extensionRegistry)10808 throws com.google.protobuf.InvalidProtocolBufferException {10809 return new EnumDescriptorProto(input, extensionRegistry);10810 }10811 };10812 10813 @java.lang.Override10814 public com.google.protobuf.Parser<EnumDescriptorProto> getParserForType() {10815 return PARSER;10816 }10817 10818 14254 private int bitField0_; 10819 14255 public static final int NAME_FIELD_NUMBER = 1; 10820 private java.lang.Object name_;14256 private volatile java.lang.Object name_; 10821 14257 /** 10822 14258 * <code>optional string name = 1;</code> 10823 14259 */ 10824 @Override 10825 public boolean hasName() { 14260 public boolean hasName() { 10826 14261 return ((bitField0_ & 0x00000001) == 0x00000001); 10827 14262 } … … 10829 14264 * <code>optional string name = 1;</code> 10830 14265 */ 10831 @Override 10832 public java.lang.String getName() { 14266 public java.lang.String getName() { 10833 14267 java.lang.Object ref = name_; 10834 14268 if (ref instanceof java.lang.String) { 10835 14269 return (java.lang.String) ref; 10836 14270 } else { 10837 com.google.protobuf.ByteString bs = 14271 com.google.protobuf.ByteString bs = 10838 14272 (com.google.protobuf.ByteString) ref; 10839 14273 java.lang.String s = bs.toStringUtf8(); … … 10847 14281 * <code>optional string name = 1;</code> 10848 14282 */ 10849 @Override 10850 public com.google.protobuf.ByteString 14283 public com.google.protobuf.ByteString 10851 14284 getNameBytes() { 10852 14285 java.lang.Object ref = name_; 10853 14286 if (ref instanceof java.lang.String) { 10854 com.google.protobuf.ByteString b = 14287 com.google.protobuf.ByteString b = 10855 14288 com.google.protobuf.ByteString.copyFromUtf8( 10856 14289 (java.lang.String) ref); … … 10867 14300 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10868 14301 */ 10869 @Override 10870 public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> getValueList() { 14302 public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> getValueList() { 10871 14303 return value_; 10872 14304 } … … 10874 14306 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10875 14307 */ 10876 @Override 10877 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 14308 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 10878 14309 getValueOrBuilderList() { 10879 14310 return value_; … … 10882 14313 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10883 14314 */ 10884 @Override 10885 public int getValueCount() { 14315 public int getValueCount() { 10886 14316 return value_.size(); 10887 14317 } … … 10889 14319 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10890 14320 */ 10891 @Override 10892 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index) { 14321 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index) { 10893 14322 return value_.get(index); 10894 14323 } … … 10896 14325 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 10897 14326 */ 10898 @Override 10899 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( 14327 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( 10900 14328 int index) { 10901 14329 return value_.get(index); … … 10907 14335 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10908 14336 */ 10909 @Override 10910 public boolean hasOptions() { 14337 public boolean hasOptions() { 10911 14338 return ((bitField0_ & 0x00000002) == 0x00000002); 10912 14339 } … … 10914 14341 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10915 14342 */ 10916 @Override 10917 public com.google.protobuf.DescriptorProtos.EnumOptions getOptions() { 10918 return options_; 14343 public com.google.protobuf.DescriptorProtos.EnumOptions getOptions() { 14344 return options_ == null ? com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance() : options_; 10919 14345 } 10920 14346 /** 10921 14347 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 10922 14348 */ 10923 @Override 10924 public com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder() { 10925 return options_; 10926 } 10927 10928 private void initFields() { 10929 name_ = ""; 10930 value_ = java.util.Collections.emptyList(); 10931 options_ = com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance(); 10932 } 14349 public com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder() { 14350 return options_ == null ? com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance() : options_; 14351 } 14352 10933 14353 private byte memoizedIsInitialized = -1; 10934 @Override 10935 public final boolean isInitialized() { 14354 public final boolean isInitialized() { 10936 14355 byte isInitialized = memoizedIsInitialized; 10937 14356 if (isInitialized == 1) return true; … … 10954 14373 } 10955 14374 10956 @Override 10957 public void writeTo(com.google.protobuf.CodedOutputStream output) 14375 public void writeTo(com.google.protobuf.CodedOutputStream output) 10958 14376 throws java.io.IOException { 10959 getSerializedSize();10960 14377 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10961 output.writeBytes(1, getNameBytes());14378 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 10962 14379 } 10963 14380 for (int i = 0; i < value_.size(); i++) { … … 10965 14382 } 10966 14383 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10967 output.writeMessage(3, options_); 10968 } 10969 getUnknownFields().writeTo(output); 10970 } 10971 10972 private int memoizedSerializedSize = -1; 10973 @Override 10974 public int getSerializedSize() { 10975 int size = memoizedSerializedSize; 14384 output.writeMessage(3, getOptions()); 14385 } 14386 unknownFields.writeTo(output); 14387 } 14388 14389 public int getSerializedSize() { 14390 int size = memoizedSize; 10976 14391 if (size != -1) return size; 10977 14392 10978 14393 size = 0; 10979 14394 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10980 size += com.google.protobuf.CodedOutputStream 10981 .computeBytesSize(1, getNameBytes()); 14395 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 10982 14396 } 10983 14397 for (int i = 0; i < value_.size(); i++) { … … 10987 14401 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10988 14402 size += com.google.protobuf.CodedOutputStream 10989 .computeMessageSize(3, options_);10990 } 10991 size += getUnknownFields().getSerializedSize();10992 memoizedS erializedSize = size;14403 .computeMessageSize(3, getOptions()); 14404 } 14405 size += unknownFields.getSerializedSize(); 14406 memoizedSize = size; 10993 14407 return size; 10994 14408 } 10995 14409 10996 private static final long serialVersionUID = 0L;10997 14410 @java.lang.Override 10998 protected java.lang.Object writeReplace() 10999 throws java.io.ObjectStreamException { 11000 return super.writeReplace(); 11001 } 11002 14411 public boolean equals(final java.lang.Object obj) { 14412 if (obj == this) { 14413 return true; 14414 } 14415 if (!(obj instanceof com.google.protobuf.DescriptorProtos.EnumDescriptorProto)) { 14416 return super.equals(obj); 14417 } 14418 com.google.protobuf.DescriptorProtos.EnumDescriptorProto other = (com.google.protobuf.DescriptorProtos.EnumDescriptorProto) obj; 14419 14420 boolean result = true; 14421 result = result && (hasName() == other.hasName()); 14422 if (hasName()) { 14423 result = result && getName() 14424 .equals(other.getName()); 14425 } 14426 result = result && getValueList() 14427 .equals(other.getValueList()); 14428 result = result && (hasOptions() == other.hasOptions()); 14429 if (hasOptions()) { 14430 result = result && getOptions() 14431 .equals(other.getOptions()); 14432 } 14433 result = result && unknownFields.equals(other.unknownFields); 14434 return result; 14435 } 14436 14437 @java.lang.Override 14438 public int hashCode() { 14439 if (memoizedHashCode != 0) { 14440 return memoizedHashCode; 14441 } 14442 int hash = 41; 14443 hash = (19 * hash) + getDescriptor().hashCode(); 14444 if (hasName()) { 14445 hash = (37 * hash) + NAME_FIELD_NUMBER; 14446 hash = (53 * hash) + getName().hashCode(); 14447 } 14448 if (getValueCount() > 0) { 14449 hash = (37 * hash) + VALUE_FIELD_NUMBER; 14450 hash = (53 * hash) + getValueList().hashCode(); 14451 } 14452 if (hasOptions()) { 14453 hash = (37 * hash) + OPTIONS_FIELD_NUMBER; 14454 hash = (53 * hash) + getOptions().hashCode(); 14455 } 14456 hash = (29 * hash) + unknownFields.hashCode(); 14457 memoizedHashCode = hash; 14458 return hash; 14459 } 14460 14461 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( 14462 java.nio.ByteBuffer data) 14463 throws com.google.protobuf.InvalidProtocolBufferException { 14464 return PARSER.parseFrom(data); 14465 } 14466 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( 14467 java.nio.ByteBuffer data, 14468 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14469 throws com.google.protobuf.InvalidProtocolBufferException { 14470 return PARSER.parseFrom(data, extensionRegistry); 14471 } 11003 14472 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( 11004 14473 com.google.protobuf.ByteString data) … … 11024 14493 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom(java.io.InputStream input) 11025 14494 throws java.io.IOException { 11026 return PARSER.parseFrom(input); 14495 return com.google.protobuf.GeneratedMessageV3 14496 .parseWithIOException(PARSER, input); 11027 14497 } 11028 14498 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( … … 11030 14500 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11031 14501 throws java.io.IOException { 11032 return PARSER.parseFrom(input, extensionRegistry); 14502 return com.google.protobuf.GeneratedMessageV3 14503 .parseWithIOException(PARSER, input, extensionRegistry); 11033 14504 } 11034 14505 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseDelimitedFrom(java.io.InputStream input) 11035 14506 throws java.io.IOException { 11036 return PARSER.parseDelimitedFrom(input); 14507 return com.google.protobuf.GeneratedMessageV3 14508 .parseDelimitedWithIOException(PARSER, input); 11037 14509 } 11038 14510 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseDelimitedFrom( … … 11040 14512 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11041 14513 throws java.io.IOException { 11042 return PARSER.parseDelimitedFrom(input, extensionRegistry); 14514 return com.google.protobuf.GeneratedMessageV3 14515 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 11043 14516 } 11044 14517 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( 11045 14518 com.google.protobuf.CodedInputStream input) 11046 14519 throws java.io.IOException { 11047 return PARSER.parseFrom(input); 14520 return com.google.protobuf.GeneratedMessageV3 14521 .parseWithIOException(PARSER, input); 11048 14522 } 11049 14523 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto parseFrom( … … 11051 14525 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11052 14526 throws java.io.IOException { 11053 return PARSER.parseFrom(input, extensionRegistry); 11054 } 11055 11056 public static Builder newBuilder() { return Builder.create(); } 11057 @Override 11058 public Builder newBuilderForType() { return newBuilder(); } 14527 return com.google.protobuf.GeneratedMessageV3 14528 .parseWithIOException(PARSER, input, extensionRegistry); 14529 } 14530 14531 public Builder newBuilderForType() { return newBuilder(); } 14532 public static Builder newBuilder() { 14533 return DEFAULT_INSTANCE.toBuilder(); 14534 } 11059 14535 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumDescriptorProto prototype) { 11060 return newBuilder().mergeFrom(prototype); 11061 } 11062 @Override 11063 public Builder toBuilder() { return newBuilder(this); } 14536 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 14537 } 14538 public Builder toBuilder() { 14539 return this == DEFAULT_INSTANCE 14540 ? new Builder() : new Builder().mergeFrom(this); 14541 } 11064 14542 11065 14543 @java.lang.Override 11066 14544 protected Builder newBuilderForType( 11067 com.google.protobuf.GeneratedMessage .BuilderParent parent) {14545 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 11068 14546 Builder builder = new Builder(parent); 11069 14547 return builder; 11070 14548 } 11071 14549 /** 11072 * Protobuf type {@code google.protobuf.EnumDescriptorProto}11073 *11074 14550 * <pre> 11075 14551 * Describes an enum type. 11076 14552 * </pre> 14553 * 14554 * Protobuf type {@code google.protobuf.EnumDescriptorProto} 11077 14555 */ 11078 14556 public static final class Builder extends 11079 com.google.protobuf.GeneratedMessage .Builder<Builder> implements14557 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 11080 14558 // @@protoc_insertion_point(builder_implements:google.protobuf.EnumDescriptorProto) 11081 14559 com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder { … … 11085 14563 } 11086 14564 11087 @Override 11088 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 14565 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 11089 14566 internalGetFieldAccessorTable() { 11090 14567 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable … … 11099 14576 11100 14577 private Builder( 11101 com.google.protobuf.GeneratedMessage .BuilderParent parent) {14578 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 11102 14579 super(parent); 11103 14580 maybeForceBuilderInitialization(); 11104 14581 } 11105 14582 private void maybeForceBuilderInitialization() { 11106 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 14583 if (com.google.protobuf.GeneratedMessageV3 14584 .alwaysUseFieldBuilders) { 11107 14585 getValueFieldBuilder(); 11108 14586 getOptionsFieldBuilder(); 11109 14587 } 11110 14588 } 11111 private static Builder create() { 11112 return new Builder(); 11113 } 11114 11115 @Override 11116 public Builder clear() { 14589 public Builder clear() { 11117 14590 super.clear(); 11118 14591 name_ = ""; … … 11125 14598 } 11126 14599 if (optionsBuilder_ == null) { 11127 options_ = com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance();14600 options_ = null; 11128 14601 } else { 11129 14602 optionsBuilder_.clear(); … … 11133 14606 } 11134 14607 11135 @Override 11136 public Builder clone() { 11137 return create().mergeFrom(buildPartial()); 11138 } 11139 11140 @Override 11141 public com.google.protobuf.Descriptors.Descriptor 14608 public com.google.protobuf.Descriptors.Descriptor 11142 14609 getDescriptorForType() { 11143 14610 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumDescriptorProto_descriptor; 11144 14611 } 11145 14612 11146 @Override 11147 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getDefaultInstanceForType() { 14613 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getDefaultInstanceForType() { 11148 14614 return com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance(); 11149 14615 } 11150 14616 11151 @Override 11152 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto build() { 14617 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto build() { 11153 14618 com.google.protobuf.DescriptorProtos.EnumDescriptorProto result = buildPartial(); 11154 14619 if (!result.isInitialized()) { … … 11158 14623 } 11159 14624 11160 @Override 11161 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto buildPartial() { 14625 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto buildPartial() { 11162 14626 com.google.protobuf.DescriptorProtos.EnumDescriptorProto result = new com.google.protobuf.DescriptorProtos.EnumDescriptorProto(this); 11163 14627 int from_bitField0_ = bitField0_; … … 11189 14653 } 11190 14654 11191 @Override 11192 public Builder mergeFrom(com.google.protobuf.Message other) { 14655 public Builder clone() { 14656 return (Builder) super.clone(); 14657 } 14658 public Builder setField( 14659 com.google.protobuf.Descriptors.FieldDescriptor field, 14660 java.lang.Object value) { 14661 return (Builder) super.setField(field, value); 14662 } 14663 public Builder clearField( 14664 com.google.protobuf.Descriptors.FieldDescriptor field) { 14665 return (Builder) super.clearField(field); 14666 } 14667 public Builder clearOneof( 14668 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 14669 return (Builder) super.clearOneof(oneof); 14670 } 14671 public Builder setRepeatedField( 14672 com.google.protobuf.Descriptors.FieldDescriptor field, 14673 int index, java.lang.Object value) { 14674 return (Builder) super.setRepeatedField(field, index, value); 14675 } 14676 public Builder addRepeatedField( 14677 com.google.protobuf.Descriptors.FieldDescriptor field, 14678 java.lang.Object value) { 14679 return (Builder) super.addRepeatedField(field, value); 14680 } 14681 public Builder mergeFrom(com.google.protobuf.Message other) { 11193 14682 if (other instanceof com.google.protobuf.DescriptorProtos.EnumDescriptorProto) { 11194 14683 return mergeFrom((com.google.protobuf.DescriptorProtos.EnumDescriptorProto)other); … … 11224 14713 value_ = other.value_; 11225 14714 bitField0_ = (bitField0_ & ~0x00000002); 11226 valueBuilder_ = 11227 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?14715 valueBuilder_ = 14716 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 11228 14717 getValueFieldBuilder() : null; 11229 14718 } else { … … 11235 14724 mergeOptions(other.getOptions()); 11236 14725 } 11237 this.mergeUnknownFields(other. getUnknownFields());11238 return this;11239 }11240 11241 @Override 11242 14726 this.mergeUnknownFields(other.unknownFields); 14727 onChanged(); 14728 return this; 14729 } 14730 14731 public final boolean isInitialized() { 11243 14732 for (int i = 0; i < getValueCount(); i++) { 11244 14733 if (!getValue(i).isInitialized()) { 11245 11246 14734 return false; 11247 14735 } … … 11249 14737 if (hasOptions()) { 11250 14738 if (!getOptions().isInitialized()) { 11251 11252 14739 return false; 11253 14740 } … … 11256 14743 } 11257 14744 11258 @Override 11259 public Builder mergeFrom( 14745 public Builder mergeFrom( 11260 14746 com.google.protobuf.CodedInputStream input, 11261 14747 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 11266 14752 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 11267 14753 parsedMessage = (com.google.protobuf.DescriptorProtos.EnumDescriptorProto) e.getUnfinishedMessage(); 11268 throw e ;14754 throw e.unwrapIOException(); 11269 14755 } finally { 11270 14756 if (parsedMessage != null) { … … 11280 14766 * <code>optional string name = 1;</code> 11281 14767 */ 11282 @Override 11283 public boolean hasName() { 14768 public boolean hasName() { 11284 14769 return ((bitField0_ & 0x00000001) == 0x00000001); 11285 14770 } … … 11287 14772 * <code>optional string name = 1;</code> 11288 14773 */ 11289 @Override 11290 public java.lang.String getName() { 14774 public java.lang.String getName() { 11291 14775 java.lang.Object ref = name_; 11292 14776 if (!(ref instanceof java.lang.String)) { … … 11305 14789 * <code>optional string name = 1;</code> 11306 14790 */ 11307 @Override 11308 public com.google.protobuf.ByteString 14791 public com.google.protobuf.ByteString 11309 14792 getNameBytes() { 11310 14793 java.lang.Object ref = name_; 11311 14794 if (ref instanceof String) { 11312 com.google.protobuf.ByteString b = 14795 com.google.protobuf.ByteString b = 11313 14796 com.google.protobuf.ByteString.copyFromUtf8( 11314 14797 (java.lang.String) ref); … … 11359 14842 private void ensureValueIsMutable() { 11360 14843 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 11361 value_ = new java.util.ArrayList< >(value_);14844 value_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto>(value_); 11362 14845 bitField0_ |= 0x00000002; 11363 14846 } 11364 14847 } 11365 14848 11366 private com.google.protobuf.RepeatedFieldBuilder <14849 private com.google.protobuf.RepeatedFieldBuilderV3< 11367 14850 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> valueBuilder_; 11368 14851 … … 11370 14853 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 11371 14854 */ 11372 @Override 11373 public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> getValueList() { 14855 public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto> getValueList() { 11374 14856 if (valueBuilder_ == null) { 11375 14857 return java.util.Collections.unmodifiableList(value_); … … 11381 14863 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 11382 14864 */ 11383 @Override 11384 public int getValueCount() { 14865 public int getValueCount() { 11385 14866 if (valueBuilder_ == null) { 11386 14867 return value_.size(); … … 11392 14873 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 11393 14874 */ 11394 @Override 11395 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index) { 14875 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getValue(int index) { 11396 14876 if (valueBuilder_ == null) { 11397 14877 return value_.get(index); … … 11543 15023 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 11544 15024 */ 11545 @Override 11546 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( 15025 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder( 11547 15026 int index) { 11548 15027 if (valueBuilder_ == null) { … … 11554 15033 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 11555 15034 */ 11556 @Override 11557 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 15035 public java.util.List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 11558 15036 getValueOrBuilderList() { 11559 15037 if (valueBuilder_ != null) { … … 11581 15059 * <code>repeated .google.protobuf.EnumValueDescriptorProto value = 2;</code> 11582 15060 */ 11583 public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder> 15061 public java.util.List<com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder> 11584 15062 getValueBuilderList() { 11585 15063 return getValueFieldBuilder().getBuilderList(); 11586 15064 } 11587 private com.google.protobuf.RepeatedFieldBuilder <11588 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 15065 private com.google.protobuf.RepeatedFieldBuilderV3< 15066 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> 11589 15067 getValueFieldBuilder() { 11590 15068 if (valueBuilder_ == null) { 11591 valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 15069 valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 15070 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder>( 11592 15071 value_, 11593 15072 ((bitField0_ & 0x00000002) == 0x00000002), … … 11599 15078 } 11600 15079 11601 private com.google.protobuf.DescriptorProtos.EnumOptions options_ = com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance();11602 private com.google.protobuf.SingleFieldBuilder <15080 private com.google.protobuf.DescriptorProtos.EnumOptions options_ = null; 15081 private com.google.protobuf.SingleFieldBuilderV3< 11603 15082 com.google.protobuf.DescriptorProtos.EnumOptions, com.google.protobuf.DescriptorProtos.EnumOptions.Builder, com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder> optionsBuilder_; 11604 15083 /** 11605 15084 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 11606 15085 */ 11607 @Override 11608 public boolean hasOptions() { 15086 public boolean hasOptions() { 11609 15087 return ((bitField0_ & 0x00000004) == 0x00000004); 11610 15088 } … … 11612 15090 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 11613 15091 */ 11614 @Override 11615 public com.google.protobuf.DescriptorProtos.EnumOptions getOptions() { 15092 public com.google.protobuf.DescriptorProtos.EnumOptions getOptions() { 11616 15093 if (optionsBuilder_ == null) { 11617 return options_ ;15094 return options_ == null ? com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance() : options_; 11618 15095 } else { 11619 15096 return optionsBuilder_.getMessage(); … … 11656 15133 if (optionsBuilder_ == null) { 11657 15134 if (((bitField0_ & 0x00000004) == 0x00000004) && 15135 options_ != null && 11658 15136 options_ != com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance()) { 11659 15137 options_ = … … 11674 15152 public Builder clearOptions() { 11675 15153 if (optionsBuilder_ == null) { 11676 options_ = com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance();15154 options_ = null; 11677 15155 onChanged(); 11678 15156 } else { … … 11693 15171 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 11694 15172 */ 11695 @Override 11696 public com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder() { 15173 public com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder() { 11697 15174 if (optionsBuilder_ != null) { 11698 15175 return optionsBuilder_.getMessageOrBuilder(); 11699 15176 } else { 11700 return options_; 15177 return options_ == null ? 15178 com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance() : options_; 11701 15179 } 11702 15180 } … … 11704 15182 * <code>optional .google.protobuf.EnumOptions options = 3;</code> 11705 15183 */ 11706 private com.google.protobuf.SingleFieldBuilder <11707 com.google.protobuf.DescriptorProtos.EnumOptions, com.google.protobuf.DescriptorProtos.EnumOptions.Builder, com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder> 15184 private com.google.protobuf.SingleFieldBuilderV3< 15185 com.google.protobuf.DescriptorProtos.EnumOptions, com.google.protobuf.DescriptorProtos.EnumOptions.Builder, com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder> 11708 15186 getOptionsFieldBuilder() { 11709 15187 if (optionsBuilder_ == null) { 11710 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<>( 15188 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 15189 com.google.protobuf.DescriptorProtos.EnumOptions, com.google.protobuf.DescriptorProtos.EnumOptions.Builder, com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder>( 11711 15190 getOptions(), 11712 15191 getParentForChildren(), … … 11716 15195 return optionsBuilder_; 11717 15196 } 15197 public final Builder setUnknownFields( 15198 final com.google.protobuf.UnknownFieldSet unknownFields) { 15199 return super.setUnknownFields(unknownFields); 15200 } 15201 15202 public final Builder mergeUnknownFields( 15203 final com.google.protobuf.UnknownFieldSet unknownFields) { 15204 return super.mergeUnknownFields(unknownFields); 15205 } 15206 11718 15207 11719 15208 // @@protoc_insertion_point(builder_scope:google.protobuf.EnumDescriptorProto) 11720 15209 } 11721 15210 15211 // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto) 15212 private static final com.google.protobuf.DescriptorProtos.EnumDescriptorProto DEFAULT_INSTANCE; 11722 15213 static { 11723 defaultInstance = new EnumDescriptorProto(true); 11724 defaultInstance.initFields(); 11725 } 11726 11727 // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto) 15214 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.EnumDescriptorProto(); 15215 } 15216 15217 public static com.google.protobuf.DescriptorProtos.EnumDescriptorProto getDefaultInstance() { 15218 return DEFAULT_INSTANCE; 15219 } 15220 15221 @java.lang.Deprecated public static final com.google.protobuf.Parser<EnumDescriptorProto> 15222 PARSER = new com.google.protobuf.AbstractParser<EnumDescriptorProto>() { 15223 public EnumDescriptorProto parsePartialFrom( 15224 com.google.protobuf.CodedInputStream input, 15225 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15226 throws com.google.protobuf.InvalidProtocolBufferException { 15227 return new EnumDescriptorProto(input, extensionRegistry); 15228 } 15229 }; 15230 15231 public static com.google.protobuf.Parser<EnumDescriptorProto> parser() { 15232 return PARSER; 15233 } 15234 15235 @java.lang.Override 15236 public com.google.protobuf.Parser<EnumDescriptorProto> getParserForType() { 15237 return PARSER; 15238 } 15239 15240 public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getDefaultInstanceForType() { 15241 return DEFAULT_INSTANCE; 15242 } 15243 11728 15244 } 11729 15245 … … 11769 15285 } 11770 15286 /** 11771 * Protobuf type {@code google.protobuf.EnumValueDescriptorProto}11772 *11773 15287 * <pre> 11774 15288 * Describes a value within an enum. 11775 15289 * </pre> 15290 * 15291 * Protobuf type {@code google.protobuf.EnumValueDescriptorProto} 11776 15292 */ 11777 public static final class EnumValueDescriptorProto extends11778 com.google.protobuf.GeneratedMessage implements15293 public static final class EnumValueDescriptorProto extends 15294 com.google.protobuf.GeneratedMessageV3 implements 11779 15295 // @@protoc_insertion_point(message_implements:google.protobuf.EnumValueDescriptorProto) 11780 15296 EnumValueDescriptorProtoOrBuilder { 15297 private static final long serialVersionUID = 0L; 11781 15298 // Use EnumValueDescriptorProto.newBuilder() to construct. 11782 private EnumValueDescriptorProto(com.google.protobuf.GeneratedMessage .Builder<?> builder) {15299 private EnumValueDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 11783 15300 super(builder); 11784 this.unknownFields = builder.getUnknownFields(); 11785 } 11786 private EnumValueDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 11787 11788 private static final EnumValueDescriptorProto defaultInstance; 11789 public static EnumValueDescriptorProto getDefaultInstance() { 11790 return defaultInstance; 11791 } 11792 11793 @Override 11794 public EnumValueDescriptorProto getDefaultInstanceForType() { 11795 return defaultInstance; 11796 } 11797 11798 private final com.google.protobuf.UnknownFieldSet unknownFields; 15301 } 15302 private EnumValueDescriptorProto() { 15303 name_ = ""; 15304 number_ = 0; 15305 } 15306 11799 15307 @java.lang.Override 11800 15308 public final com.google.protobuf.UnknownFieldSet 11801 15309 getUnknownFields() { 11802 15310 return this.unknownFields; 11803 15311 } … … 11806 15314 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11807 15315 throws com.google.protobuf.InvalidProtocolBufferException { 11808 initFields();15316 this(); 11809 15317 int mutable_bitField0_ = 0; 11810 15318 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 11819 15327 break; 11820 15328 default: { 11821 if (!parseUnknownField( input, unknownFields,11822 15329 if (!parseUnknownField( 15330 input, unknownFields, extensionRegistry, tag)) { 11823 15331 done = true; 11824 15332 } … … 11855 15363 } catch (java.io.IOException e) { 11856 15364 throw new com.google.protobuf.InvalidProtocolBufferException( 11857 e .getMessage()).setUnfinishedMessage(this);15365 e).setUnfinishedMessage(this); 11858 15366 } finally { 11859 15367 this.unknownFields = unknownFields.build(); … … 11866 15374 } 11867 15375 11868 @Override 11869 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 15376 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 11870 15377 internalGetFieldAccessorTable() { 11871 15378 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable … … 11874 15381 } 11875 15382 11876 public static com.google.protobuf.Parser<EnumValueDescriptorProto> PARSER =11877 new com.google.protobuf.AbstractParser<EnumValueDescriptorProto>() {11878 @Override11879 public EnumValueDescriptorProto parsePartialFrom(11880 com.google.protobuf.CodedInputStream input,11881 com.google.protobuf.ExtensionRegistryLite extensionRegistry)11882 throws com.google.protobuf.InvalidProtocolBufferException {11883 return new EnumValueDescriptorProto(input, extensionRegistry);11884 }11885 };11886 11887 @java.lang.Override11888 public com.google.protobuf.Parser<EnumValueDescriptorProto> getParserForType() {11889 return PARSER;11890 }11891 11892 15383 private int bitField0_; 11893 15384 public static final int NAME_FIELD_NUMBER = 1; 11894 private java.lang.Object name_;15385 private volatile java.lang.Object name_; 11895 15386 /** 11896 15387 * <code>optional string name = 1;</code> 11897 15388 */ 11898 @Override 11899 public boolean hasName() { 15389 public boolean hasName() { 11900 15390 return ((bitField0_ & 0x00000001) == 0x00000001); 11901 15391 } … … 11903 15393 * <code>optional string name = 1;</code> 11904 15394 */ 11905 @Override 11906 public java.lang.String getName() { 15395 public java.lang.String getName() { 11907 15396 java.lang.Object ref = name_; 11908 15397 if (ref instanceof java.lang.String) { 11909 15398 return (java.lang.String) ref; 11910 15399 } else { 11911 com.google.protobuf.ByteString bs = 15400 com.google.protobuf.ByteString bs = 11912 15401 (com.google.protobuf.ByteString) ref; 11913 15402 java.lang.String s = bs.toStringUtf8(); … … 11921 15410 * <code>optional string name = 1;</code> 11922 15411 */ 11923 @Override 11924 public com.google.protobuf.ByteString 15412 public com.google.protobuf.ByteString 11925 15413 getNameBytes() { 11926 15414 java.lang.Object ref = name_; 11927 15415 if (ref instanceof java.lang.String) { 11928 com.google.protobuf.ByteString b = 15416 com.google.protobuf.ByteString b = 11929 15417 com.google.protobuf.ByteString.copyFromUtf8( 11930 15418 (java.lang.String) ref); … … 11941 15429 * <code>optional int32 number = 2;</code> 11942 15430 */ 11943 @Override 11944 public boolean hasNumber() { 15431 public boolean hasNumber() { 11945 15432 return ((bitField0_ & 0x00000002) == 0x00000002); 11946 15433 } … … 11948 15435 * <code>optional int32 number = 2;</code> 11949 15436 */ 11950 @Override 11951 public int getNumber() { 15437 public int getNumber() { 11952 15438 return number_; 11953 15439 } … … 11958 15444 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11959 15445 */ 11960 @Override 11961 public boolean hasOptions() { 15446 public boolean hasOptions() { 11962 15447 return ((bitField0_ & 0x00000004) == 0x00000004); 11963 15448 } … … 11965 15450 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11966 15451 */ 11967 @Override 11968 public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions() { 11969 return options_; 15452 public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions() { 15453 return options_ == null ? com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance() : options_; 11970 15454 } 11971 15455 /** 11972 15456 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 11973 15457 */ 11974 @Override 11975 public com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder() { 11976 return options_; 11977 } 11978 11979 private void initFields() { 11980 name_ = ""; 11981 number_ = 0; 11982 options_ = com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance(); 11983 } 15458 public com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder() { 15459 return options_ == null ? com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance() : options_; 15460 } 15461 11984 15462 private byte memoizedIsInitialized = -1; 11985 @Override 11986 public final boolean isInitialized() { 15463 public final boolean isInitialized() { 11987 15464 byte isInitialized = memoizedIsInitialized; 11988 15465 if (isInitialized == 1) return true; … … 11999 15476 } 12000 15477 12001 @Override 12002 public void writeTo(com.google.protobuf.CodedOutputStream output) 15478 public void writeTo(com.google.protobuf.CodedOutputStream output) 12003 15479 throws java.io.IOException { 12004 getSerializedSize();12005 15480 if (((bitField0_ & 0x00000001) == 0x00000001)) { 12006 output.writeBytes(1, getNameBytes());15481 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 12007 15482 } 12008 15483 if (((bitField0_ & 0x00000002) == 0x00000002)) { … … 12010 15485 } 12011 15486 if (((bitField0_ & 0x00000004) == 0x00000004)) { 12012 output.writeMessage(3, options_); 12013 } 12014 getUnknownFields().writeTo(output); 12015 } 12016 12017 private int memoizedSerializedSize = -1; 12018 @Override 12019 public int getSerializedSize() { 12020 int size = memoizedSerializedSize; 15487 output.writeMessage(3, getOptions()); 15488 } 15489 unknownFields.writeTo(output); 15490 } 15491 15492 public int getSerializedSize() { 15493 int size = memoizedSize; 12021 15494 if (size != -1) return size; 12022 15495 12023 15496 size = 0; 12024 15497 if (((bitField0_ & 0x00000001) == 0x00000001)) { 12025 size += com.google.protobuf.CodedOutputStream 12026 .computeBytesSize(1, getNameBytes()); 15498 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 12027 15499 } 12028 15500 if (((bitField0_ & 0x00000002) == 0x00000002)) { … … 12032 15504 if (((bitField0_ & 0x00000004) == 0x00000004)) { 12033 15505 size += com.google.protobuf.CodedOutputStream 12034 .computeMessageSize(3, options_);12035 } 12036 size += getUnknownFields().getSerializedSize();12037 memoizedS erializedSize = size;15506 .computeMessageSize(3, getOptions()); 15507 } 15508 size += unknownFields.getSerializedSize(); 15509 memoizedSize = size; 12038 15510 return size; 12039 15511 } 12040 15512 12041 private static final long serialVersionUID = 0L;12042 15513 @java.lang.Override 12043 protected java.lang.Object writeReplace() 12044 throws java.io.ObjectStreamException { 12045 return super.writeReplace(); 12046 } 12047 15514 public boolean equals(final java.lang.Object obj) { 15515 if (obj == this) { 15516 return true; 15517 } 15518 if (!(obj instanceof com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto)) { 15519 return super.equals(obj); 15520 } 15521 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto other = (com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) obj; 15522 15523 boolean result = true; 15524 result = result && (hasName() == other.hasName()); 15525 if (hasName()) { 15526 result = result && getName() 15527 .equals(other.getName()); 15528 } 15529 result = result && (hasNumber() == other.hasNumber()); 15530 if (hasNumber()) { 15531 result = result && (getNumber() 15532 == other.getNumber()); 15533 } 15534 result = result && (hasOptions() == other.hasOptions()); 15535 if (hasOptions()) { 15536 result = result && getOptions() 15537 .equals(other.getOptions()); 15538 } 15539 result = result && unknownFields.equals(other.unknownFields); 15540 return result; 15541 } 15542 15543 @java.lang.Override 15544 public int hashCode() { 15545 if (memoizedHashCode != 0) { 15546 return memoizedHashCode; 15547 } 15548 int hash = 41; 15549 hash = (19 * hash) + getDescriptor().hashCode(); 15550 if (hasName()) { 15551 hash = (37 * hash) + NAME_FIELD_NUMBER; 15552 hash = (53 * hash) + getName().hashCode(); 15553 } 15554 if (hasNumber()) { 15555 hash = (37 * hash) + NUMBER_FIELD_NUMBER; 15556 hash = (53 * hash) + getNumber(); 15557 } 15558 if (hasOptions()) { 15559 hash = (37 * hash) + OPTIONS_FIELD_NUMBER; 15560 hash = (53 * hash) + getOptions().hashCode(); 15561 } 15562 hash = (29 * hash) + unknownFields.hashCode(); 15563 memoizedHashCode = hash; 15564 return hash; 15565 } 15566 15567 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 15568 java.nio.ByteBuffer data) 15569 throws com.google.protobuf.InvalidProtocolBufferException { 15570 return PARSER.parseFrom(data); 15571 } 15572 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 15573 java.nio.ByteBuffer data, 15574 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15575 throws com.google.protobuf.InvalidProtocolBufferException { 15576 return PARSER.parseFrom(data, extensionRegistry); 15577 } 12048 15578 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 12049 15579 com.google.protobuf.ByteString data) … … 12069 15599 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom(java.io.InputStream input) 12070 15600 throws java.io.IOException { 12071 return PARSER.parseFrom(input); 15601 return com.google.protobuf.GeneratedMessageV3 15602 .parseWithIOException(PARSER, input); 12072 15603 } 12073 15604 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( … … 12075 15606 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12076 15607 throws java.io.IOException { 12077 return PARSER.parseFrom(input, extensionRegistry); 15608 return com.google.protobuf.GeneratedMessageV3 15609 .parseWithIOException(PARSER, input, extensionRegistry); 12078 15610 } 12079 15611 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseDelimitedFrom(java.io.InputStream input) 12080 15612 throws java.io.IOException { 12081 return PARSER.parseDelimitedFrom(input); 15613 return com.google.protobuf.GeneratedMessageV3 15614 .parseDelimitedWithIOException(PARSER, input); 12082 15615 } 12083 15616 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseDelimitedFrom( … … 12085 15618 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12086 15619 throws java.io.IOException { 12087 return PARSER.parseDelimitedFrom(input, extensionRegistry); 15620 return com.google.protobuf.GeneratedMessageV3 15621 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 12088 15622 } 12089 15623 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( 12090 15624 com.google.protobuf.CodedInputStream input) 12091 15625 throws java.io.IOException { 12092 return PARSER.parseFrom(input); 15626 return com.google.protobuf.GeneratedMessageV3 15627 .parseWithIOException(PARSER, input); 12093 15628 } 12094 15629 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto parseFrom( … … 12096 15631 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12097 15632 throws java.io.IOException { 12098 return PARSER.parseFrom(input, extensionRegistry); 12099 } 12100 12101 public static Builder newBuilder() { return Builder.create(); } 12102 @Override 12103 public Builder newBuilderForType() { return newBuilder(); } 15633 return com.google.protobuf.GeneratedMessageV3 15634 .parseWithIOException(PARSER, input, extensionRegistry); 15635 } 15636 15637 public Builder newBuilderForType() { return newBuilder(); } 15638 public static Builder newBuilder() { 15639 return DEFAULT_INSTANCE.toBuilder(); 15640 } 12104 15641 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto prototype) { 12105 return newBuilder().mergeFrom(prototype); 12106 } 12107 @Override 12108 public Builder toBuilder() { return newBuilder(this); } 15642 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 15643 } 15644 public Builder toBuilder() { 15645 return this == DEFAULT_INSTANCE 15646 ? new Builder() : new Builder().mergeFrom(this); 15647 } 12109 15648 12110 15649 @java.lang.Override 12111 15650 protected Builder newBuilderForType( 12112 com.google.protobuf.GeneratedMessage .BuilderParent parent) {15651 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 12113 15652 Builder builder = new Builder(parent); 12114 15653 return builder; 12115 15654 } 12116 15655 /** 12117 * Protobuf type {@code google.protobuf.EnumValueDescriptorProto}12118 *12119 15656 * <pre> 12120 15657 * Describes a value within an enum. 12121 15658 * </pre> 15659 * 15660 * Protobuf type {@code google.protobuf.EnumValueDescriptorProto} 12122 15661 */ 12123 15662 public static final class Builder extends 12124 com.google.protobuf.GeneratedMessage .Builder<Builder> implements15663 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 12125 15664 // @@protoc_insertion_point(builder_implements:google.protobuf.EnumValueDescriptorProto) 12126 15665 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder { … … 12130 15669 } 12131 15670 12132 @Override 12133 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 15671 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 12134 15672 internalGetFieldAccessorTable() { 12135 15673 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable … … 12144 15682 12145 15683 private Builder( 12146 com.google.protobuf.GeneratedMessage .BuilderParent parent) {15684 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 12147 15685 super(parent); 12148 15686 maybeForceBuilderInitialization(); 12149 15687 } 12150 15688 private void maybeForceBuilderInitialization() { 12151 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 15689 if (com.google.protobuf.GeneratedMessageV3 15690 .alwaysUseFieldBuilders) { 12152 15691 getOptionsFieldBuilder(); 12153 15692 } 12154 15693 } 12155 private static Builder create() { 12156 return new Builder(); 12157 } 12158 12159 @Override 12160 public Builder clear() { 15694 public Builder clear() { 12161 15695 super.clear(); 12162 15696 name_ = ""; … … 12165 15699 bitField0_ = (bitField0_ & ~0x00000002); 12166 15700 if (optionsBuilder_ == null) { 12167 options_ = com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance();15701 options_ = null; 12168 15702 } else { 12169 15703 optionsBuilder_.clear(); … … 12173 15707 } 12174 15708 12175 @Override 12176 public Builder clone() { 12177 return create().mergeFrom(buildPartial()); 12178 } 12179 12180 @Override 12181 public com.google.protobuf.Descriptors.Descriptor 15709 public com.google.protobuf.Descriptors.Descriptor 12182 15710 getDescriptorForType() { 12183 15711 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; 12184 15712 } 12185 15713 12186 @Override 12187 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getDefaultInstanceForType() { 15714 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getDefaultInstanceForType() { 12188 15715 return com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.getDefaultInstance(); 12189 15716 } 12190 15717 12191 @Override 12192 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto build() { 15718 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto build() { 12193 15719 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto result = buildPartial(); 12194 15720 if (!result.isInitialized()) { … … 12198 15724 } 12199 15725 12200 @Override 12201 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto buildPartial() { 15726 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto buildPartial() { 12202 15727 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto result = new com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto(this); 12203 15728 int from_bitField0_ = bitField0_; … … 12224 15749 } 12225 15750 12226 @Override 12227 public Builder mergeFrom(com.google.protobuf.Message other) { 15751 public Builder clone() { 15752 return (Builder) super.clone(); 15753 } 15754 public Builder setField( 15755 com.google.protobuf.Descriptors.FieldDescriptor field, 15756 java.lang.Object value) { 15757 return (Builder) super.setField(field, value); 15758 } 15759 public Builder clearField( 15760 com.google.protobuf.Descriptors.FieldDescriptor field) { 15761 return (Builder) super.clearField(field); 15762 } 15763 public Builder clearOneof( 15764 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 15765 return (Builder) super.clearOneof(oneof); 15766 } 15767 public Builder setRepeatedField( 15768 com.google.protobuf.Descriptors.FieldDescriptor field, 15769 int index, java.lang.Object value) { 15770 return (Builder) super.setRepeatedField(field, index, value); 15771 } 15772 public Builder addRepeatedField( 15773 com.google.protobuf.Descriptors.FieldDescriptor field, 15774 java.lang.Object value) { 15775 return (Builder) super.addRepeatedField(field, value); 15776 } 15777 public Builder mergeFrom(com.google.protobuf.Message other) { 12228 15778 if (other instanceof com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) { 12229 15779 return mergeFrom((com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto)other); … … 12247 15797 mergeOptions(other.getOptions()); 12248 15798 } 12249 this.mergeUnknownFields(other. getUnknownFields());12250 return this;12251 }12252 12253 @Override 12254 15799 this.mergeUnknownFields(other.unknownFields); 15800 onChanged(); 15801 return this; 15802 } 15803 15804 public final boolean isInitialized() { 12255 15805 if (hasOptions()) { 12256 15806 if (!getOptions().isInitialized()) { 12257 12258 15807 return false; 12259 15808 } … … 12262 15811 } 12263 15812 12264 @Override 12265 public Builder mergeFrom( 15813 public Builder mergeFrom( 12266 15814 com.google.protobuf.CodedInputStream input, 12267 15815 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 12272 15820 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 12273 15821 parsedMessage = (com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) e.getUnfinishedMessage(); 12274 throw e ;15822 throw e.unwrapIOException(); 12275 15823 } finally { 12276 15824 if (parsedMessage != null) { … … 12286 15834 * <code>optional string name = 1;</code> 12287 15835 */ 12288 @Override 12289 public boolean hasName() { 15836 public boolean hasName() { 12290 15837 return ((bitField0_ & 0x00000001) == 0x00000001); 12291 15838 } … … 12293 15840 * <code>optional string name = 1;</code> 12294 15841 */ 12295 @Override 12296 public java.lang.String getName() { 15842 public java.lang.String getName() { 12297 15843 java.lang.Object ref = name_; 12298 15844 if (!(ref instanceof java.lang.String)) { … … 12311 15857 * <code>optional string name = 1;</code> 12312 15858 */ 12313 @Override 12314 public com.google.protobuf.ByteString 15859 public com.google.protobuf.ByteString 12315 15860 getNameBytes() { 12316 15861 java.lang.Object ref = name_; 12317 15862 if (ref instanceof String) { 12318 com.google.protobuf.ByteString b = 15863 com.google.protobuf.ByteString b = 12319 15864 com.google.protobuf.ByteString.copyFromUtf8( 12320 15865 (java.lang.String) ref); … … 12365 15910 * <code>optional int32 number = 2;</code> 12366 15911 */ 12367 @Override 12368 public boolean hasNumber() { 15912 public boolean hasNumber() { 12369 15913 return ((bitField0_ & 0x00000002) == 0x00000002); 12370 15914 } … … 12372 15916 * <code>optional int32 number = 2;</code> 12373 15917 */ 12374 @Override 12375 public int getNumber() { 15918 public int getNumber() { 12376 15919 return number_; 12377 15920 } … … 12395 15938 } 12396 15939 12397 private com.google.protobuf.DescriptorProtos.EnumValueOptions options_ = com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance();12398 private com.google.protobuf.SingleFieldBuilder <15940 private com.google.protobuf.DescriptorProtos.EnumValueOptions options_ = null; 15941 private com.google.protobuf.SingleFieldBuilderV3< 12399 15942 com.google.protobuf.DescriptorProtos.EnumValueOptions, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder, com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder> optionsBuilder_; 12400 15943 /** 12401 15944 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 12402 15945 */ 12403 @Override 12404 public boolean hasOptions() { 15946 public boolean hasOptions() { 12405 15947 return ((bitField0_ & 0x00000004) == 0x00000004); 12406 15948 } … … 12408 15950 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 12409 15951 */ 12410 @Override 12411 public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions() { 15952 public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions() { 12412 15953 if (optionsBuilder_ == null) { 12413 return options_ ;15954 return options_ == null ? com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance() : options_; 12414 15955 } else { 12415 15956 return optionsBuilder_.getMessage(); … … 12452 15993 if (optionsBuilder_ == null) { 12453 15994 if (((bitField0_ & 0x00000004) == 0x00000004) && 15995 options_ != null && 12454 15996 options_ != com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance()) { 12455 15997 options_ = … … 12470 16012 public Builder clearOptions() { 12471 16013 if (optionsBuilder_ == null) { 12472 options_ = com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance();16014 options_ = null; 12473 16015 onChanged(); 12474 16016 } else { … … 12489 16031 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 12490 16032 */ 12491 @Override 12492 public com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder() { 16033 public com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder() { 12493 16034 if (optionsBuilder_ != null) { 12494 16035 return optionsBuilder_.getMessageOrBuilder(); 12495 16036 } else { 12496 return options_; 16037 return options_ == null ? 16038 com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance() : options_; 12497 16039 } 12498 16040 } … … 12500 16042 * <code>optional .google.protobuf.EnumValueOptions options = 3;</code> 12501 16043 */ 12502 private com.google.protobuf.SingleFieldBuilder <12503 com.google.protobuf.DescriptorProtos.EnumValueOptions, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder, com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder> 16044 private com.google.protobuf.SingleFieldBuilderV3< 16045 com.google.protobuf.DescriptorProtos.EnumValueOptions, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder, com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder> 12504 16046 getOptionsFieldBuilder() { 12505 16047 if (optionsBuilder_ == null) { 12506 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<>( 16048 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 16049 com.google.protobuf.DescriptorProtos.EnumValueOptions, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder, com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder>( 12507 16050 getOptions(), 12508 16051 getParentForChildren(), … … 12512 16055 return optionsBuilder_; 12513 16056 } 16057 public final Builder setUnknownFields( 16058 final com.google.protobuf.UnknownFieldSet unknownFields) { 16059 return super.setUnknownFields(unknownFields); 16060 } 16061 16062 public final Builder mergeUnknownFields( 16063 final com.google.protobuf.UnknownFieldSet unknownFields) { 16064 return super.mergeUnknownFields(unknownFields); 16065 } 16066 12514 16067 12515 16068 // @@protoc_insertion_point(builder_scope:google.protobuf.EnumValueDescriptorProto) 12516 16069 } 12517 16070 16071 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto) 16072 private static final com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto DEFAULT_INSTANCE; 12518 16073 static { 12519 defaultInstance = new EnumValueDescriptorProto(true); 12520 defaultInstance.initFields(); 12521 } 12522 12523 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto) 16074 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto(); 16075 } 16076 16077 public static com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getDefaultInstance() { 16078 return DEFAULT_INSTANCE; 16079 } 16080 16081 @java.lang.Deprecated public static final com.google.protobuf.Parser<EnumValueDescriptorProto> 16082 PARSER = new com.google.protobuf.AbstractParser<EnumValueDescriptorProto>() { 16083 public EnumValueDescriptorProto parsePartialFrom( 16084 com.google.protobuf.CodedInputStream input, 16085 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16086 throws com.google.protobuf.InvalidProtocolBufferException { 16087 return new EnumValueDescriptorProto(input, extensionRegistry); 16088 } 16089 }; 16090 16091 public static com.google.protobuf.Parser<EnumValueDescriptorProto> parser() { 16092 return PARSER; 16093 } 16094 16095 @java.lang.Override 16096 public com.google.protobuf.Parser<EnumValueDescriptorProto> getParserForType() { 16097 return PARSER; 16098 } 16099 16100 public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getDefaultInstanceForType() { 16101 return DEFAULT_INSTANCE; 16102 } 16103 12524 16104 } 12525 16105 … … 12545 16125 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12546 16126 */ 12547 java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> 16127 java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> 12548 16128 getMethodList(); 12549 16129 /** … … 12558 16138 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12559 16139 */ 12560 java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 16140 java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 12561 16141 getMethodOrBuilderList(); 12562 16142 /** … … 12580 16160 } 12581 16161 /** 12582 * Protobuf type {@code google.protobuf.ServiceDescriptorProto}12583 *12584 16162 * <pre> 12585 16163 * Describes a service. 12586 16164 * </pre> 16165 * 16166 * Protobuf type {@code google.protobuf.ServiceDescriptorProto} 12587 16167 */ 12588 public static final class ServiceDescriptorProto extends12589 com.google.protobuf.GeneratedMessage implements16168 public static final class ServiceDescriptorProto extends 16169 com.google.protobuf.GeneratedMessageV3 implements 12590 16170 // @@protoc_insertion_point(message_implements:google.protobuf.ServiceDescriptorProto) 12591 16171 ServiceDescriptorProtoOrBuilder { 16172 private static final long serialVersionUID = 0L; 12592 16173 // Use ServiceDescriptorProto.newBuilder() to construct. 12593 private ServiceDescriptorProto(com.google.protobuf.GeneratedMessage .Builder<?> builder) {16174 private ServiceDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 12594 16175 super(builder); 12595 this.unknownFields = builder.getUnknownFields(); 12596 } 12597 private ServiceDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 12598 12599 private static final ServiceDescriptorProto defaultInstance; 12600 public static ServiceDescriptorProto getDefaultInstance() { 12601 return defaultInstance; 12602 } 12603 12604 @Override 12605 public ServiceDescriptorProto getDefaultInstanceForType() { 12606 return defaultInstance; 12607 } 12608 12609 private final com.google.protobuf.UnknownFieldSet unknownFields; 16176 } 16177 private ServiceDescriptorProto() { 16178 name_ = ""; 16179 method_ = java.util.Collections.emptyList(); 16180 } 16181 12610 16182 @java.lang.Override 12611 16183 public final com.google.protobuf.UnknownFieldSet 12612 16184 getUnknownFields() { 12613 16185 return this.unknownFields; 12614 16186 } … … 12617 16189 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12618 16190 throws com.google.protobuf.InvalidProtocolBufferException { 12619 initFields();16191 this(); 12620 16192 int mutable_bitField0_ = 0; 12621 16193 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 12630 16202 break; 12631 16203 default: { 12632 if (!parseUnknownField( input, unknownFields,12633 16204 if (!parseUnknownField( 16205 input, unknownFields, extensionRegistry, tag)) { 12634 16206 done = true; 12635 16207 } … … 12644 16216 case 18: { 12645 16217 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 12646 method_ = new java.util.ArrayList< >();16218 method_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.MethodDescriptorProto>(); 12647 16219 mutable_bitField0_ |= 0x00000002; 12648 16220 } 12649 method_.add(input.readMessage(com.google.protobuf.DescriptorProtos.MethodDescriptorProto.PARSER, extensionRegistry)); 16221 method_.add( 16222 input.readMessage(com.google.protobuf.DescriptorProtos.MethodDescriptorProto.PARSER, extensionRegistry)); 12650 16223 break; 12651 16224 } … … 12669 16242 } catch (java.io.IOException e) { 12670 16243 throw new com.google.protobuf.InvalidProtocolBufferException( 12671 e .getMessage()).setUnfinishedMessage(this);16244 e).setUnfinishedMessage(this); 12672 16245 } finally { 12673 16246 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { … … 12683 16256 } 12684 16257 12685 @Override 12686 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 16258 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 12687 16259 internalGetFieldAccessorTable() { 12688 16260 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable … … 12691 16263 } 12692 16264 12693 public static com.google.protobuf.Parser<ServiceDescriptorProto> PARSER =12694 new com.google.protobuf.AbstractParser<ServiceDescriptorProto>() {12695 @Override12696 public ServiceDescriptorProto parsePartialFrom(12697 com.google.protobuf.CodedInputStream input,12698 com.google.protobuf.ExtensionRegistryLite extensionRegistry)12699 throws com.google.protobuf.InvalidProtocolBufferException {12700 return new ServiceDescriptorProto(input, extensionRegistry);12701 }12702 };12703 12704 @java.lang.Override12705 public com.google.protobuf.Parser<ServiceDescriptorProto> getParserForType() {12706 return PARSER;12707 }12708 12709 16265 private int bitField0_; 12710 16266 public static final int NAME_FIELD_NUMBER = 1; 12711 private java.lang.Object name_;16267 private volatile java.lang.Object name_; 12712 16268 /** 12713 16269 * <code>optional string name = 1;</code> 12714 16270 */ 12715 @Override 12716 public boolean hasName() { 16271 public boolean hasName() { 12717 16272 return ((bitField0_ & 0x00000001) == 0x00000001); 12718 16273 } … … 12720 16275 * <code>optional string name = 1;</code> 12721 16276 */ 12722 @Override 12723 public java.lang.String getName() { 16277 public java.lang.String getName() { 12724 16278 java.lang.Object ref = name_; 12725 16279 if (ref instanceof java.lang.String) { 12726 16280 return (java.lang.String) ref; 12727 16281 } else { 12728 com.google.protobuf.ByteString bs = 16282 com.google.protobuf.ByteString bs = 12729 16283 (com.google.protobuf.ByteString) ref; 12730 16284 java.lang.String s = bs.toStringUtf8(); … … 12738 16292 * <code>optional string name = 1;</code> 12739 16293 */ 12740 @Override 12741 public com.google.protobuf.ByteString 16294 public com.google.protobuf.ByteString 12742 16295 getNameBytes() { 12743 16296 java.lang.Object ref = name_; 12744 16297 if (ref instanceof java.lang.String) { 12745 com.google.protobuf.ByteString b = 16298 com.google.protobuf.ByteString b = 12746 16299 com.google.protobuf.ByteString.copyFromUtf8( 12747 16300 (java.lang.String) ref); … … 12758 16311 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12759 16312 */ 12760 @Override 12761 public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> getMethodList() { 16313 public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> getMethodList() { 12762 16314 return method_; 12763 16315 } … … 12765 16317 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12766 16318 */ 12767 @Override 12768 public java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 16319 public java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 12769 16320 getMethodOrBuilderList() { 12770 16321 return method_; … … 12773 16324 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12774 16325 */ 12775 @Override 12776 public int getMethodCount() { 16326 public int getMethodCount() { 12777 16327 return method_.size(); 12778 16328 } … … 12780 16330 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12781 16331 */ 12782 @Override 12783 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index) { 16332 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index) { 12784 16333 return method_.get(index); 12785 16334 } … … 12787 16336 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 12788 16337 */ 12789 @Override 12790 public com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( 16338 public com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( 12791 16339 int index) { 12792 16340 return method_.get(index); … … 12798 16346 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12799 16347 */ 12800 @Override 12801 public boolean hasOptions() { 16348 public boolean hasOptions() { 12802 16349 return ((bitField0_ & 0x00000002) == 0x00000002); 12803 16350 } … … 12805 16352 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12806 16353 */ 12807 @Override 12808 public com.google.protobuf.DescriptorProtos.ServiceOptions getOptions() { 12809 return options_; 16354 public com.google.protobuf.DescriptorProtos.ServiceOptions getOptions() { 16355 return options_ == null ? com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance() : options_; 12810 16356 } 12811 16357 /** 12812 16358 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 12813 16359 */ 12814 @Override 12815 public com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder() { 12816 return options_; 12817 } 12818 12819 private void initFields() { 12820 name_ = ""; 12821 method_ = java.util.Collections.emptyList(); 12822 options_ = com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance(); 12823 } 16360 public com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder() { 16361 return options_ == null ? com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance() : options_; 16362 } 16363 12824 16364 private byte memoizedIsInitialized = -1; 12825 @Override 12826 public final boolean isInitialized() { 16365 public final boolean isInitialized() { 12827 16366 byte isInitialized = memoizedIsInitialized; 12828 16367 if (isInitialized == 1) return true; … … 12845 16384 } 12846 16385 12847 @Override 12848 public void writeTo(com.google.protobuf.CodedOutputStream output) 16386 public void writeTo(com.google.protobuf.CodedOutputStream output) 12849 16387 throws java.io.IOException { 12850 getSerializedSize();12851 16388 if (((bitField0_ & 0x00000001) == 0x00000001)) { 12852 output.writeBytes(1, getNameBytes());16389 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 12853 16390 } 12854 16391 for (int i = 0; i < method_.size(); i++) { … … 12856 16393 } 12857 16394 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12858 output.writeMessage(3, options_); 12859 } 12860 getUnknownFields().writeTo(output); 12861 } 12862 12863 private int memoizedSerializedSize = -1; 12864 @Override 12865 public int getSerializedSize() { 12866 int size = memoizedSerializedSize; 16395 output.writeMessage(3, getOptions()); 16396 } 16397 unknownFields.writeTo(output); 16398 } 16399 16400 public int getSerializedSize() { 16401 int size = memoizedSize; 12867 16402 if (size != -1) return size; 12868 16403 12869 16404 size = 0; 12870 16405 if (((bitField0_ & 0x00000001) == 0x00000001)) { 12871 size += com.google.protobuf.CodedOutputStream 12872 .computeBytesSize(1, getNameBytes()); 16406 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 12873 16407 } 12874 16408 for (int i = 0; i < method_.size(); i++) { … … 12878 16412 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12879 16413 size += com.google.protobuf.CodedOutputStream 12880 .computeMessageSize(3, options_);12881 } 12882 size += getUnknownFields().getSerializedSize();12883 memoizedS erializedSize = size;16414 .computeMessageSize(3, getOptions()); 16415 } 16416 size += unknownFields.getSerializedSize(); 16417 memoizedSize = size; 12884 16418 return size; 12885 16419 } 12886 16420 12887 private static final long serialVersionUID = 0L;12888 16421 @java.lang.Override 12889 protected java.lang.Object writeReplace() 12890 throws java.io.ObjectStreamException { 12891 return super.writeReplace(); 12892 } 12893 16422 public boolean equals(final java.lang.Object obj) { 16423 if (obj == this) { 16424 return true; 16425 } 16426 if (!(obj instanceof com.google.protobuf.DescriptorProtos.ServiceDescriptorProto)) { 16427 return super.equals(obj); 16428 } 16429 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto other = (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) obj; 16430 16431 boolean result = true; 16432 result = result && (hasName() == other.hasName()); 16433 if (hasName()) { 16434 result = result && getName() 16435 .equals(other.getName()); 16436 } 16437 result = result && getMethodList() 16438 .equals(other.getMethodList()); 16439 result = result && (hasOptions() == other.hasOptions()); 16440 if (hasOptions()) { 16441 result = result && getOptions() 16442 .equals(other.getOptions()); 16443 } 16444 result = result && unknownFields.equals(other.unknownFields); 16445 return result; 16446 } 16447 16448 @java.lang.Override 16449 public int hashCode() { 16450 if (memoizedHashCode != 0) { 16451 return memoizedHashCode; 16452 } 16453 int hash = 41; 16454 hash = (19 * hash) + getDescriptor().hashCode(); 16455 if (hasName()) { 16456 hash = (37 * hash) + NAME_FIELD_NUMBER; 16457 hash = (53 * hash) + getName().hashCode(); 16458 } 16459 if (getMethodCount() > 0) { 16460 hash = (37 * hash) + METHOD_FIELD_NUMBER; 16461 hash = (53 * hash) + getMethodList().hashCode(); 16462 } 16463 if (hasOptions()) { 16464 hash = (37 * hash) + OPTIONS_FIELD_NUMBER; 16465 hash = (53 * hash) + getOptions().hashCode(); 16466 } 16467 hash = (29 * hash) + unknownFields.hashCode(); 16468 memoizedHashCode = hash; 16469 return hash; 16470 } 16471 16472 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( 16473 java.nio.ByteBuffer data) 16474 throws com.google.protobuf.InvalidProtocolBufferException { 16475 return PARSER.parseFrom(data); 16476 } 16477 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( 16478 java.nio.ByteBuffer data, 16479 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16480 throws com.google.protobuf.InvalidProtocolBufferException { 16481 return PARSER.parseFrom(data, extensionRegistry); 16482 } 12894 16483 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( 12895 16484 com.google.protobuf.ByteString data) … … 12915 16504 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom(java.io.InputStream input) 12916 16505 throws java.io.IOException { 12917 return PARSER.parseFrom(input); 16506 return com.google.protobuf.GeneratedMessageV3 16507 .parseWithIOException(PARSER, input); 12918 16508 } 12919 16509 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( … … 12921 16511 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12922 16512 throws java.io.IOException { 12923 return PARSER.parseFrom(input, extensionRegistry); 16513 return com.google.protobuf.GeneratedMessageV3 16514 .parseWithIOException(PARSER, input, extensionRegistry); 12924 16515 } 12925 16516 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseDelimitedFrom(java.io.InputStream input) 12926 16517 throws java.io.IOException { 12927 return PARSER.parseDelimitedFrom(input); 16518 return com.google.protobuf.GeneratedMessageV3 16519 .parseDelimitedWithIOException(PARSER, input); 12928 16520 } 12929 16521 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseDelimitedFrom( … … 12931 16523 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12932 16524 throws java.io.IOException { 12933 return PARSER.parseDelimitedFrom(input, extensionRegistry); 16525 return com.google.protobuf.GeneratedMessageV3 16526 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 12934 16527 } 12935 16528 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( 12936 16529 com.google.protobuf.CodedInputStream input) 12937 16530 throws java.io.IOException { 12938 return PARSER.parseFrom(input); 16531 return com.google.protobuf.GeneratedMessageV3 16532 .parseWithIOException(PARSER, input); 12939 16533 } 12940 16534 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto parseFrom( … … 12942 16536 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12943 16537 throws java.io.IOException { 12944 return PARSER.parseFrom(input, extensionRegistry); 12945 } 12946 12947 public static Builder newBuilder() { return Builder.create(); } 12948 @Override 12949 public Builder newBuilderForType() { return newBuilder(); } 16538 return com.google.protobuf.GeneratedMessageV3 16539 .parseWithIOException(PARSER, input, extensionRegistry); 16540 } 16541 16542 public Builder newBuilderForType() { return newBuilder(); } 16543 public static Builder newBuilder() { 16544 return DEFAULT_INSTANCE.toBuilder(); 16545 } 12950 16546 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto prototype) { 12951 return newBuilder().mergeFrom(prototype); 12952 } 12953 @Override 12954 public Builder toBuilder() { return newBuilder(this); } 16547 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 16548 } 16549 public Builder toBuilder() { 16550 return this == DEFAULT_INSTANCE 16551 ? new Builder() : new Builder().mergeFrom(this); 16552 } 12955 16553 12956 16554 @java.lang.Override 12957 16555 protected Builder newBuilderForType( 12958 com.google.protobuf.GeneratedMessage .BuilderParent parent) {16556 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 12959 16557 Builder builder = new Builder(parent); 12960 16558 return builder; 12961 16559 } 12962 16560 /** 12963 * Protobuf type {@code google.protobuf.ServiceDescriptorProto}12964 *12965 16561 * <pre> 12966 16562 * Describes a service. 12967 16563 * </pre> 16564 * 16565 * Protobuf type {@code google.protobuf.ServiceDescriptorProto} 12968 16566 */ 12969 16567 public static final class Builder extends 12970 com.google.protobuf.GeneratedMessage .Builder<Builder> implements16568 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 12971 16569 // @@protoc_insertion_point(builder_implements:google.protobuf.ServiceDescriptorProto) 12972 16570 com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder { … … 12976 16574 } 12977 16575 12978 @Override 12979 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 16576 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 12980 16577 internalGetFieldAccessorTable() { 12981 16578 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable … … 12990 16587 12991 16588 private Builder( 12992 com.google.protobuf.GeneratedMessage .BuilderParent parent) {16589 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 12993 16590 super(parent); 12994 16591 maybeForceBuilderInitialization(); 12995 16592 } 12996 16593 private void maybeForceBuilderInitialization() { 12997 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 16594 if (com.google.protobuf.GeneratedMessageV3 16595 .alwaysUseFieldBuilders) { 12998 16596 getMethodFieldBuilder(); 12999 16597 getOptionsFieldBuilder(); 13000 16598 } 13001 16599 } 13002 private static Builder create() { 13003 return new Builder(); 13004 } 13005 13006 @Override 13007 public Builder clear() { 16600 public Builder clear() { 13008 16601 super.clear(); 13009 16602 name_ = ""; … … 13016 16609 } 13017 16610 if (optionsBuilder_ == null) { 13018 options_ = com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance();16611 options_ = null; 13019 16612 } else { 13020 16613 optionsBuilder_.clear(); … … 13024 16617 } 13025 16618 13026 @Override 13027 public Builder clone() { 13028 return create().mergeFrom(buildPartial()); 13029 } 13030 13031 @Override 13032 public com.google.protobuf.Descriptors.Descriptor 16619 public com.google.protobuf.Descriptors.Descriptor 13033 16620 getDescriptorForType() { 13034 16621 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceDescriptorProto_descriptor; 13035 16622 } 13036 16623 13037 @Override 13038 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getDefaultInstanceForType() { 16624 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getDefaultInstanceForType() { 13039 16625 return com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance(); 13040 16626 } 13041 16627 13042 @Override 13043 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto build() { 16628 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto build() { 13044 16629 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto result = buildPartial(); 13045 16630 if (!result.isInitialized()) { … … 13049 16634 } 13050 16635 13051 @Override 13052 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto buildPartial() { 16636 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto buildPartial() { 13053 16637 com.google.protobuf.DescriptorProtos.ServiceDescriptorProto result = new com.google.protobuf.DescriptorProtos.ServiceDescriptorProto(this); 13054 16638 int from_bitField0_ = bitField0_; … … 13080 16664 } 13081 16665 13082 @Override 13083 public Builder mergeFrom(com.google.protobuf.Message other) { 16666 public Builder clone() { 16667 return (Builder) super.clone(); 16668 } 16669 public Builder setField( 16670 com.google.protobuf.Descriptors.FieldDescriptor field, 16671 java.lang.Object value) { 16672 return (Builder) super.setField(field, value); 16673 } 16674 public Builder clearField( 16675 com.google.protobuf.Descriptors.FieldDescriptor field) { 16676 return (Builder) super.clearField(field); 16677 } 16678 public Builder clearOneof( 16679 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 16680 return (Builder) super.clearOneof(oneof); 16681 } 16682 public Builder setRepeatedField( 16683 com.google.protobuf.Descriptors.FieldDescriptor field, 16684 int index, java.lang.Object value) { 16685 return (Builder) super.setRepeatedField(field, index, value); 16686 } 16687 public Builder addRepeatedField( 16688 com.google.protobuf.Descriptors.FieldDescriptor field, 16689 java.lang.Object value) { 16690 return (Builder) super.addRepeatedField(field, value); 16691 } 16692 public Builder mergeFrom(com.google.protobuf.Message other) { 13084 16693 if (other instanceof com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) { 13085 16694 return mergeFrom((com.google.protobuf.DescriptorProtos.ServiceDescriptorProto)other); … … 13115 16724 method_ = other.method_; 13116 16725 bitField0_ = (bitField0_ & ~0x00000002); 13117 methodBuilder_ = 13118 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?16726 methodBuilder_ = 16727 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 13119 16728 getMethodFieldBuilder() : null; 13120 16729 } else { … … 13126 16735 mergeOptions(other.getOptions()); 13127 16736 } 13128 this.mergeUnknownFields(other. getUnknownFields());13129 return this;13130 }13131 13132 @Override 13133 16737 this.mergeUnknownFields(other.unknownFields); 16738 onChanged(); 16739 return this; 16740 } 16741 16742 public final boolean isInitialized() { 13134 16743 for (int i = 0; i < getMethodCount(); i++) { 13135 16744 if (!getMethod(i).isInitialized()) { 13136 13137 16745 return false; 13138 16746 } … … 13140 16748 if (hasOptions()) { 13141 16749 if (!getOptions().isInitialized()) { 13142 13143 16750 return false; 13144 16751 } … … 13147 16754 } 13148 16755 13149 @Override 13150 public Builder mergeFrom( 16756 public Builder mergeFrom( 13151 16757 com.google.protobuf.CodedInputStream input, 13152 16758 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 13157 16763 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 13158 16764 parsedMessage = (com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) e.getUnfinishedMessage(); 13159 throw e ;16765 throw e.unwrapIOException(); 13160 16766 } finally { 13161 16767 if (parsedMessage != null) { … … 13171 16777 * <code>optional string name = 1;</code> 13172 16778 */ 13173 @Override 13174 public boolean hasName() { 16779 public boolean hasName() { 13175 16780 return ((bitField0_ & 0x00000001) == 0x00000001); 13176 16781 } … … 13178 16783 * <code>optional string name = 1;</code> 13179 16784 */ 13180 @Override 13181 public java.lang.String getName() { 16785 public java.lang.String getName() { 13182 16786 java.lang.Object ref = name_; 13183 16787 if (!(ref instanceof java.lang.String)) { … … 13196 16800 * <code>optional string name = 1;</code> 13197 16801 */ 13198 @Override 13199 public com.google.protobuf.ByteString 16802 public com.google.protobuf.ByteString 13200 16803 getNameBytes() { 13201 16804 java.lang.Object ref = name_; 13202 16805 if (ref instanceof String) { 13203 com.google.protobuf.ByteString b = 16806 com.google.protobuf.ByteString b = 13204 16807 com.google.protobuf.ByteString.copyFromUtf8( 13205 16808 (java.lang.String) ref); … … 13250 16853 private void ensureMethodIsMutable() { 13251 16854 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 13252 method_ = new java.util.ArrayList< >(method_);16855 method_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.MethodDescriptorProto>(method_); 13253 16856 bitField0_ |= 0x00000002; 13254 16857 } 13255 16858 } 13256 16859 13257 private com.google.protobuf.RepeatedFieldBuilder <16860 private com.google.protobuf.RepeatedFieldBuilderV3< 13258 16861 com.google.protobuf.DescriptorProtos.MethodDescriptorProto, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> methodBuilder_; 13259 16862 … … 13261 16864 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 13262 16865 */ 13263 @Override 13264 public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> getMethodList() { 16866 public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto> getMethodList() { 13265 16867 if (methodBuilder_ == null) { 13266 16868 return java.util.Collections.unmodifiableList(method_); … … 13272 16874 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 13273 16875 */ 13274 @Override 13275 public int getMethodCount() { 16876 public int getMethodCount() { 13276 16877 if (methodBuilder_ == null) { 13277 16878 return method_.size(); … … 13283 16884 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 13284 16885 */ 13285 @Override 13286 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index) { 16886 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getMethod(int index) { 13287 16887 if (methodBuilder_ == null) { 13288 16888 return method_.get(index); … … 13434 17034 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 13435 17035 */ 13436 @Override 13437 public com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( 17036 public com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder( 13438 17037 int index) { 13439 17038 if (methodBuilder_ == null) { … … 13445 17044 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 13446 17045 */ 13447 @Override 13448 public java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 17046 public java.util.List<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 13449 17047 getMethodOrBuilderList() { 13450 17048 if (methodBuilder_ != null) { … … 13472 17070 * <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code> 13473 17071 */ 13474 public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder> 17072 public java.util.List<com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder> 13475 17073 getMethodBuilderList() { 13476 17074 return getMethodFieldBuilder().getBuilderList(); 13477 17075 } 13478 private com.google.protobuf.RepeatedFieldBuilder <13479 com.google.protobuf.DescriptorProtos.MethodDescriptorProto, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 17076 private com.google.protobuf.RepeatedFieldBuilderV3< 17077 com.google.protobuf.DescriptorProtos.MethodDescriptorProto, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder> 13480 17078 getMethodFieldBuilder() { 13481 17079 if (methodBuilder_ == null) { 13482 methodBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 17080 methodBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 17081 com.google.protobuf.DescriptorProtos.MethodDescriptorProto, com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder>( 13483 17082 method_, 13484 17083 ((bitField0_ & 0x00000002) == 0x00000002), … … 13490 17089 } 13491 17090 13492 private com.google.protobuf.DescriptorProtos.ServiceOptions options_ = com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance();13493 private com.google.protobuf.SingleFieldBuilder <17091 private com.google.protobuf.DescriptorProtos.ServiceOptions options_ = null; 17092 private com.google.protobuf.SingleFieldBuilderV3< 13494 17093 com.google.protobuf.DescriptorProtos.ServiceOptions, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder, com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder> optionsBuilder_; 13495 17094 /** 13496 17095 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 13497 17096 */ 13498 @Override 13499 public boolean hasOptions() { 17097 public boolean hasOptions() { 13500 17098 return ((bitField0_ & 0x00000004) == 0x00000004); 13501 17099 } … … 13503 17101 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 13504 17102 */ 13505 @Override 13506 public com.google.protobuf.DescriptorProtos.ServiceOptions getOptions() { 17103 public com.google.protobuf.DescriptorProtos.ServiceOptions getOptions() { 13507 17104 if (optionsBuilder_ == null) { 13508 return options_ ;17105 return options_ == null ? com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance() : options_; 13509 17106 } else { 13510 17107 return optionsBuilder_.getMessage(); … … 13547 17144 if (optionsBuilder_ == null) { 13548 17145 if (((bitField0_ & 0x00000004) == 0x00000004) && 17146 options_ != null && 13549 17147 options_ != com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance()) { 13550 17148 options_ = … … 13565 17163 public Builder clearOptions() { 13566 17164 if (optionsBuilder_ == null) { 13567 options_ = com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance();17165 options_ = null; 13568 17166 onChanged(); 13569 17167 } else { … … 13584 17182 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 13585 17183 */ 13586 @Override 13587 public com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder() { 17184 public com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder() { 13588 17185 if (optionsBuilder_ != null) { 13589 17186 return optionsBuilder_.getMessageOrBuilder(); 13590 17187 } else { 13591 return options_; 17188 return options_ == null ? 17189 com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance() : options_; 13592 17190 } 13593 17191 } … … 13595 17193 * <code>optional .google.protobuf.ServiceOptions options = 3;</code> 13596 17194 */ 13597 private com.google.protobuf.SingleFieldBuilder <13598 com.google.protobuf.DescriptorProtos.ServiceOptions, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder, com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder> 17195 private com.google.protobuf.SingleFieldBuilderV3< 17196 com.google.protobuf.DescriptorProtos.ServiceOptions, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder, com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder> 13599 17197 getOptionsFieldBuilder() { 13600 17198 if (optionsBuilder_ == null) { 13601 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<>( 17199 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 17200 com.google.protobuf.DescriptorProtos.ServiceOptions, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder, com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder>( 13602 17201 getOptions(), 13603 17202 getParentForChildren(), … … 13607 17206 return optionsBuilder_; 13608 17207 } 17208 public final Builder setUnknownFields( 17209 final com.google.protobuf.UnknownFieldSet unknownFields) { 17210 return super.setUnknownFields(unknownFields); 17211 } 17212 17213 public final Builder mergeUnknownFields( 17214 final com.google.protobuf.UnknownFieldSet unknownFields) { 17215 return super.mergeUnknownFields(unknownFields); 17216 } 17217 13609 17218 13610 17219 // @@protoc_insertion_point(builder_scope:google.protobuf.ServiceDescriptorProto) 13611 17220 } 13612 17221 17222 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto) 17223 private static final com.google.protobuf.DescriptorProtos.ServiceDescriptorProto DEFAULT_INSTANCE; 13613 17224 static { 13614 defaultInstance = new ServiceDescriptorProto(true); 13615 defaultInstance.initFields(); 13616 } 13617 13618 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto) 17225 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.ServiceDescriptorProto(); 17226 } 17227 17228 public static com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getDefaultInstance() { 17229 return DEFAULT_INSTANCE; 17230 } 17231 17232 @java.lang.Deprecated public static final com.google.protobuf.Parser<ServiceDescriptorProto> 17233 PARSER = new com.google.protobuf.AbstractParser<ServiceDescriptorProto>() { 17234 public ServiceDescriptorProto parsePartialFrom( 17235 com.google.protobuf.CodedInputStream input, 17236 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 17237 throws com.google.protobuf.InvalidProtocolBufferException { 17238 return new ServiceDescriptorProto(input, extensionRegistry); 17239 } 17240 }; 17241 17242 public static com.google.protobuf.Parser<ServiceDescriptorProto> parser() { 17243 return PARSER; 17244 } 17245 17246 @java.lang.Override 17247 public com.google.protobuf.Parser<ServiceDescriptorProto> getParserForType() { 17248 return PARSER; 17249 } 17250 17251 public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getDefaultInstanceForType() { 17252 return DEFAULT_INSTANCE; 17253 } 17254 13619 17255 } 13620 17256 … … 13638 17274 13639 17275 /** 13640 * <code>optional string input_type = 2;</code>13641 *13642 17276 * <pre> 13643 17277 * Input and output type names. These are resolved in the same way as 13644 17278 * FieldDescriptorProto.type_name, but must refer to a message type. 13645 17279 * </pre> 17280 * 17281 * <code>optional string input_type = 2;</code> 13646 17282 */ 13647 17283 boolean hasInputType(); 13648 17284 /** 13649 * <code>optional string input_type = 2;</code>13650 *13651 17285 * <pre> 13652 17286 * Input and output type names. These are resolved in the same way as 13653 17287 * FieldDescriptorProto.type_name, but must refer to a message type. 13654 17288 * </pre> 17289 * 17290 * <code>optional string input_type = 2;</code> 13655 17291 */ 13656 17292 java.lang.String getInputType(); 13657 17293 /** 13658 * <code>optional string input_type = 2;</code>13659 *13660 17294 * <pre> 13661 17295 * Input and output type names. These are resolved in the same way as 13662 17296 * FieldDescriptorProto.type_name, but must refer to a message type. 13663 17297 * </pre> 17298 * 17299 * <code>optional string input_type = 2;</code> 13664 17300 */ 13665 17301 com.google.protobuf.ByteString … … 13692 17328 */ 13693 17329 com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder(); 17330 17331 /** 17332 * <pre> 17333 * Identifies if client streams multiple client messages 17334 * </pre> 17335 * 17336 * <code>optional bool client_streaming = 5 [default = false];</code> 17337 */ 17338 boolean hasClientStreaming(); 17339 /** 17340 * <pre> 17341 * Identifies if client streams multiple client messages 17342 * </pre> 17343 * 17344 * <code>optional bool client_streaming = 5 [default = false];</code> 17345 */ 17346 boolean getClientStreaming(); 17347 17348 /** 17349 * <pre> 17350 * Identifies if server streams multiple server messages 17351 * </pre> 17352 * 17353 * <code>optional bool server_streaming = 6 [default = false];</code> 17354 */ 17355 boolean hasServerStreaming(); 17356 /** 17357 * <pre> 17358 * Identifies if server streams multiple server messages 17359 * </pre> 17360 * 17361 * <code>optional bool server_streaming = 6 [default = false];</code> 17362 */ 17363 boolean getServerStreaming(); 13694 17364 } 13695 17365 /** 13696 * Protobuf type {@code google.protobuf.MethodDescriptorProto}13697 *13698 17366 * <pre> 13699 17367 * Describes a method of a service. 13700 17368 * </pre> 17369 * 17370 * Protobuf type {@code google.protobuf.MethodDescriptorProto} 13701 17371 */ 13702 public static final class MethodDescriptorProto extends13703 com.google.protobuf.GeneratedMessage implements17372 public static final class MethodDescriptorProto extends 17373 com.google.protobuf.GeneratedMessageV3 implements 13704 17374 // @@protoc_insertion_point(message_implements:google.protobuf.MethodDescriptorProto) 13705 17375 MethodDescriptorProtoOrBuilder { 17376 private static final long serialVersionUID = 0L; 13706 17377 // Use MethodDescriptorProto.newBuilder() to construct. 13707 private MethodDescriptorProto(com.google.protobuf.GeneratedMessage .Builder<?> builder) {17378 private MethodDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 13708 17379 super(builder); 13709 this.unknownFields = builder.getUnknownFields(); 13710 } 13711 private MethodDescriptorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 13712 13713 private static final MethodDescriptorProto defaultInstance; 13714 public static MethodDescriptorProto getDefaultInstance() { 13715 return defaultInstance; 13716 } 13717 13718 @Override 13719 public MethodDescriptorProto getDefaultInstanceForType() { 13720 return defaultInstance; 13721 } 13722 13723 private final com.google.protobuf.UnknownFieldSet unknownFields; 17380 } 17381 private MethodDescriptorProto() { 17382 name_ = ""; 17383 inputType_ = ""; 17384 outputType_ = ""; 17385 clientStreaming_ = false; 17386 serverStreaming_ = false; 17387 } 17388 13724 17389 @java.lang.Override 13725 17390 public final com.google.protobuf.UnknownFieldSet 13726 17391 getUnknownFields() { 13727 17392 return this.unknownFields; 13728 17393 } … … 13731 17396 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 13732 17397 throws com.google.protobuf.InvalidProtocolBufferException { 13733 initFields();17398 this(); 13734 17399 int mutable_bitField0_ = 0; 13735 17400 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 13744 17409 break; 13745 17410 default: { 13746 if (!parseUnknownField( input, unknownFields,13747 17411 if (!parseUnknownField( 17412 input, unknownFields, extensionRegistry, tag)) { 13748 17413 done = true; 13749 17414 } … … 13781 17446 break; 13782 17447 } 17448 case 40: { 17449 bitField0_ |= 0x00000010; 17450 clientStreaming_ = input.readBool(); 17451 break; 17452 } 17453 case 48: { 17454 bitField0_ |= 0x00000020; 17455 serverStreaming_ = input.readBool(); 17456 break; 17457 } 13783 17458 } 13784 17459 } … … 13787 17462 } catch (java.io.IOException e) { 13788 17463 throw new com.google.protobuf.InvalidProtocolBufferException( 13789 e .getMessage()).setUnfinishedMessage(this);17464 e).setUnfinishedMessage(this); 13790 17465 } finally { 13791 17466 this.unknownFields = unknownFields.build(); … … 13798 17473 } 13799 17474 13800 @Override 13801 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 17475 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 13802 17476 internalGetFieldAccessorTable() { 13803 17477 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable … … 13806 17480 } 13807 17481 13808 public static com.google.protobuf.Parser<MethodDescriptorProto> PARSER =13809 new com.google.protobuf.AbstractParser<MethodDescriptorProto>() {13810 @Override13811 public MethodDescriptorProto parsePartialFrom(13812 com.google.protobuf.CodedInputStream input,13813 com.google.protobuf.ExtensionRegistryLite extensionRegistry)13814 throws com.google.protobuf.InvalidProtocolBufferException {13815 return new MethodDescriptorProto(input, extensionRegistry);13816 }13817 };13818 13819 @java.lang.Override13820 public com.google.protobuf.Parser<MethodDescriptorProto> getParserForType() {13821 return PARSER;13822 }13823 13824 17482 private int bitField0_; 13825 17483 public static final int NAME_FIELD_NUMBER = 1; 13826 private java.lang.Object name_;17484 private volatile java.lang.Object name_; 13827 17485 /** 13828 17486 * <code>optional string name = 1;</code> 13829 17487 */ 13830 @Override 13831 public boolean hasName() { 17488 public boolean hasName() { 13832 17489 return ((bitField0_ & 0x00000001) == 0x00000001); 13833 17490 } … … 13835 17492 * <code>optional string name = 1;</code> 13836 17493 */ 13837 @Override 13838 public java.lang.String getName() { 17494 public java.lang.String getName() { 13839 17495 java.lang.Object ref = name_; 13840 17496 if (ref instanceof java.lang.String) { 13841 17497 return (java.lang.String) ref; 13842 17498 } else { 13843 com.google.protobuf.ByteString bs = 17499 com.google.protobuf.ByteString bs = 13844 17500 (com.google.protobuf.ByteString) ref; 13845 17501 java.lang.String s = bs.toStringUtf8(); … … 13853 17509 * <code>optional string name = 1;</code> 13854 17510 */ 13855 @Override 13856 public com.google.protobuf.ByteString 17511 public com.google.protobuf.ByteString 13857 17512 getNameBytes() { 13858 17513 java.lang.Object ref = name_; 13859 17514 if (ref instanceof java.lang.String) { 13860 com.google.protobuf.ByteString b = 17515 com.google.protobuf.ByteString b = 13861 17516 com.google.protobuf.ByteString.copyFromUtf8( 13862 17517 (java.lang.String) ref); … … 13869 17524 13870 17525 public static final int INPUT_TYPE_FIELD_NUMBER = 2; 13871 private java.lang.Object inputType_; 13872 /** 13873 * <code>optional string input_type = 2;</code> 13874 * 17526 private volatile java.lang.Object inputType_; 17527 /** 13875 17528 * <pre> 13876 17529 * Input and output type names. These are resolved in the same way as 13877 17530 * FieldDescriptorProto.type_name, but must refer to a message type. 13878 17531 * </pre> 13879 */ 13880 @Override 13881 public boolean hasInputType() { 17532 * 17533 * <code>optional string input_type = 2;</code> 17534 */ 17535 public boolean hasInputType() { 13882 17536 return ((bitField0_ & 0x00000002) == 0x00000002); 13883 17537 } 13884 17538 /** 13885 * <code>optional string input_type = 2;</code>13886 *13887 17539 * <pre> 13888 17540 * Input and output type names. These are resolved in the same way as 13889 17541 * FieldDescriptorProto.type_name, but must refer to a message type. 13890 17542 * </pre> 13891 */ 13892 @Override 13893 public java.lang.String getInputType() { 17543 * 17544 * <code>optional string input_type = 2;</code> 17545 */ 17546 public java.lang.String getInputType() { 13894 17547 java.lang.Object ref = inputType_; 13895 17548 if (ref instanceof java.lang.String) { 13896 17549 return (java.lang.String) ref; 13897 17550 } else { 13898 com.google.protobuf.ByteString bs = 17551 com.google.protobuf.ByteString bs = 13899 17552 (com.google.protobuf.ByteString) ref; 13900 17553 java.lang.String s = bs.toStringUtf8(); … … 13906 17559 } 13907 17560 /** 13908 * <code>optional string input_type = 2;</code>13909 *13910 17561 * <pre> 13911 17562 * Input and output type names. These are resolved in the same way as 13912 17563 * FieldDescriptorProto.type_name, but must refer to a message type. 13913 17564 * </pre> 13914 */ 13915 @Override 13916 public com.google.protobuf.ByteString 17565 * 17566 * <code>optional string input_type = 2;</code> 17567 */ 17568 public com.google.protobuf.ByteString 13917 17569 getInputTypeBytes() { 13918 17570 java.lang.Object ref = inputType_; 13919 17571 if (ref instanceof java.lang.String) { 13920 com.google.protobuf.ByteString b = 17572 com.google.protobuf.ByteString b = 13921 17573 com.google.protobuf.ByteString.copyFromUtf8( 13922 17574 (java.lang.String) ref); … … 13929 17581 13930 17582 public static final int OUTPUT_TYPE_FIELD_NUMBER = 3; 13931 private java.lang.Object outputType_;17583 private volatile java.lang.Object outputType_; 13932 17584 /** 13933 17585 * <code>optional string output_type = 3;</code> 13934 17586 */ 13935 @Override 13936 public boolean hasOutputType() { 17587 public boolean hasOutputType() { 13937 17588 return ((bitField0_ & 0x00000004) == 0x00000004); 13938 17589 } … … 13940 17591 * <code>optional string output_type = 3;</code> 13941 17592 */ 13942 @Override 13943 public java.lang.String getOutputType() { 17593 public java.lang.String getOutputType() { 13944 17594 java.lang.Object ref = outputType_; 13945 17595 if (ref instanceof java.lang.String) { 13946 17596 return (java.lang.String) ref; 13947 17597 } else { 13948 com.google.protobuf.ByteString bs = 17598 com.google.protobuf.ByteString bs = 13949 17599 (com.google.protobuf.ByteString) ref; 13950 17600 java.lang.String s = bs.toStringUtf8(); … … 13958 17608 * <code>optional string output_type = 3;</code> 13959 17609 */ 13960 @Override 13961 public com.google.protobuf.ByteString 17610 public com.google.protobuf.ByteString 13962 17611 getOutputTypeBytes() { 13963 17612 java.lang.Object ref = outputType_; 13964 17613 if (ref instanceof java.lang.String) { 13965 com.google.protobuf.ByteString b = 17614 com.google.protobuf.ByteString b = 13966 17615 com.google.protobuf.ByteString.copyFromUtf8( 13967 17616 (java.lang.String) ref); … … 13978 17627 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13979 17628 */ 13980 @Override 13981 public boolean hasOptions() { 17629 public boolean hasOptions() { 13982 17630 return ((bitField0_ & 0x00000008) == 0x00000008); 13983 17631 } … … 13985 17633 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13986 17634 */ 13987 @Override 13988 public com.google.protobuf.DescriptorProtos.MethodOptions getOptions() { 13989 return options_; 17635 public com.google.protobuf.DescriptorProtos.MethodOptions getOptions() { 17636 return options_ == null ? com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance() : options_; 13990 17637 } 13991 17638 /** 13992 17639 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 13993 17640 */ 13994 @Override 13995 public com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder() { 13996 return options_; 13997 } 13998 13999 private void initFields() { 14000 name_ = ""; 14001 inputType_ = ""; 14002 outputType_ = ""; 14003 options_ = com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance(); 14004 } 17641 public com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder() { 17642 return options_ == null ? com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance() : options_; 17643 } 17644 17645 public static final int CLIENT_STREAMING_FIELD_NUMBER = 5; 17646 private boolean clientStreaming_; 17647 /** 17648 * <pre> 17649 * Identifies if client streams multiple client messages 17650 * </pre> 17651 * 17652 * <code>optional bool client_streaming = 5 [default = false];</code> 17653 */ 17654 public boolean hasClientStreaming() { 17655 return ((bitField0_ & 0x00000010) == 0x00000010); 17656 } 17657 /** 17658 * <pre> 17659 * Identifies if client streams multiple client messages 17660 * </pre> 17661 * 17662 * <code>optional bool client_streaming = 5 [default = false];</code> 17663 */ 17664 public boolean getClientStreaming() { 17665 return clientStreaming_; 17666 } 17667 17668 public static final int SERVER_STREAMING_FIELD_NUMBER = 6; 17669 private boolean serverStreaming_; 17670 /** 17671 * <pre> 17672 * Identifies if server streams multiple server messages 17673 * </pre> 17674 * 17675 * <code>optional bool server_streaming = 6 [default = false];</code> 17676 */ 17677 public boolean hasServerStreaming() { 17678 return ((bitField0_ & 0x00000020) == 0x00000020); 17679 } 17680 /** 17681 * <pre> 17682 * Identifies if server streams multiple server messages 17683 * </pre> 17684 * 17685 * <code>optional bool server_streaming = 6 [default = false];</code> 17686 */ 17687 public boolean getServerStreaming() { 17688 return serverStreaming_; 17689 } 17690 14005 17691 private byte memoizedIsInitialized = -1; 14006 @Override 14007 public final boolean isInitialized() { 17692 public final boolean isInitialized() { 14008 17693 byte isInitialized = memoizedIsInitialized; 14009 17694 if (isInitialized == 1) return true; … … 14020 17705 } 14021 17706 14022 @Override 14023 public void writeTo(com.google.protobuf.CodedOutputStream output) 17707 public void writeTo(com.google.protobuf.CodedOutputStream output) 14024 17708 throws java.io.IOException { 14025 getSerializedSize();14026 17709 if (((bitField0_ & 0x00000001) == 0x00000001)) { 14027 output.writeBytes(1, getNameBytes());17710 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 14028 17711 } 14029 17712 if (((bitField0_ & 0x00000002) == 0x00000002)) { 14030 output.writeBytes(2, getInputTypeBytes());17713 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputType_); 14031 17714 } 14032 17715 if (((bitField0_ & 0x00000004) == 0x00000004)) { 14033 output.writeBytes(3, getOutputTypeBytes());17716 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputType_); 14034 17717 } 14035 17718 if (((bitField0_ & 0x00000008) == 0x00000008)) { 14036 output.writeMessage(4, options_); 14037 } 14038 getUnknownFields().writeTo(output); 14039 } 14040 14041 private int memoizedSerializedSize = -1; 14042 @Override 14043 public int getSerializedSize() { 14044 int size = memoizedSerializedSize; 17719 output.writeMessage(4, getOptions()); 17720 } 17721 if (((bitField0_ & 0x00000010) == 0x00000010)) { 17722 output.writeBool(5, clientStreaming_); 17723 } 17724 if (((bitField0_ & 0x00000020) == 0x00000020)) { 17725 output.writeBool(6, serverStreaming_); 17726 } 17727 unknownFields.writeTo(output); 17728 } 17729 17730 public int getSerializedSize() { 17731 int size = memoizedSize; 14045 17732 if (size != -1) return size; 14046 17733 14047 17734 size = 0; 14048 17735 if (((bitField0_ & 0x00000001) == 0x00000001)) { 14049 size += com.google.protobuf.CodedOutputStream 14050 .computeBytesSize(1, getNameBytes()); 17736 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 14051 17737 } 14052 17738 if (((bitField0_ & 0x00000002) == 0x00000002)) { 14053 size += com.google.protobuf.CodedOutputStream 14054 .computeBytesSize(2, getInputTypeBytes()); 17739 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputType_); 14055 17740 } 14056 17741 if (((bitField0_ & 0x00000004) == 0x00000004)) { 14057 size += com.google.protobuf.CodedOutputStream 14058 .computeBytesSize(3, getOutputTypeBytes()); 17742 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputType_); 14059 17743 } 14060 17744 if (((bitField0_ & 0x00000008) == 0x00000008)) { 14061 17745 size += com.google.protobuf.CodedOutputStream 14062 .computeMessageSize(4, options_); 14063 } 14064 size += getUnknownFields().getSerializedSize(); 14065 memoizedSerializedSize = size; 17746 .computeMessageSize(4, getOptions()); 17747 } 17748 if (((bitField0_ & 0x00000010) == 0x00000010)) { 17749 size += com.google.protobuf.CodedOutputStream 17750 .computeBoolSize(5, clientStreaming_); 17751 } 17752 if (((bitField0_ & 0x00000020) == 0x00000020)) { 17753 size += com.google.protobuf.CodedOutputStream 17754 .computeBoolSize(6, serverStreaming_); 17755 } 17756 size += unknownFields.getSerializedSize(); 17757 memoizedSize = size; 14066 17758 return size; 14067 17759 } 14068 17760 14069 private static final long serialVersionUID = 0L;14070 17761 @java.lang.Override 14071 protected java.lang.Object writeReplace() 14072 throws java.io.ObjectStreamException { 14073 return super.writeReplace(); 14074 } 14075 17762 public boolean equals(final java.lang.Object obj) { 17763 if (obj == this) { 17764 return true; 17765 } 17766 if (!(obj instanceof com.google.protobuf.DescriptorProtos.MethodDescriptorProto)) { 17767 return super.equals(obj); 17768 } 17769 com.google.protobuf.DescriptorProtos.MethodDescriptorProto other = (com.google.protobuf.DescriptorProtos.MethodDescriptorProto) obj; 17770 17771 boolean result = true; 17772 result = result && (hasName() == other.hasName()); 17773 if (hasName()) { 17774 result = result && getName() 17775 .equals(other.getName()); 17776 } 17777 result = result && (hasInputType() == other.hasInputType()); 17778 if (hasInputType()) { 17779 result = result && getInputType() 17780 .equals(other.getInputType()); 17781 } 17782 result = result && (hasOutputType() == other.hasOutputType()); 17783 if (hasOutputType()) { 17784 result = result && getOutputType() 17785 .equals(other.getOutputType()); 17786 } 17787 result = result && (hasOptions() == other.hasOptions()); 17788 if (hasOptions()) { 17789 result = result && getOptions() 17790 .equals(other.getOptions()); 17791 } 17792 result = result && (hasClientStreaming() == other.hasClientStreaming()); 17793 if (hasClientStreaming()) { 17794 result = result && (getClientStreaming() 17795 == other.getClientStreaming()); 17796 } 17797 result = result && (hasServerStreaming() == other.hasServerStreaming()); 17798 if (hasServerStreaming()) { 17799 result = result && (getServerStreaming() 17800 == other.getServerStreaming()); 17801 } 17802 result = result && unknownFields.equals(other.unknownFields); 17803 return result; 17804 } 17805 17806 @java.lang.Override 17807 public int hashCode() { 17808 if (memoizedHashCode != 0) { 17809 return memoizedHashCode; 17810 } 17811 int hash = 41; 17812 hash = (19 * hash) + getDescriptor().hashCode(); 17813 if (hasName()) { 17814 hash = (37 * hash) + NAME_FIELD_NUMBER; 17815 hash = (53 * hash) + getName().hashCode(); 17816 } 17817 if (hasInputType()) { 17818 hash = (37 * hash) + INPUT_TYPE_FIELD_NUMBER; 17819 hash = (53 * hash) + getInputType().hashCode(); 17820 } 17821 if (hasOutputType()) { 17822 hash = (37 * hash) + OUTPUT_TYPE_FIELD_NUMBER; 17823 hash = (53 * hash) + getOutputType().hashCode(); 17824 } 17825 if (hasOptions()) { 17826 hash = (37 * hash) + OPTIONS_FIELD_NUMBER; 17827 hash = (53 * hash) + getOptions().hashCode(); 17828 } 17829 if (hasClientStreaming()) { 17830 hash = (37 * hash) + CLIENT_STREAMING_FIELD_NUMBER; 17831 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 17832 getClientStreaming()); 17833 } 17834 if (hasServerStreaming()) { 17835 hash = (37 * hash) + SERVER_STREAMING_FIELD_NUMBER; 17836 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 17837 getServerStreaming()); 17838 } 17839 hash = (29 * hash) + unknownFields.hashCode(); 17840 memoizedHashCode = hash; 17841 return hash; 17842 } 17843 17844 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 17845 java.nio.ByteBuffer data) 17846 throws com.google.protobuf.InvalidProtocolBufferException { 17847 return PARSER.parseFrom(data); 17848 } 17849 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 17850 java.nio.ByteBuffer data, 17851 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 17852 throws com.google.protobuf.InvalidProtocolBufferException { 17853 return PARSER.parseFrom(data, extensionRegistry); 17854 } 14076 17855 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 14077 17856 com.google.protobuf.ByteString data) … … 14097 17876 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom(java.io.InputStream input) 14098 17877 throws java.io.IOException { 14099 return PARSER.parseFrom(input); 17878 return com.google.protobuf.GeneratedMessageV3 17879 .parseWithIOException(PARSER, input); 14100 17880 } 14101 17881 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( … … 14103 17883 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14104 17884 throws java.io.IOException { 14105 return PARSER.parseFrom(input, extensionRegistry); 17885 return com.google.protobuf.GeneratedMessageV3 17886 .parseWithIOException(PARSER, input, extensionRegistry); 14106 17887 } 14107 17888 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseDelimitedFrom(java.io.InputStream input) 14108 17889 throws java.io.IOException { 14109 return PARSER.parseDelimitedFrom(input); 17890 return com.google.protobuf.GeneratedMessageV3 17891 .parseDelimitedWithIOException(PARSER, input); 14110 17892 } 14111 17893 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseDelimitedFrom( … … 14113 17895 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14114 17896 throws java.io.IOException { 14115 return PARSER.parseDelimitedFrom(input, extensionRegistry); 17897 return com.google.protobuf.GeneratedMessageV3 17898 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 14116 17899 } 14117 17900 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( 14118 17901 com.google.protobuf.CodedInputStream input) 14119 17902 throws java.io.IOException { 14120 return PARSER.parseFrom(input); 17903 return com.google.protobuf.GeneratedMessageV3 17904 .parseWithIOException(PARSER, input); 14121 17905 } 14122 17906 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto parseFrom( … … 14124 17908 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 14125 17909 throws java.io.IOException { 14126 return PARSER.parseFrom(input, extensionRegistry); 14127 } 14128 14129 public static Builder newBuilder() { return Builder.create(); } 14130 @Override 14131 public Builder newBuilderForType() { return newBuilder(); } 17910 return com.google.protobuf.GeneratedMessageV3 17911 .parseWithIOException(PARSER, input, extensionRegistry); 17912 } 17913 17914 public Builder newBuilderForType() { return newBuilder(); } 17915 public static Builder newBuilder() { 17916 return DEFAULT_INSTANCE.toBuilder(); 17917 } 14132 17918 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MethodDescriptorProto prototype) { 14133 return newBuilder().mergeFrom(prototype); 14134 } 14135 @Override 14136 public Builder toBuilder() { return newBuilder(this); } 17919 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 17920 } 17921 public Builder toBuilder() { 17922 return this == DEFAULT_INSTANCE 17923 ? new Builder() : new Builder().mergeFrom(this); 17924 } 14137 17925 14138 17926 @java.lang.Override 14139 17927 protected Builder newBuilderForType( 14140 com.google.protobuf.GeneratedMessage .BuilderParent parent) {17928 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 14141 17929 Builder builder = new Builder(parent); 14142 17930 return builder; 14143 17931 } 14144 17932 /** 14145 * Protobuf type {@code google.protobuf.MethodDescriptorProto}14146 *14147 17933 * <pre> 14148 17934 * Describes a method of a service. 14149 17935 * </pre> 17936 * 17937 * Protobuf type {@code google.protobuf.MethodDescriptorProto} 14150 17938 */ 14151 17939 public static final class Builder extends 14152 com.google.protobuf.GeneratedMessage .Builder<Builder> implements17940 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 14153 17941 // @@protoc_insertion_point(builder_implements:google.protobuf.MethodDescriptorProto) 14154 17942 com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder { … … 14158 17946 } 14159 17947 14160 @Override 14161 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 17948 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 14162 17949 internalGetFieldAccessorTable() { 14163 17950 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable … … 14172 17959 14173 17960 private Builder( 14174 com.google.protobuf.GeneratedMessage .BuilderParent parent) {17961 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 14175 17962 super(parent); 14176 17963 maybeForceBuilderInitialization(); 14177 17964 } 14178 17965 private void maybeForceBuilderInitialization() { 14179 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 17966 if (com.google.protobuf.GeneratedMessageV3 17967 .alwaysUseFieldBuilders) { 14180 17968 getOptionsFieldBuilder(); 14181 17969 } 14182 17970 } 14183 private static Builder create() { 14184 return new Builder(); 14185 } 14186 14187 @Override 14188 public Builder clear() { 17971 public Builder clear() { 14189 17972 super.clear(); 14190 17973 name_ = ""; … … 14195 17978 bitField0_ = (bitField0_ & ~0x00000004); 14196 17979 if (optionsBuilder_ == null) { 14197 options_ = com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance();17980 options_ = null; 14198 17981 } else { 14199 17982 optionsBuilder_.clear(); 14200 17983 } 14201 17984 bitField0_ = (bitField0_ & ~0x00000008); 14202 return this; 14203 } 14204 14205 @Override 14206 public Builder clone() { 14207 return create().mergeFrom(buildPartial()); 14208 } 14209 14210 @Override 14211 public com.google.protobuf.Descriptors.Descriptor 17985 clientStreaming_ = false; 17986 bitField0_ = (bitField0_ & ~0x00000010); 17987 serverStreaming_ = false; 17988 bitField0_ = (bitField0_ & ~0x00000020); 17989 return this; 17990 } 17991 17992 public com.google.protobuf.Descriptors.Descriptor 14212 17993 getDescriptorForType() { 14213 17994 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodDescriptorProto_descriptor; 14214 17995 } 14215 17996 14216 @Override 14217 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType() { 17997 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType() { 14218 17998 return com.google.protobuf.DescriptorProtos.MethodDescriptorProto.getDefaultInstance(); 14219 17999 } 14220 18000 14221 @Override 14222 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto build() { 18001 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto build() { 14223 18002 com.google.protobuf.DescriptorProtos.MethodDescriptorProto result = buildPartial(); 14224 18003 if (!result.isInitialized()) { … … 14228 18007 } 14229 18008 14230 @Override 14231 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto buildPartial() { 18009 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto buildPartial() { 14232 18010 com.google.protobuf.DescriptorProtos.MethodDescriptorProto result = new com.google.protobuf.DescriptorProtos.MethodDescriptorProto(this); 14233 18011 int from_bitField0_ = bitField0_; … … 14253 18031 result.options_ = optionsBuilder_.build(); 14254 18032 } 18033 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 18034 to_bitField0_ |= 0x00000010; 18035 } 18036 result.clientStreaming_ = clientStreaming_; 18037 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 18038 to_bitField0_ |= 0x00000020; 18039 } 18040 result.serverStreaming_ = serverStreaming_; 14255 18041 result.bitField0_ = to_bitField0_; 14256 18042 onBuilt(); … … 14258 18044 } 14259 18045 14260 @Override 14261 public Builder mergeFrom(com.google.protobuf.Message other) { 18046 public Builder clone() { 18047 return (Builder) super.clone(); 18048 } 18049 public Builder setField( 18050 com.google.protobuf.Descriptors.FieldDescriptor field, 18051 java.lang.Object value) { 18052 return (Builder) super.setField(field, value); 18053 } 18054 public Builder clearField( 18055 com.google.protobuf.Descriptors.FieldDescriptor field) { 18056 return (Builder) super.clearField(field); 18057 } 18058 public Builder clearOneof( 18059 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 18060 return (Builder) super.clearOneof(oneof); 18061 } 18062 public Builder setRepeatedField( 18063 com.google.protobuf.Descriptors.FieldDescriptor field, 18064 int index, java.lang.Object value) { 18065 return (Builder) super.setRepeatedField(field, index, value); 18066 } 18067 public Builder addRepeatedField( 18068 com.google.protobuf.Descriptors.FieldDescriptor field, 18069 java.lang.Object value) { 18070 return (Builder) super.addRepeatedField(field, value); 18071 } 18072 public Builder mergeFrom(com.google.protobuf.Message other) { 14262 18073 if (other instanceof com.google.protobuf.DescriptorProtos.MethodDescriptorProto) { 14263 18074 return mergeFrom((com.google.protobuf.DescriptorProtos.MethodDescriptorProto)other); … … 14288 18099 mergeOptions(other.getOptions()); 14289 18100 } 14290 this.mergeUnknownFields(other.getUnknownFields()); 14291 return this; 14292 } 14293 14294 @Override 14295 public final boolean isInitialized() { 18101 if (other.hasClientStreaming()) { 18102 setClientStreaming(other.getClientStreaming()); 18103 } 18104 if (other.hasServerStreaming()) { 18105 setServerStreaming(other.getServerStreaming()); 18106 } 18107 this.mergeUnknownFields(other.unknownFields); 18108 onChanged(); 18109 return this; 18110 } 18111 18112 public final boolean isInitialized() { 14296 18113 if (hasOptions()) { 14297 18114 if (!getOptions().isInitialized()) { 14298 14299 18115 return false; 14300 18116 } … … 14303 18119 } 14304 18120 14305 @Override 14306 public Builder mergeFrom( 18121 public Builder mergeFrom( 14307 18122 com.google.protobuf.CodedInputStream input, 14308 18123 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 14313 18128 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 14314 18129 parsedMessage = (com.google.protobuf.DescriptorProtos.MethodDescriptorProto) e.getUnfinishedMessage(); 14315 throw e ;18130 throw e.unwrapIOException(); 14316 18131 } finally { 14317 18132 if (parsedMessage != null) { … … 14327 18142 * <code>optional string name = 1;</code> 14328 18143 */ 14329 @Override 14330 public boolean hasName() { 18144 public boolean hasName() { 14331 18145 return ((bitField0_ & 0x00000001) == 0x00000001); 14332 18146 } … … 14334 18148 * <code>optional string name = 1;</code> 14335 18149 */ 14336 @Override 14337 public java.lang.String getName() { 18150 public java.lang.String getName() { 14338 18151 java.lang.Object ref = name_; 14339 18152 if (!(ref instanceof java.lang.String)) { … … 14352 18165 * <code>optional string name = 1;</code> 14353 18166 */ 14354 @Override 14355 public com.google.protobuf.ByteString 18167 public com.google.protobuf.ByteString 14356 18168 getNameBytes() { 14357 18169 java.lang.Object ref = name_; 14358 18170 if (ref instanceof String) { 14359 com.google.protobuf.ByteString b = 18171 com.google.protobuf.ByteString b = 14360 18172 com.google.protobuf.ByteString.copyFromUtf8( 14361 18173 (java.lang.String) ref); … … 14404 18216 private java.lang.Object inputType_ = ""; 14405 18217 /** 14406 * <code>optional string input_type = 2;</code>14407 *14408 18218 * <pre> 14409 18219 * Input and output type names. These are resolved in the same way as 14410 18220 * FieldDescriptorProto.type_name, but must refer to a message type. 14411 18221 * </pre> 14412 */ 14413 @Override 14414 public boolean hasInputType() { 18222 * 18223 * <code>optional string input_type = 2;</code> 18224 */ 18225 public boolean hasInputType() { 14415 18226 return ((bitField0_ & 0x00000002) == 0x00000002); 14416 18227 } 14417 18228 /** 14418 * <code>optional string input_type = 2;</code>14419 *14420 18229 * <pre> 14421 18230 * Input and output type names. These are resolved in the same way as 14422 18231 * FieldDescriptorProto.type_name, but must refer to a message type. 14423 18232 * </pre> 14424 */ 14425 @Override 14426 public java.lang.String getInputType() { 18233 * 18234 * <code>optional string input_type = 2;</code> 18235 */ 18236 public java.lang.String getInputType() { 14427 18237 java.lang.Object ref = inputType_; 14428 18238 if (!(ref instanceof java.lang.String)) { … … 14439 18249 } 14440 18250 /** 14441 * <code>optional string input_type = 2;</code>14442 *14443 18251 * <pre> 14444 18252 * Input and output type names. These are resolved in the same way as 14445 18253 * FieldDescriptorProto.type_name, but must refer to a message type. 14446 18254 * </pre> 14447 */ 14448 @Override 14449 public com.google.protobuf.ByteString 18255 * 18256 * <code>optional string input_type = 2;</code> 18257 */ 18258 public com.google.protobuf.ByteString 14450 18259 getInputTypeBytes() { 14451 18260 java.lang.Object ref = inputType_; 14452 18261 if (ref instanceof String) { 14453 com.google.protobuf.ByteString b = 18262 com.google.protobuf.ByteString b = 14454 18263 com.google.protobuf.ByteString.copyFromUtf8( 14455 18264 (java.lang.String) ref); … … 14461 18270 } 14462 18271 /** 14463 * <code>optional string input_type = 2;</code>14464 *14465 18272 * <pre> 14466 18273 * Input and output type names. These are resolved in the same way as 14467 18274 * FieldDescriptorProto.type_name, but must refer to a message type. 14468 18275 * </pre> 18276 * 18277 * <code>optional string input_type = 2;</code> 14469 18278 */ 14470 18279 public Builder setInputType( … … 14479 18288 } 14480 18289 /** 14481 * <code>optional string input_type = 2;</code>14482 *14483 18290 * <pre> 14484 18291 * Input and output type names. These are resolved in the same way as 14485 18292 * FieldDescriptorProto.type_name, but must refer to a message type. 14486 18293 * </pre> 18294 * 18295 * <code>optional string input_type = 2;</code> 14487 18296 */ 14488 18297 public Builder clearInputType() { … … 14493 18302 } 14494 18303 /** 14495 * <code>optional string input_type = 2;</code>14496 *14497 18304 * <pre> 14498 18305 * Input and output type names. These are resolved in the same way as 14499 18306 * FieldDescriptorProto.type_name, but must refer to a message type. 14500 18307 * </pre> 18308 * 18309 * <code>optional string input_type = 2;</code> 14501 18310 */ 14502 18311 public Builder setInputTypeBytes( … … 14515 18324 * <code>optional string output_type = 3;</code> 14516 18325 */ 14517 @Override 14518 public boolean hasOutputType() { 18326 public boolean hasOutputType() { 14519 18327 return ((bitField0_ & 0x00000004) == 0x00000004); 14520 18328 } … … 14522 18330 * <code>optional string output_type = 3;</code> 14523 18331 */ 14524 @Override 14525 public java.lang.String getOutputType() { 18332 public java.lang.String getOutputType() { 14526 18333 java.lang.Object ref = outputType_; 14527 18334 if (!(ref instanceof java.lang.String)) { … … 14540 18347 * <code>optional string output_type = 3;</code> 14541 18348 */ 14542 @Override 14543 public com.google.protobuf.ByteString 18349 public com.google.protobuf.ByteString 14544 18350 getOutputTypeBytes() { 14545 18351 java.lang.Object ref = outputType_; 14546 18352 if (ref instanceof String) { 14547 com.google.protobuf.ByteString b = 18353 com.google.protobuf.ByteString b = 14548 18354 com.google.protobuf.ByteString.copyFromUtf8( 14549 18355 (java.lang.String) ref); … … 14590 18396 } 14591 18397 14592 private com.google.protobuf.DescriptorProtos.MethodOptions options_ = com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance();14593 private com.google.protobuf.SingleFieldBuilder <18398 private com.google.protobuf.DescriptorProtos.MethodOptions options_ = null; 18399 private com.google.protobuf.SingleFieldBuilderV3< 14594 18400 com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder> optionsBuilder_; 14595 18401 /** 14596 18402 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 14597 18403 */ 14598 @Override 14599 public boolean hasOptions() { 18404 public boolean hasOptions() { 14600 18405 return ((bitField0_ & 0x00000008) == 0x00000008); 14601 18406 } … … 14603 18408 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 14604 18409 */ 14605 @Override 14606 public com.google.protobuf.DescriptorProtos.MethodOptions getOptions() { 18410 public com.google.protobuf.DescriptorProtos.MethodOptions getOptions() { 14607 18411 if (optionsBuilder_ == null) { 14608 return options_ ;18412 return options_ == null ? com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance() : options_; 14609 18413 } else { 14610 18414 return optionsBuilder_.getMessage(); … … 14647 18451 if (optionsBuilder_ == null) { 14648 18452 if (((bitField0_ & 0x00000008) == 0x00000008) && 18453 options_ != null && 14649 18454 options_ != com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance()) { 14650 18455 options_ = … … 14665 18470 public Builder clearOptions() { 14666 18471 if (optionsBuilder_ == null) { 14667 options_ = com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance();18472 options_ = null; 14668 18473 onChanged(); 14669 18474 } else { … … 14684 18489 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 14685 18490 */ 14686 @Override 14687 public com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder() { 18491 public com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder getOptionsOrBuilder() { 14688 18492 if (optionsBuilder_ != null) { 14689 18493 return optionsBuilder_.getMessageOrBuilder(); 14690 18494 } else { 14691 return options_; 18495 return options_ == null ? 18496 com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance() : options_; 14692 18497 } 14693 18498 } … … 14695 18500 * <code>optional .google.protobuf.MethodOptions options = 4;</code> 14696 18501 */ 14697 private com.google.protobuf.SingleFieldBuilder <14698 com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder> 18502 private com.google.protobuf.SingleFieldBuilderV3< 18503 com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder> 14699 18504 getOptionsFieldBuilder() { 14700 18505 if (optionsBuilder_ == null) { 14701 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<>( 18506 optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 18507 com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder>( 14702 18508 getOptions(), 14703 18509 getParentForChildren(), … … 14708 18514 } 14709 18515 18516 private boolean clientStreaming_ ; 18517 /** 18518 * <pre> 18519 * Identifies if client streams multiple client messages 18520 * </pre> 18521 * 18522 * <code>optional bool client_streaming = 5 [default = false];</code> 18523 */ 18524 public boolean hasClientStreaming() { 18525 return ((bitField0_ & 0x00000010) == 0x00000010); 18526 } 18527 /** 18528 * <pre> 18529 * Identifies if client streams multiple client messages 18530 * </pre> 18531 * 18532 * <code>optional bool client_streaming = 5 [default = false];</code> 18533 */ 18534 public boolean getClientStreaming() { 18535 return clientStreaming_; 18536 } 18537 /** 18538 * <pre> 18539 * Identifies if client streams multiple client messages 18540 * </pre> 18541 * 18542 * <code>optional bool client_streaming = 5 [default = false];</code> 18543 */ 18544 public Builder setClientStreaming(boolean value) { 18545 bitField0_ |= 0x00000010; 18546 clientStreaming_ = value; 18547 onChanged(); 18548 return this; 18549 } 18550 /** 18551 * <pre> 18552 * Identifies if client streams multiple client messages 18553 * </pre> 18554 * 18555 * <code>optional bool client_streaming = 5 [default = false];</code> 18556 */ 18557 public Builder clearClientStreaming() { 18558 bitField0_ = (bitField0_ & ~0x00000010); 18559 clientStreaming_ = false; 18560 onChanged(); 18561 return this; 18562 } 18563 18564 private boolean serverStreaming_ ; 18565 /** 18566 * <pre> 18567 * Identifies if server streams multiple server messages 18568 * </pre> 18569 * 18570 * <code>optional bool server_streaming = 6 [default = false];</code> 18571 */ 18572 public boolean hasServerStreaming() { 18573 return ((bitField0_ & 0x00000020) == 0x00000020); 18574 } 18575 /** 18576 * <pre> 18577 * Identifies if server streams multiple server messages 18578 * </pre> 18579 * 18580 * <code>optional bool server_streaming = 6 [default = false];</code> 18581 */ 18582 public boolean getServerStreaming() { 18583 return serverStreaming_; 18584 } 18585 /** 18586 * <pre> 18587 * Identifies if server streams multiple server messages 18588 * </pre> 18589 * 18590 * <code>optional bool server_streaming = 6 [default = false];</code> 18591 */ 18592 public Builder setServerStreaming(boolean value) { 18593 bitField0_ |= 0x00000020; 18594 serverStreaming_ = value; 18595 onChanged(); 18596 return this; 18597 } 18598 /** 18599 * <pre> 18600 * Identifies if server streams multiple server messages 18601 * </pre> 18602 * 18603 * <code>optional bool server_streaming = 6 [default = false];</code> 18604 */ 18605 public Builder clearServerStreaming() { 18606 bitField0_ = (bitField0_ & ~0x00000020); 18607 serverStreaming_ = false; 18608 onChanged(); 18609 return this; 18610 } 18611 public final Builder setUnknownFields( 18612 final com.google.protobuf.UnknownFieldSet unknownFields) { 18613 return super.setUnknownFields(unknownFields); 18614 } 18615 18616 public final Builder mergeUnknownFields( 18617 final com.google.protobuf.UnknownFieldSet unknownFields) { 18618 return super.mergeUnknownFields(unknownFields); 18619 } 18620 18621 14710 18622 // @@protoc_insertion_point(builder_scope:google.protobuf.MethodDescriptorProto) 14711 18623 } 14712 18624 18625 // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto) 18626 private static final com.google.protobuf.DescriptorProtos.MethodDescriptorProto DEFAULT_INSTANCE; 14713 18627 static { 14714 defaultInstance = new MethodDescriptorProto(true); 14715 defaultInstance.initFields(); 14716 } 14717 14718 // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto) 18628 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.MethodDescriptorProto(); 18629 } 18630 18631 public static com.google.protobuf.DescriptorProtos.MethodDescriptorProto getDefaultInstance() { 18632 return DEFAULT_INSTANCE; 18633 } 18634 18635 @java.lang.Deprecated public static final com.google.protobuf.Parser<MethodDescriptorProto> 18636 PARSER = new com.google.protobuf.AbstractParser<MethodDescriptorProto>() { 18637 public MethodDescriptorProto parsePartialFrom( 18638 com.google.protobuf.CodedInputStream input, 18639 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 18640 throws com.google.protobuf.InvalidProtocolBufferException { 18641 return new MethodDescriptorProto(input, extensionRegistry); 18642 } 18643 }; 18644 18645 public static com.google.protobuf.Parser<MethodDescriptorProto> parser() { 18646 return PARSER; 18647 } 18648 18649 @java.lang.Override 18650 public com.google.protobuf.Parser<MethodDescriptorProto> getParserForType() { 18651 return PARSER; 18652 } 18653 18654 public com.google.protobuf.DescriptorProtos.MethodDescriptorProto getDefaultInstanceForType() { 18655 return DEFAULT_INSTANCE; 18656 } 18657 14719 18658 } 14720 18659 14721 18660 public interface FileOptionsOrBuilder extends 14722 18661 // @@protoc_insertion_point(interface_extends:google.protobuf.FileOptions) 14723 com.google.protobuf.GeneratedMessage .18662 com.google.protobuf.GeneratedMessageV3. 14724 18663 ExtendableMessageOrBuilder<FileOptions> { 14725 18664 14726 18665 /** 14727 * <code>optional string java_package = 1;</code>14728 *14729 18666 * <pre> 14730 18667 * Sets the Java package where classes generated from this .proto will be … … 14733 18670 * domain names. 14734 18671 * </pre> 18672 * 18673 * <code>optional string java_package = 1;</code> 14735 18674 */ 14736 18675 boolean hasJavaPackage(); 14737 18676 /** 14738 * <code>optional string java_package = 1;</code>14739 *14740 18677 * <pre> 14741 18678 * Sets the Java package where classes generated from this .proto will be … … 14744 18681 * domain names. 14745 18682 * </pre> 18683 * 18684 * <code>optional string java_package = 1;</code> 14746 18685 */ 14747 18686 java.lang.String getJavaPackage(); 14748 18687 /** 14749 * <code>optional string java_package = 1;</code>14750 *14751 18688 * <pre> 14752 18689 * Sets the Java package where classes generated from this .proto will be … … 14755 18692 * domain names. 14756 18693 * </pre> 18694 * 18695 * <code>optional string java_package = 1;</code> 14757 18696 */ 14758 18697 com.google.protobuf.ByteString … … 14760 18699 14761 18700 /** 14762 * <code>optional string java_outer_classname = 8;</code>14763 *14764 18701 * <pre> 14765 18702 * If set, all the classes from the .proto file are wrapped in a single … … 14769 18706 * explicitly choose the class name). 14770 18707 * </pre> 18708 * 18709 * <code>optional string java_outer_classname = 8;</code> 14771 18710 */ 14772 18711 boolean hasJavaOuterClassname(); 14773 18712 /** 14774 * <code>optional string java_outer_classname = 8;</code>14775 *14776 18713 * <pre> 14777 18714 * If set, all the classes from the .proto file are wrapped in a single … … 14781 18718 * explicitly choose the class name). 14782 18719 * </pre> 18720 * 18721 * <code>optional string java_outer_classname = 8;</code> 14783 18722 */ 14784 18723 java.lang.String getJavaOuterClassname(); 14785 18724 /** 14786 * <code>optional string java_outer_classname = 8;</code>14787 *14788 18725 * <pre> 14789 18726 * If set, all the classes from the .proto file are wrapped in a single … … 14793 18730 * explicitly choose the class name). 14794 18731 * </pre> 18732 * 18733 * <code>optional string java_outer_classname = 8;</code> 14795 18734 */ 14796 18735 com.google.protobuf.ByteString … … 14798 18737 14799 18738 /** 14800 * <code>optional bool java_multiple_files = 10 [default = false];</code>14801 *14802 18739 * <pre> 14803 18740 * If set true, then the Java code generator will generate a separate .java … … 14808 18745 * top-level extensions defined in the file. 14809 18746 * </pre> 18747 * 18748 * <code>optional bool java_multiple_files = 10 [default = false];</code> 14810 18749 */ 14811 18750 boolean hasJavaMultipleFiles(); 14812 18751 /** 14813 * <code>optional bool java_multiple_files = 10 [default = false];</code>14814 *14815 18752 * <pre> 14816 18753 * If set true, then the Java code generator will generate a separate .java … … 14821 18758 * top-level extensions defined in the file. 14822 18759 * </pre> 18760 * 18761 * <code>optional bool java_multiple_files = 10 [default = false];</code> 14823 18762 */ 14824 18763 boolean getJavaMultipleFiles(); 14825 18764 14826 18765 /** 14827 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 18766 * <pre> 18767 * This option does nothing. 18768 * </pre> 14828 18769 * 18770 * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> 18771 */ 18772 @java.lang.Deprecated boolean hasJavaGenerateEqualsAndHash(); 18773 /** 14829 18774 * <pre> 14830 * If set true, then the Java code generator will generate equals() and 14831 * hashCode() methods for all messages defined in the .proto file. 14832 * - In the full runtime, this is purely a speed optimization, as the 14833 * AbstractMessage base class includes reflection-based implementations of 14834 * these methods. 14835 *- In the lite runtime, setting this option changes the semantics of 14836 * equals() and hashCode() to more closely match those of the full runtime; 14837 * the generated methods compute their results based on field values rather 14838 * than object identity. (Implementations should not assume that hashcodes 14839 * will be consistent across runtimes or versions of the protocol compiler.) 18775 * This option does nothing. 14840 18776 * </pre> 14841 */14842 boolean hasJavaGenerateEqualsAndHash();14843 /**14844 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code>14845 18777 * 14846 * <pre> 14847 * If set true, then the Java code generator will generate equals() and 14848 * hashCode() methods for all messages defined in the .proto file. 14849 * - In the full runtime, this is purely a speed optimization, as the 14850 * AbstractMessage base class includes reflection-based implementations of 14851 * these methods. 14852 *- In the lite runtime, setting this option changes the semantics of 14853 * equals() and hashCode() to more closely match those of the full runtime; 14854 * the generated methods compute their results based on field values rather 14855 * than object identity. (Implementations should not assume that hashcodes 14856 * will be consistent across runtimes or versions of the protocol compiler.) 14857 * </pre> 14858 */ 14859 boolean getJavaGenerateEqualsAndHash(); 14860 14861 /** 14862 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> 14863 * 18778 * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> 18779 */ 18780 @java.lang.Deprecated boolean getJavaGenerateEqualsAndHash(); 18781 18782 /** 14864 18783 * <pre> 14865 18784 * If set true, then the Java2 code generator will generate code that … … 14870 18789 * This option has no effect on when used with the lite runtime. 14871 18790 * </pre> 18791 * 18792 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> 14872 18793 */ 14873 18794 boolean hasJavaStringCheckUtf8(); 14874 18795 /** 14875 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code>14876 *14877 18796 * <pre> 14878 18797 * If set true, then the Java2 code generator will generate code that … … 14883 18802 * This option has no effect on when used with the lite runtime. 14884 18803 * </pre> 18804 * 18805 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> 14885 18806 */ 14886 18807 boolean getJavaStringCheckUtf8(); … … 14896 18817 14897 18818 /** 14898 * <code>optional string go_package = 11;</code>14899 *14900 18819 * <pre> 14901 18820 * Sets the Go package where structs generated from this .proto will be 14902 * placed. There is no default. 18821 * placed. If omitted, the Go package will be derived from the following: 18822 * - The basename of the package import path, if provided. 18823 * - Otherwise, the package statement in the .proto file, if present. 18824 * - Otherwise, the basename of the .proto file, without extension. 14903 18825 * </pre> 18826 * 18827 * <code>optional string go_package = 11;</code> 14904 18828 */ 14905 18829 boolean hasGoPackage(); 14906 18830 /** 14907 * <code>optional string go_package = 11;</code>14908 *14909 18831 * <pre> 14910 18832 * Sets the Go package where structs generated from this .proto will be 14911 * placed. There is no default. 18833 * placed. If omitted, the Go package will be derived from the following: 18834 * - The basename of the package import path, if provided. 18835 * - Otherwise, the package statement in the .proto file, if present. 18836 * - Otherwise, the basename of the .proto file, without extension. 14912 18837 * </pre> 18838 * 18839 * <code>optional string go_package = 11;</code> 14913 18840 */ 14914 18841 java.lang.String getGoPackage(); 14915 18842 /** 14916 * <code>optional string go_package = 11;</code>14917 *14918 18843 * <pre> 14919 18844 * Sets the Go package where structs generated from this .proto will be 14920 * placed. There is no default. 18845 * placed. If omitted, the Go package will be derived from the following: 18846 * - The basename of the package import path, if provided. 18847 * - Otherwise, the package statement in the .proto file, if present. 18848 * - Otherwise, the basename of the .proto file, without extension. 14921 18849 * </pre> 18850 * 18851 * <code>optional string go_package = 11;</code> 14922 18852 */ 14923 18853 com.google.protobuf.ByteString … … 14925 18855 14926 18856 /** 14927 * <code>optional bool cc_generic_services = 16 [default = false];</code>14928 *14929 18857 * <pre> 14930 18858 * Should generic services be generated in each language? "Generic" services … … 14932 18860 * main code generators in each language (without additional plugins). 14933 18861 * Generic services were the only kind of service generation supported by 14934 * early versions of proto2.18862 * early versions of google.protobuf. 14935 18863 * Generic services are now considered deprecated in favor of using plugins 14936 18864 * that generate code specific to your particular RPC system. Therefore, … … 14938 18866 * explicitly set them to true. 14939 18867 * </pre> 18868 * 18869 * <code>optional bool cc_generic_services = 16 [default = false];</code> 14940 18870 */ 14941 18871 boolean hasCcGenericServices(); 14942 18872 /** 14943 * <code>optional bool cc_generic_services = 16 [default = false];</code>14944 *14945 18873 * <pre> 14946 18874 * Should generic services be generated in each language? "Generic" services … … 14948 18876 * main code generators in each language (without additional plugins). 14949 18877 * Generic services were the only kind of service generation supported by 14950 * early versions of proto2.18878 * early versions of google.protobuf. 14951 18879 * Generic services are now considered deprecated in favor of using plugins 14952 18880 * that generate code specific to your particular RPC system. Therefore, … … 14954 18882 * explicitly set them to true. 14955 18883 * </pre> 18884 * 18885 * <code>optional bool cc_generic_services = 16 [default = false];</code> 14956 18886 */ 14957 18887 boolean getCcGenericServices(); … … 14976 18906 14977 18907 /** 14978 * <code>optional bool deprecated = 23 [default = false];</code> 14979 * 18908 * <code>optional bool php_generic_services = 42 [default = false];</code> 18909 */ 18910 boolean hasPhpGenericServices(); 18911 /** 18912 * <code>optional bool php_generic_services = 42 [default = false];</code> 18913 */ 18914 boolean getPhpGenericServices(); 18915 18916 /** 14980 18917 * <pre> 14981 18918 * Is this file deprecated? … … 14984 18921 * least, this is a formalization for deprecating files. 14985 18922 * </pre> 18923 * 18924 * <code>optional bool deprecated = 23 [default = false];</code> 14986 18925 */ 14987 18926 boolean hasDeprecated(); 14988 18927 /** 14989 * <code>optional bool deprecated = 23 [default = false];</code>14990 *14991 18928 * <pre> 14992 18929 * Is this file deprecated? … … 14995 18932 * least, this is a formalization for deprecating files. 14996 18933 * </pre> 18934 * 18935 * <code>optional bool deprecated = 23 [default = false];</code> 14997 18936 */ 14998 18937 boolean getDeprecated(); 14999 18938 15000 18939 /** 15001 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18940 * <pre> 18941 * Enables the use of arenas for the proto messages in this file. This applies 18942 * only to generated classes for C++. 18943 * </pre> 15002 18944 * 18945 * <code>optional bool cc_enable_arenas = 31 [default = false];</code> 18946 */ 18947 boolean hasCcEnableArenas(); 18948 /** 18949 * <pre> 18950 * Enables the use of arenas for the proto messages in this file. This applies 18951 * only to generated classes for C++. 18952 * </pre> 18953 * 18954 * <code>optional bool cc_enable_arenas = 31 [default = false];</code> 18955 */ 18956 boolean getCcEnableArenas(); 18957 18958 /** 18959 * <pre> 18960 * Sets the objective c class prefix which is prepended to all objective c 18961 * generated classes from this .proto. There is no default. 18962 * </pre> 18963 * 18964 * <code>optional string objc_class_prefix = 36;</code> 18965 */ 18966 boolean hasObjcClassPrefix(); 18967 /** 18968 * <pre> 18969 * Sets the objective c class prefix which is prepended to all objective c 18970 * generated classes from this .proto. There is no default. 18971 * </pre> 18972 * 18973 * <code>optional string objc_class_prefix = 36;</code> 18974 */ 18975 java.lang.String getObjcClassPrefix(); 18976 /** 18977 * <pre> 18978 * Sets the objective c class prefix which is prepended to all objective c 18979 * generated classes from this .proto. There is no default. 18980 * </pre> 18981 * 18982 * <code>optional string objc_class_prefix = 36;</code> 18983 */ 18984 com.google.protobuf.ByteString 18985 getObjcClassPrefixBytes(); 18986 18987 /** 18988 * <pre> 18989 * Namespace for generated classes; defaults to the package. 18990 * </pre> 18991 * 18992 * <code>optional string csharp_namespace = 37;</code> 18993 */ 18994 boolean hasCsharpNamespace(); 18995 /** 18996 * <pre> 18997 * Namespace for generated classes; defaults to the package. 18998 * </pre> 18999 * 19000 * <code>optional string csharp_namespace = 37;</code> 19001 */ 19002 java.lang.String getCsharpNamespace(); 19003 /** 19004 * <pre> 19005 * Namespace for generated classes; defaults to the package. 19006 * </pre> 19007 * 19008 * <code>optional string csharp_namespace = 37;</code> 19009 */ 19010 com.google.protobuf.ByteString 19011 getCsharpNamespaceBytes(); 19012 19013 /** 19014 * <pre> 19015 * By default Swift generators will take the proto package and CamelCase it 19016 * replacing '.' with underscore and use that to prefix the types/symbols 19017 * defined. When this options is provided, they will use this value instead 19018 * to prefix the types/symbols defined. 19019 * </pre> 19020 * 19021 * <code>optional string swift_prefix = 39;</code> 19022 */ 19023 boolean hasSwiftPrefix(); 19024 /** 19025 * <pre> 19026 * By default Swift generators will take the proto package and CamelCase it 19027 * replacing '.' with underscore and use that to prefix the types/symbols 19028 * defined. When this options is provided, they will use this value instead 19029 * to prefix the types/symbols defined. 19030 * </pre> 19031 * 19032 * <code>optional string swift_prefix = 39;</code> 19033 */ 19034 java.lang.String getSwiftPrefix(); 19035 /** 19036 * <pre> 19037 * By default Swift generators will take the proto package and CamelCase it 19038 * replacing '.' with underscore and use that to prefix the types/symbols 19039 * defined. When this options is provided, they will use this value instead 19040 * to prefix the types/symbols defined. 19041 * </pre> 19042 * 19043 * <code>optional string swift_prefix = 39;</code> 19044 */ 19045 com.google.protobuf.ByteString 19046 getSwiftPrefixBytes(); 19047 19048 /** 19049 * <pre> 19050 * Sets the php class prefix which is prepended to all php generated classes 19051 * from this .proto. Default is empty. 19052 * </pre> 19053 * 19054 * <code>optional string php_class_prefix = 40;</code> 19055 */ 19056 boolean hasPhpClassPrefix(); 19057 /** 19058 * <pre> 19059 * Sets the php class prefix which is prepended to all php generated classes 19060 * from this .proto. Default is empty. 19061 * </pre> 19062 * 19063 * <code>optional string php_class_prefix = 40;</code> 19064 */ 19065 java.lang.String getPhpClassPrefix(); 19066 /** 19067 * <pre> 19068 * Sets the php class prefix which is prepended to all php generated classes 19069 * from this .proto. Default is empty. 19070 * </pre> 19071 * 19072 * <code>optional string php_class_prefix = 40;</code> 19073 */ 19074 com.google.protobuf.ByteString 19075 getPhpClassPrefixBytes(); 19076 19077 /** 19078 * <pre> 19079 * Use this option to change the namespace of php generated classes. Default 19080 * is empty. When this option is empty, the package name will be used for 19081 * determining the namespace. 19082 * </pre> 19083 * 19084 * <code>optional string php_namespace = 41;</code> 19085 */ 19086 boolean hasPhpNamespace(); 19087 /** 19088 * <pre> 19089 * Use this option to change the namespace of php generated classes. Default 19090 * is empty. When this option is empty, the package name will be used for 19091 * determining the namespace. 19092 * </pre> 19093 * 19094 * <code>optional string php_namespace = 41;</code> 19095 */ 19096 java.lang.String getPhpNamespace(); 19097 /** 19098 * <pre> 19099 * Use this option to change the namespace of php generated classes. Default 19100 * is empty. When this option is empty, the package name will be used for 19101 * determining the namespace. 19102 * </pre> 19103 * 19104 * <code>optional string php_namespace = 41;</code> 19105 */ 19106 com.google.protobuf.ByteString 19107 getPhpNamespaceBytes(); 19108 19109 /** 15003 19110 * <pre> 15004 19111 * The parser stores options it doesn't recognize here. See above. 15005 19112 * </pre> 15006 */ 15007 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 19113 * 19114 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19115 */ 19116 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 15008 19117 getUninterpretedOptionList(); 15009 19118 /** 15010 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>15011 *15012 19119 * <pre> 15013 19120 * The parser stores options it doesn't recognize here. See above. 15014 19121 * </pre> 19122 * 19123 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15015 19124 */ 15016 19125 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 15017 19126 /** 15018 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>15019 *15020 19127 * <pre> 15021 19128 * The parser stores options it doesn't recognize here. See above. 15022 19129 * </pre> 19130 * 19131 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15023 19132 */ 15024 19133 int getUninterpretedOptionCount(); 15025 19134 /** 15026 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>15027 *15028 19135 * <pre> 15029 19136 * The parser stores options it doesn't recognize here. See above. 15030 19137 * </pre> 15031 */ 15032 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 19138 * 19139 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19140 */ 19141 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 15033 19142 getUninterpretedOptionOrBuilderList(); 15034 19143 /** 15035 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>15036 *15037 19144 * <pre> 15038 19145 * The parser stores options it doesn't recognize here. See above. 15039 19146 * </pre> 19147 * 19148 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 15040 19149 */ 15041 19150 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( … … 15045 19154 * Protobuf type {@code google.protobuf.FileOptions} 15046 19155 */ 15047 public static final class FileOptions extends15048 com.google.protobuf.GeneratedMessage .ExtendableMessage<19156 public static final class FileOptions extends 19157 com.google.protobuf.GeneratedMessageV3.ExtendableMessage< 15049 19158 FileOptions> implements 15050 19159 // @@protoc_insertion_point(message_implements:google.protobuf.FileOptions) 15051 19160 FileOptionsOrBuilder { 19161 private static final long serialVersionUID = 0L; 15052 19162 // Use FileOptions.newBuilder() to construct. 15053 private FileOptions(com.google.protobuf.GeneratedMessage .ExtendableBuilder<com.google.protobuf.DescriptorProtos.FileOptions, ?> builder) {19163 private FileOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.FileOptions, ?> builder) { 15054 19164 super(builder); 15055 this.unknownFields = builder.getUnknownFields(); 15056 } 15057 private FileOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 15058 15059 private static final FileOptions defaultInstance; 15060 public static FileOptions getDefaultInstance() { 15061 return defaultInstance; 15062 } 15063 15064 @Override 15065 public FileOptions getDefaultInstanceForType() { 15066 return defaultInstance; 15067 } 15068 15069 private final com.google.protobuf.UnknownFieldSet unknownFields; 19165 } 19166 private FileOptions() { 19167 javaPackage_ = ""; 19168 javaOuterClassname_ = ""; 19169 javaMultipleFiles_ = false; 19170 javaGenerateEqualsAndHash_ = false; 19171 javaStringCheckUtf8_ = false; 19172 optimizeFor_ = 1; 19173 goPackage_ = ""; 19174 ccGenericServices_ = false; 19175 javaGenericServices_ = false; 19176 pyGenericServices_ = false; 19177 phpGenericServices_ = false; 19178 deprecated_ = false; 19179 ccEnableArenas_ = false; 19180 objcClassPrefix_ = ""; 19181 csharpNamespace_ = ""; 19182 swiftPrefix_ = ""; 19183 phpClassPrefix_ = ""; 19184 phpNamespace_ = ""; 19185 uninterpretedOption_ = java.util.Collections.emptyList(); 19186 } 19187 15070 19188 @java.lang.Override 15071 19189 public final com.google.protobuf.UnknownFieldSet 15072 19190 getUnknownFields() { 15073 19191 return this.unknownFields; 15074 19192 } … … 15077 19195 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15078 19196 throws com.google.protobuf.InvalidProtocolBufferException { 15079 initFields();19197 this(); 15080 19198 int mutable_bitField0_ = 0; 15081 19199 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 15090 19208 break; 15091 19209 default: { 15092 if (!parseUnknownField( input, unknownFields,15093 19210 if (!parseUnknownField( 19211 input, unknownFields, extensionRegistry, tag)) { 15094 19212 done = true; 15095 19213 } … … 15115 19233 } else { 15116 19234 bitField0_ |= 0x00000020; 15117 optimizeFor_ = value;19235 optimizeFor_ = rawValue; 15118 19236 } 15119 19237 break; … … 15151 19269 } 15152 19270 case 184: { 15153 bitField0_ |= 0x00000 400;19271 bitField0_ |= 0x00000800; 15154 19272 deprecated_ = input.readBool(); 15155 19273 break; … … 15160 19278 break; 15161 19279 } 19280 case 248: { 19281 bitField0_ |= 0x00001000; 19282 ccEnableArenas_ = input.readBool(); 19283 break; 19284 } 19285 case 290: { 19286 com.google.protobuf.ByteString bs = input.readBytes(); 19287 bitField0_ |= 0x00002000; 19288 objcClassPrefix_ = bs; 19289 break; 19290 } 19291 case 298: { 19292 com.google.protobuf.ByteString bs = input.readBytes(); 19293 bitField0_ |= 0x00004000; 19294 csharpNamespace_ = bs; 19295 break; 19296 } 19297 case 314: { 19298 com.google.protobuf.ByteString bs = input.readBytes(); 19299 bitField0_ |= 0x00008000; 19300 swiftPrefix_ = bs; 19301 break; 19302 } 19303 case 322: { 19304 com.google.protobuf.ByteString bs = input.readBytes(); 19305 bitField0_ |= 0x00010000; 19306 phpClassPrefix_ = bs; 19307 break; 19308 } 19309 case 330: { 19310 com.google.protobuf.ByteString bs = input.readBytes(); 19311 bitField0_ |= 0x00020000; 19312 phpNamespace_ = bs; 19313 break; 19314 } 19315 case 336: { 19316 bitField0_ |= 0x00000400; 19317 phpGenericServices_ = input.readBool(); 19318 break; 19319 } 15162 19320 case 7994: { 15163 if (!((mutable_bitField0_ & 0x000 00800) == 0x00000800)) {15164 uninterpretedOption_ = new java.util.ArrayList< >();15165 mutable_bitField0_ |= 0x000 00800;19321 if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { 19322 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 19323 mutable_bitField0_ |= 0x00040000; 15166 19324 } 15167 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 19325 uninterpretedOption_.add( 19326 input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 15168 19327 break; 15169 19328 } … … 15174 19333 } catch (java.io.IOException e) { 15175 19334 throw new com.google.protobuf.InvalidProtocolBufferException( 15176 e .getMessage()).setUnfinishedMessage(this);19335 e).setUnfinishedMessage(this); 15177 19336 } finally { 15178 if (((mutable_bitField0_ & 0x000 00800) == 0x00000800)) {19337 if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { 15179 19338 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 15180 19339 } … … 15188 19347 } 15189 19348 15190 @Override 15191 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 19349 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 15192 19350 internalGetFieldAccessorTable() { 15193 19351 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_fieldAccessorTable … … 15196 19354 } 15197 19355 15198 public static com.google.protobuf.Parser<FileOptions> PARSER = 15199 new com.google.protobuf.AbstractParser<FileOptions>() { 15200 @Override 15201 public FileOptions parsePartialFrom( 15202 com.google.protobuf.CodedInputStream input, 15203 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 15204 throws com.google.protobuf.InvalidProtocolBufferException { 15205 return new FileOptions(input, extensionRegistry); 15206 } 15207 }; 15208 15209 @java.lang.Override 15210 public com.google.protobuf.Parser<FileOptions> getParserForType() { 15211 return PARSER; 15212 } 15213 15214 /** 15215 * Protobuf enum {@code google.protobuf.FileOptions.OptimizeMode} 15216 * 19356 /** 15217 19357 * <pre> 15218 19358 * Generated classes can be optimized for speed or code size. 15219 19359 * </pre> 19360 * 19361 * Protobuf enum {@code google.protobuf.FileOptions.OptimizeMode} 15220 19362 */ 15221 19363 public enum OptimizeMode 15222 19364 implements com.google.protobuf.ProtocolMessageEnum { 15223 19365 /** 19366 * <pre> 19367 * Generate complete code for parsing, serialization, 19368 * </pre> 19369 * 15224 19370 * <code>SPEED = 1;</code> 15225 * 19371 */ 19372 SPEED(1), 19373 /** 19374 * <pre> 19375 * etc. 19376 * </pre> 19377 * 19378 * <code>CODE_SIZE = 2;</code> 19379 */ 19380 CODE_SIZE(2), 19381 /** 19382 * <pre> 19383 * Generate code using MessageLite and the lite runtime. 19384 * </pre> 19385 * 19386 * <code>LITE_RUNTIME = 3;</code> 19387 */ 19388 LITE_RUNTIME(3), 19389 ; 19390 19391 /** 15226 19392 * <pre> 15227 19393 * Generate complete code for parsing, serialization, 15228 19394 * </pre> 15229 */ 15230 SPEED(0, 1), 15231 /** 19395 * 19396 * <code>SPEED = 1;</code> 19397 */ 19398 public static final int SPEED_VALUE = 1; 19399 /** 19400 * <pre> 19401 * etc. 19402 * </pre> 19403 * 15232 19404 * <code>CODE_SIZE = 2;</code> 15233 * 15234 * <pre>15235 * etc.15236 * < /pre>15237 * /15238 CODE_SIZE(1, 2),15239 /**19405 */ 19406 public static final int CODE_SIZE_VALUE = 2; 19407 /** 19408 * <pre> 19409 * Generate code using MessageLite and the lite runtime. 19410 * </pre> 19411 * 15240 19412 * <code>LITE_RUNTIME = 3;</code> 15241 *15242 * <pre>15243 * Generate code using MessageLite and the lite runtime.15244 * </pre>15245 */15246 LITE_RUNTIME(2, 3),15247 ;15248 15249 /**15250 * <code>SPEED = 1;</code>15251 *15252 * <pre>15253 * Generate complete code for parsing, serialization,15254 * </pre>15255 */15256 public static final int SPEED_VALUE = 1;15257 /**15258 * <code>CODE_SIZE = 2;</code>15259 *15260 * <pre>15261 * etc.15262 * </pre>15263 */15264 public static final int CODE_SIZE_VALUE = 2;15265 /**15266 * <code>LITE_RUNTIME = 3;</code>15267 *15268 * <pre>15269 * Generate code using MessageLite and the lite runtime.15270 * </pre>15271 19413 */ 15272 19414 public static final int LITE_RUNTIME_VALUE = 3; 15273 19415 15274 19416 15275 @Override 15276 public final int getNumber() { return value; } 15277 19417 public final int getNumber() { 19418 return value; 19419 } 19420 19421 /** 19422 * @deprecated Use {@link #forNumber(int)} instead. 19423 */ 19424 @java.lang.Deprecated 15278 19425 public static OptimizeMode valueOf(int value) { 19426 return forNumber(value); 19427 } 19428 19429 public static OptimizeMode forNumber(int value) { 15279 19430 switch (value) { 15280 19431 case 1: return SPEED; … … 15289 19440 return internalValueMap; 15290 19441 } 15291 private static com.google.protobuf.Internal.EnumLiteMap<OptimizeMode>15292 internalValueMap =19442 private static final com.google.protobuf.Internal.EnumLiteMap< 19443 OptimizeMode> internalValueMap = 15293 19444 new com.google.protobuf.Internal.EnumLiteMap<OptimizeMode>() { 15294 @Override 15295 public OptimizeMode findValueByNumber(int number) { 15296 return OptimizeMode.valueOf(number); 19445 public OptimizeMode findValueByNumber(int number) { 19446 return OptimizeMode.forNumber(number); 15297 19447 } 15298 19448 }; 15299 19449 15300 @Override 15301 public final com.google.protobuf.Descriptors.EnumValueDescriptor 19450 public final com.google.protobuf.Descriptors.EnumValueDescriptor 15302 19451 getValueDescriptor() { 15303 return getDescriptor().getValues().get(index); 15304 } 15305 @Override 15306 public final com.google.protobuf.Descriptors.EnumDescriptor 19452 return getDescriptor().getValues().get(ordinal()); 19453 } 19454 public final com.google.protobuf.Descriptors.EnumDescriptor 15307 19455 getDescriptorForType() { 15308 19456 return getDescriptor(); … … 15324 19472 } 15325 19473 15326 private final int index;15327 19474 private final int value; 15328 19475 15329 private OptimizeMode(int index, int value) { 15330 this.index = index; 19476 private OptimizeMode(int value) { 15331 19477 this.value = value; 15332 19478 } … … 15337 19483 private int bitField0_; 15338 19484 public static final int JAVA_PACKAGE_FIELD_NUMBER = 1; 15339 private java.lang.Object javaPackage_; 15340 /** 15341 * <code>optional string java_package = 1;</code> 15342 * 19485 private volatile java.lang.Object javaPackage_; 19486 /** 15343 19487 * <pre> 15344 19488 * Sets the Java package where classes generated from this .proto will be … … 15347 19491 * domain names. 15348 19492 * </pre> 15349 */ 15350 @Override 15351 public boolean hasJavaPackage() { 19493 * 19494 * <code>optional string java_package = 1;</code> 19495 */ 19496 public boolean hasJavaPackage() { 15352 19497 return ((bitField0_ & 0x00000001) == 0x00000001); 15353 19498 } 15354 19499 /** 15355 * <code>optional string java_package = 1;</code>15356 *15357 19500 * <pre> 15358 19501 * Sets the Java package where classes generated from this .proto will be … … 15361 19504 * domain names. 15362 19505 * </pre> 15363 */ 15364 @Override 15365 public java.lang.String getJavaPackage() { 19506 * 19507 * <code>optional string java_package = 1;</code> 19508 */ 19509 public java.lang.String getJavaPackage() { 15366 19510 java.lang.Object ref = javaPackage_; 15367 19511 if (ref instanceof java.lang.String) { 15368 19512 return (java.lang.String) ref; 15369 19513 } else { 15370 com.google.protobuf.ByteString bs = 19514 com.google.protobuf.ByteString bs = 15371 19515 (com.google.protobuf.ByteString) ref; 15372 19516 java.lang.String s = bs.toStringUtf8(); … … 15378 19522 } 15379 19523 /** 15380 * <code>optional string java_package = 1;</code>15381 *15382 19524 * <pre> 15383 19525 * Sets the Java package where classes generated from this .proto will be … … 15386 19528 * domain names. 15387 19529 * </pre> 15388 */ 15389 @Override 15390 public com.google.protobuf.ByteString 19530 * 19531 * <code>optional string java_package = 1;</code> 19532 */ 19533 public com.google.protobuf.ByteString 15391 19534 getJavaPackageBytes() { 15392 19535 java.lang.Object ref = javaPackage_; 15393 19536 if (ref instanceof java.lang.String) { 15394 com.google.protobuf.ByteString b = 19537 com.google.protobuf.ByteString b = 15395 19538 com.google.protobuf.ByteString.copyFromUtf8( 15396 19539 (java.lang.String) ref); … … 15403 19546 15404 19547 public static final int JAVA_OUTER_CLASSNAME_FIELD_NUMBER = 8; 15405 private java.lang.Object javaOuterClassname_; 15406 /** 15407 * <code>optional string java_outer_classname = 8;</code> 15408 * 19548 private volatile java.lang.Object javaOuterClassname_; 19549 /** 15409 19550 * <pre> 15410 19551 * If set, all the classes from the .proto file are wrapped in a single … … 15414 19555 * explicitly choose the class name). 15415 19556 * </pre> 15416 */ 15417 @Override 15418 public boolean hasJavaOuterClassname() { 19557 * 19558 * <code>optional string java_outer_classname = 8;</code> 19559 */ 19560 public boolean hasJavaOuterClassname() { 15419 19561 return ((bitField0_ & 0x00000002) == 0x00000002); 15420 19562 } 15421 19563 /** 15422 * <code>optional string java_outer_classname = 8;</code>15423 *15424 19564 * <pre> 15425 19565 * If set, all the classes from the .proto file are wrapped in a single … … 15429 19569 * explicitly choose the class name). 15430 19570 * </pre> 15431 */ 15432 @Override 15433 public java.lang.String getJavaOuterClassname() { 19571 * 19572 * <code>optional string java_outer_classname = 8;</code> 19573 */ 19574 public java.lang.String getJavaOuterClassname() { 15434 19575 java.lang.Object ref = javaOuterClassname_; 15435 19576 if (ref instanceof java.lang.String) { 15436 19577 return (java.lang.String) ref; 15437 19578 } else { 15438 com.google.protobuf.ByteString bs = 19579 com.google.protobuf.ByteString bs = 15439 19580 (com.google.protobuf.ByteString) ref; 15440 19581 java.lang.String s = bs.toStringUtf8(); … … 15446 19587 } 15447 19588 /** 15448 * <code>optional string java_outer_classname = 8;</code>15449 *15450 19589 * <pre> 15451 19590 * If set, all the classes from the .proto file are wrapped in a single … … 15455 19594 * explicitly choose the class name). 15456 19595 * </pre> 15457 */ 15458 @Override 15459 public com.google.protobuf.ByteString 19596 * 19597 * <code>optional string java_outer_classname = 8;</code> 19598 */ 19599 public com.google.protobuf.ByteString 15460 19600 getJavaOuterClassnameBytes() { 15461 19601 java.lang.Object ref = javaOuterClassname_; 15462 19602 if (ref instanceof java.lang.String) { 15463 com.google.protobuf.ByteString b = 19603 com.google.protobuf.ByteString b = 15464 19604 com.google.protobuf.ByteString.copyFromUtf8( 15465 19605 (java.lang.String) ref); … … 15474 19614 private boolean javaMultipleFiles_; 15475 19615 /** 15476 * <code>optional bool java_multiple_files = 10 [default = false];</code>15477 *15478 19616 * <pre> 15479 19617 * If set true, then the Java code generator will generate a separate .java … … 15484 19622 * top-level extensions defined in the file. 15485 19623 * </pre> 15486 */ 15487 @Override 15488 public boolean hasJavaMultipleFiles() { 19624 * 19625 * <code>optional bool java_multiple_files = 10 [default = false];</code> 19626 */ 19627 public boolean hasJavaMultipleFiles() { 15489 19628 return ((bitField0_ & 0x00000004) == 0x00000004); 15490 19629 } 15491 19630 /** 15492 * <code>optional bool java_multiple_files = 10 [default = false];</code>15493 *15494 19631 * <pre> 15495 19632 * If set true, then the Java code generator will generate a separate .java … … 15500 19637 * top-level extensions defined in the file. 15501 19638 * </pre> 15502 */ 15503 @Override 15504 public boolean getJavaMultipleFiles() { 19639 * 19640 * <code>optional bool java_multiple_files = 10 [default = false];</code> 19641 */ 19642 public boolean getJavaMultipleFiles() { 15505 19643 return javaMultipleFiles_; 15506 19644 } … … 15509 19647 private boolean javaGenerateEqualsAndHash_; 15510 19648 /** 15511 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 19649 * <pre> 19650 * This option does nothing. 19651 * </pre> 15512 19652 * 19653 * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> 19654 */ 19655 @java.lang.Deprecated public boolean hasJavaGenerateEqualsAndHash() { 19656 return ((bitField0_ & 0x00000008) == 0x00000008); 19657 } 19658 /** 15513 19659 * <pre> 15514 * If set true, then the Java code generator will generate equals() and 15515 * hashCode() methods for all messages defined in the .proto file. 15516 * - In the full runtime, this is purely a speed optimization, as the 15517 * AbstractMessage base class includes reflection-based implementations of 15518 * these methods. 15519 *- In the lite runtime, setting this option changes the semantics of 15520 * equals() and hashCode() to more closely match those of the full runtime; 15521 * the generated methods compute their results based on field values rather 15522 * than object identity. (Implementations should not assume that hashcodes 15523 * will be consistent across runtimes or versions of the protocol compiler.) 19660 * This option does nothing. 15524 19661 * </pre> 15525 */15526 @Override15527 public boolean hasJavaGenerateEqualsAndHash() {15528 return ((bitField0_ & 0x00000008) == 0x00000008);15529 }15530 /**15531 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code>15532 19662 * 15533 * <pre> 15534 * If set true, then the Java code generator will generate equals() and 15535 * hashCode() methods for all messages defined in the .proto file. 15536 * - In the full runtime, this is purely a speed optimization, as the 15537 * AbstractMessage base class includes reflection-based implementations of 15538 * these methods. 15539 *- In the lite runtime, setting this option changes the semantics of 15540 * equals() and hashCode() to more closely match those of the full runtime; 15541 * the generated methods compute their results based on field values rather 15542 * than object identity. (Implementations should not assume that hashcodes 15543 * will be consistent across runtimes or versions of the protocol compiler.) 15544 * </pre> 15545 */ 15546 @Override 15547 public boolean getJavaGenerateEqualsAndHash() { 19663 * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> 19664 */ 19665 @java.lang.Deprecated public boolean getJavaGenerateEqualsAndHash() { 15548 19666 return javaGenerateEqualsAndHash_; 15549 19667 } … … 15552 19670 private boolean javaStringCheckUtf8_; 15553 19671 /** 15554 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code>15555 *15556 19672 * <pre> 15557 19673 * If set true, then the Java2 code generator will generate code that … … 15562 19678 * This option has no effect on when used with the lite runtime. 15563 19679 * </pre> 15564 */ 15565 @Override 15566 public boolean hasJavaStringCheckUtf8() { 19680 * 19681 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> 19682 */ 19683 public boolean hasJavaStringCheckUtf8() { 15567 19684 return ((bitField0_ & 0x00000010) == 0x00000010); 15568 19685 } 15569 19686 /** 15570 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code>15571 *15572 19687 * <pre> 15573 19688 * If set true, then the Java2 code generator will generate code that … … 15578 19693 * This option has no effect on when used with the lite runtime. 15579 19694 * </pre> 15580 */ 15581 @Override 15582 public boolean getJavaStringCheckUtf8() { 19695 * 19696 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> 19697 */ 19698 public boolean getJavaStringCheckUtf8() { 15583 19699 return javaStringCheckUtf8_; 15584 19700 } 15585 19701 15586 19702 public static final int OPTIMIZE_FOR_FIELD_NUMBER = 9; 15587 private com.google.protobuf.DescriptorProtos.FileOptions.OptimizeModeoptimizeFor_;19703 private int optimizeFor_; 15588 19704 /** 15589 19705 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 15590 19706 */ 15591 @Override 15592 public boolean hasOptimizeFor() { 19707 public boolean hasOptimizeFor() { 15593 19708 return ((bitField0_ & 0x00000020) == 0x00000020); 15594 19709 } … … 15596 19711 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 15597 19712 */ 15598 @Override15599 public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { 15600 return optimizeFor_;19713 public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { 19714 com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode result = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.valueOf(optimizeFor_); 19715 return result == null ? com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED : result; 15601 19716 } 15602 19717 15603 19718 public static final int GO_PACKAGE_FIELD_NUMBER = 11; 15604 private java.lang.Object goPackage_; 15605 /** 15606 * <code>optional string go_package = 11;</code> 15607 * 19719 private volatile java.lang.Object goPackage_; 19720 /** 15608 19721 * <pre> 15609 19722 * Sets the Go package where structs generated from this .proto will be 15610 * placed. There is no default. 19723 * placed. If omitted, the Go package will be derived from the following: 19724 * - The basename of the package import path, if provided. 19725 * - Otherwise, the package statement in the .proto file, if present. 19726 * - Otherwise, the basename of the .proto file, without extension. 15611 19727 * </pre> 15612 */ 15613 @Override 15614 public boolean hasGoPackage() { 19728 * 19729 * <code>optional string go_package = 11;</code> 19730 */ 19731 public boolean hasGoPackage() { 15615 19732 return ((bitField0_ & 0x00000040) == 0x00000040); 15616 19733 } 15617 19734 /** 15618 * <code>optional string go_package = 11;</code>15619 *15620 19735 * <pre> 15621 19736 * Sets the Go package where structs generated from this .proto will be 15622 * placed. There is no default. 19737 * placed. If omitted, the Go package will be derived from the following: 19738 * - The basename of the package import path, if provided. 19739 * - Otherwise, the package statement in the .proto file, if present. 19740 * - Otherwise, the basename of the .proto file, without extension. 15623 19741 * </pre> 15624 */ 15625 @Override 15626 public java.lang.String getGoPackage() { 19742 * 19743 * <code>optional string go_package = 11;</code> 19744 */ 19745 public java.lang.String getGoPackage() { 15627 19746 java.lang.Object ref = goPackage_; 15628 19747 if (ref instanceof java.lang.String) { 15629 19748 return (java.lang.String) ref; 15630 19749 } else { 15631 com.google.protobuf.ByteString bs = 19750 com.google.protobuf.ByteString bs = 15632 19751 (com.google.protobuf.ByteString) ref; 15633 19752 java.lang.String s = bs.toStringUtf8(); … … 15639 19758 } 15640 19759 /** 15641 * <code>optional string go_package = 11;</code>15642 *15643 19760 * <pre> 15644 19761 * Sets the Go package where structs generated from this .proto will be 15645 * placed. There is no default. 19762 * placed. If omitted, the Go package will be derived from the following: 19763 * - The basename of the package import path, if provided. 19764 * - Otherwise, the package statement in the .proto file, if present. 19765 * - Otherwise, the basename of the .proto file, without extension. 15646 19766 * </pre> 15647 */ 15648 @Override 15649 public com.google.protobuf.ByteString 19767 * 19768 * <code>optional string go_package = 11;</code> 19769 */ 19770 public com.google.protobuf.ByteString 15650 19771 getGoPackageBytes() { 15651 19772 java.lang.Object ref = goPackage_; 15652 19773 if (ref instanceof java.lang.String) { 15653 com.google.protobuf.ByteString b = 19774 com.google.protobuf.ByteString b = 15654 19775 com.google.protobuf.ByteString.copyFromUtf8( 15655 19776 (java.lang.String) ref); … … 15664 19785 private boolean ccGenericServices_; 15665 19786 /** 15666 * <code>optional bool cc_generic_services = 16 [default = false];</code>15667 *15668 19787 * <pre> 15669 19788 * Should generic services be generated in each language? "Generic" services … … 15671 19790 * main code generators in each language (without additional plugins). 15672 19791 * Generic services were the only kind of service generation supported by 15673 * early versions of proto2.19792 * early versions of google.protobuf. 15674 19793 * Generic services are now considered deprecated in favor of using plugins 15675 19794 * that generate code specific to your particular RPC system. Therefore, … … 15677 19796 * explicitly set them to true. 15678 19797 * </pre> 15679 */ 15680 @Override 15681 public boolean hasCcGenericServices() { 19798 * 19799 * <code>optional bool cc_generic_services = 16 [default = false];</code> 19800 */ 19801 public boolean hasCcGenericServices() { 15682 19802 return ((bitField0_ & 0x00000080) == 0x00000080); 15683 19803 } 15684 19804 /** 15685 * <code>optional bool cc_generic_services = 16 [default = false];</code>15686 *15687 19805 * <pre> 15688 19806 * Should generic services be generated in each language? "Generic" services … … 15690 19808 * main code generators in each language (without additional plugins). 15691 19809 * Generic services were the only kind of service generation supported by 15692 * early versions of proto2.19810 * early versions of google.protobuf. 15693 19811 * Generic services are now considered deprecated in favor of using plugins 15694 19812 * that generate code specific to your particular RPC system. Therefore, … … 15696 19814 * explicitly set them to true. 15697 19815 * </pre> 15698 */ 15699 @Override 15700 public boolean getCcGenericServices() { 19816 * 19817 * <code>optional bool cc_generic_services = 16 [default = false];</code> 19818 */ 19819 public boolean getCcGenericServices() { 15701 19820 return ccGenericServices_; 15702 19821 } … … 15707 19826 * <code>optional bool java_generic_services = 17 [default = false];</code> 15708 19827 */ 15709 @Override 15710 public boolean hasJavaGenericServices() { 19828 public boolean hasJavaGenericServices() { 15711 19829 return ((bitField0_ & 0x00000100) == 0x00000100); 15712 19830 } … … 15714 19832 * <code>optional bool java_generic_services = 17 [default = false];</code> 15715 19833 */ 15716 @Override 15717 public boolean getJavaGenericServices() { 19834 public boolean getJavaGenericServices() { 15718 19835 return javaGenericServices_; 15719 19836 } … … 15724 19841 * <code>optional bool py_generic_services = 18 [default = false];</code> 15725 19842 */ 15726 @Override 15727 public boolean hasPyGenericServices() { 19843 public boolean hasPyGenericServices() { 15728 19844 return ((bitField0_ & 0x00000200) == 0x00000200); 15729 19845 } … … 15731 19847 * <code>optional bool py_generic_services = 18 [default = false];</code> 15732 19848 */ 15733 @Override 15734 public boolean getPyGenericServices() { 19849 public boolean getPyGenericServices() { 15735 19850 return pyGenericServices_; 19851 } 19852 19853 public static final int PHP_GENERIC_SERVICES_FIELD_NUMBER = 42; 19854 private boolean phpGenericServices_; 19855 /** 19856 * <code>optional bool php_generic_services = 42 [default = false];</code> 19857 */ 19858 public boolean hasPhpGenericServices() { 19859 return ((bitField0_ & 0x00000400) == 0x00000400); 19860 } 19861 /** 19862 * <code>optional bool php_generic_services = 42 [default = false];</code> 19863 */ 19864 public boolean getPhpGenericServices() { 19865 return phpGenericServices_; 15736 19866 } 15737 19867 … … 15739 19869 private boolean deprecated_; 15740 19870 /** 15741 * <code>optional bool deprecated = 23 [default = false];</code>15742 *15743 19871 * <pre> 15744 19872 * Is this file deprecated? … … 15747 19875 * least, this is a formalization for deprecating files. 15748 19876 * </pre> 15749 */ 15750 @Override 15751 public boolean hasDeprecated() { 15752 return ((bitField0_ & 0x00000400) == 0x00000400); 15753 } 15754 /** 19877 * 15755 19878 * <code>optional bool deprecated = 23 [default = false];</code> 15756 * 19879 */ 19880 public boolean hasDeprecated() { 19881 return ((bitField0_ & 0x00000800) == 0x00000800); 19882 } 19883 /** 15757 19884 * <pre> 15758 19885 * Is this file deprecated? … … 15761 19888 * least, this is a formalization for deprecating files. 15762 19889 * </pre> 15763 */ 15764 @Override 15765 public boolean getDeprecated() { 19890 * 19891 * <code>optional bool deprecated = 23 [default = false];</code> 19892 */ 19893 public boolean getDeprecated() { 15766 19894 return deprecated_; 19895 } 19896 19897 public static final int CC_ENABLE_ARENAS_FIELD_NUMBER = 31; 19898 private boolean ccEnableArenas_; 19899 /** 19900 * <pre> 19901 * Enables the use of arenas for the proto messages in this file. This applies 19902 * only to generated classes for C++. 19903 * </pre> 19904 * 19905 * <code>optional bool cc_enable_arenas = 31 [default = false];</code> 19906 */ 19907 public boolean hasCcEnableArenas() { 19908 return ((bitField0_ & 0x00001000) == 0x00001000); 19909 } 19910 /** 19911 * <pre> 19912 * Enables the use of arenas for the proto messages in this file. This applies 19913 * only to generated classes for C++. 19914 * </pre> 19915 * 19916 * <code>optional bool cc_enable_arenas = 31 [default = false];</code> 19917 */ 19918 public boolean getCcEnableArenas() { 19919 return ccEnableArenas_; 19920 } 19921 19922 public static final int OBJC_CLASS_PREFIX_FIELD_NUMBER = 36; 19923 private volatile java.lang.Object objcClassPrefix_; 19924 /** 19925 * <pre> 19926 * Sets the objective c class prefix which is prepended to all objective c 19927 * generated classes from this .proto. There is no default. 19928 * </pre> 19929 * 19930 * <code>optional string objc_class_prefix = 36;</code> 19931 */ 19932 public boolean hasObjcClassPrefix() { 19933 return ((bitField0_ & 0x00002000) == 0x00002000); 19934 } 19935 /** 19936 * <pre> 19937 * Sets the objective c class prefix which is prepended to all objective c 19938 * generated classes from this .proto. There is no default. 19939 * </pre> 19940 * 19941 * <code>optional string objc_class_prefix = 36;</code> 19942 */ 19943 public java.lang.String getObjcClassPrefix() { 19944 java.lang.Object ref = objcClassPrefix_; 19945 if (ref instanceof java.lang.String) { 19946 return (java.lang.String) ref; 19947 } else { 19948 com.google.protobuf.ByteString bs = 19949 (com.google.protobuf.ByteString) ref; 19950 java.lang.String s = bs.toStringUtf8(); 19951 if (bs.isValidUtf8()) { 19952 objcClassPrefix_ = s; 19953 } 19954 return s; 19955 } 19956 } 19957 /** 19958 * <pre> 19959 * Sets the objective c class prefix which is prepended to all objective c 19960 * generated classes from this .proto. There is no default. 19961 * </pre> 19962 * 19963 * <code>optional string objc_class_prefix = 36;</code> 19964 */ 19965 public com.google.protobuf.ByteString 19966 getObjcClassPrefixBytes() { 19967 java.lang.Object ref = objcClassPrefix_; 19968 if (ref instanceof java.lang.String) { 19969 com.google.protobuf.ByteString b = 19970 com.google.protobuf.ByteString.copyFromUtf8( 19971 (java.lang.String) ref); 19972 objcClassPrefix_ = b; 19973 return b; 19974 } else { 19975 return (com.google.protobuf.ByteString) ref; 19976 } 19977 } 19978 19979 public static final int CSHARP_NAMESPACE_FIELD_NUMBER = 37; 19980 private volatile java.lang.Object csharpNamespace_; 19981 /** 19982 * <pre> 19983 * Namespace for generated classes; defaults to the package. 19984 * </pre> 19985 * 19986 * <code>optional string csharp_namespace = 37;</code> 19987 */ 19988 public boolean hasCsharpNamespace() { 19989 return ((bitField0_ & 0x00004000) == 0x00004000); 19990 } 19991 /** 19992 * <pre> 19993 * Namespace for generated classes; defaults to the package. 19994 * </pre> 19995 * 19996 * <code>optional string csharp_namespace = 37;</code> 19997 */ 19998 public java.lang.String getCsharpNamespace() { 19999 java.lang.Object ref = csharpNamespace_; 20000 if (ref instanceof java.lang.String) { 20001 return (java.lang.String) ref; 20002 } else { 20003 com.google.protobuf.ByteString bs = 20004 (com.google.protobuf.ByteString) ref; 20005 java.lang.String s = bs.toStringUtf8(); 20006 if (bs.isValidUtf8()) { 20007 csharpNamespace_ = s; 20008 } 20009 return s; 20010 } 20011 } 20012 /** 20013 * <pre> 20014 * Namespace for generated classes; defaults to the package. 20015 * </pre> 20016 * 20017 * <code>optional string csharp_namespace = 37;</code> 20018 */ 20019 public com.google.protobuf.ByteString 20020 getCsharpNamespaceBytes() { 20021 java.lang.Object ref = csharpNamespace_; 20022 if (ref instanceof java.lang.String) { 20023 com.google.protobuf.ByteString b = 20024 com.google.protobuf.ByteString.copyFromUtf8( 20025 (java.lang.String) ref); 20026 csharpNamespace_ = b; 20027 return b; 20028 } else { 20029 return (com.google.protobuf.ByteString) ref; 20030 } 20031 } 20032 20033 public static final int SWIFT_PREFIX_FIELD_NUMBER = 39; 20034 private volatile java.lang.Object swiftPrefix_; 20035 /** 20036 * <pre> 20037 * By default Swift generators will take the proto package and CamelCase it 20038 * replacing '.' with underscore and use that to prefix the types/symbols 20039 * defined. When this options is provided, they will use this value instead 20040 * to prefix the types/symbols defined. 20041 * </pre> 20042 * 20043 * <code>optional string swift_prefix = 39;</code> 20044 */ 20045 public boolean hasSwiftPrefix() { 20046 return ((bitField0_ & 0x00008000) == 0x00008000); 20047 } 20048 /** 20049 * <pre> 20050 * By default Swift generators will take the proto package and CamelCase it 20051 * replacing '.' with underscore and use that to prefix the types/symbols 20052 * defined. When this options is provided, they will use this value instead 20053 * to prefix the types/symbols defined. 20054 * </pre> 20055 * 20056 * <code>optional string swift_prefix = 39;</code> 20057 */ 20058 public java.lang.String getSwiftPrefix() { 20059 java.lang.Object ref = swiftPrefix_; 20060 if (ref instanceof java.lang.String) { 20061 return (java.lang.String) ref; 20062 } else { 20063 com.google.protobuf.ByteString bs = 20064 (com.google.protobuf.ByteString) ref; 20065 java.lang.String s = bs.toStringUtf8(); 20066 if (bs.isValidUtf8()) { 20067 swiftPrefix_ = s; 20068 } 20069 return s; 20070 } 20071 } 20072 /** 20073 * <pre> 20074 * By default Swift generators will take the proto package and CamelCase it 20075 * replacing '.' with underscore and use that to prefix the types/symbols 20076 * defined. When this options is provided, they will use this value instead 20077 * to prefix the types/symbols defined. 20078 * </pre> 20079 * 20080 * <code>optional string swift_prefix = 39;</code> 20081 */ 20082 public com.google.protobuf.ByteString 20083 getSwiftPrefixBytes() { 20084 java.lang.Object ref = swiftPrefix_; 20085 if (ref instanceof java.lang.String) { 20086 com.google.protobuf.ByteString b = 20087 com.google.protobuf.ByteString.copyFromUtf8( 20088 (java.lang.String) ref); 20089 swiftPrefix_ = b; 20090 return b; 20091 } else { 20092 return (com.google.protobuf.ByteString) ref; 20093 } 20094 } 20095 20096 public static final int PHP_CLASS_PREFIX_FIELD_NUMBER = 40; 20097 private volatile java.lang.Object phpClassPrefix_; 20098 /** 20099 * <pre> 20100 * Sets the php class prefix which is prepended to all php generated classes 20101 * from this .proto. Default is empty. 20102 * </pre> 20103 * 20104 * <code>optional string php_class_prefix = 40;</code> 20105 */ 20106 public boolean hasPhpClassPrefix() { 20107 return ((bitField0_ & 0x00010000) == 0x00010000); 20108 } 20109 /** 20110 * <pre> 20111 * Sets the php class prefix which is prepended to all php generated classes 20112 * from this .proto. Default is empty. 20113 * </pre> 20114 * 20115 * <code>optional string php_class_prefix = 40;</code> 20116 */ 20117 public java.lang.String getPhpClassPrefix() { 20118 java.lang.Object ref = phpClassPrefix_; 20119 if (ref instanceof java.lang.String) { 20120 return (java.lang.String) ref; 20121 } else { 20122 com.google.protobuf.ByteString bs = 20123 (com.google.protobuf.ByteString) ref; 20124 java.lang.String s = bs.toStringUtf8(); 20125 if (bs.isValidUtf8()) { 20126 phpClassPrefix_ = s; 20127 } 20128 return s; 20129 } 20130 } 20131 /** 20132 * <pre> 20133 * Sets the php class prefix which is prepended to all php generated classes 20134 * from this .proto. Default is empty. 20135 * </pre> 20136 * 20137 * <code>optional string php_class_prefix = 40;</code> 20138 */ 20139 public com.google.protobuf.ByteString 20140 getPhpClassPrefixBytes() { 20141 java.lang.Object ref = phpClassPrefix_; 20142 if (ref instanceof java.lang.String) { 20143 com.google.protobuf.ByteString b = 20144 com.google.protobuf.ByteString.copyFromUtf8( 20145 (java.lang.String) ref); 20146 phpClassPrefix_ = b; 20147 return b; 20148 } else { 20149 return (com.google.protobuf.ByteString) ref; 20150 } 20151 } 20152 20153 public static final int PHP_NAMESPACE_FIELD_NUMBER = 41; 20154 private volatile java.lang.Object phpNamespace_; 20155 /** 20156 * <pre> 20157 * Use this option to change the namespace of php generated classes. Default 20158 * is empty. When this option is empty, the package name will be used for 20159 * determining the namespace. 20160 * </pre> 20161 * 20162 * <code>optional string php_namespace = 41;</code> 20163 */ 20164 public boolean hasPhpNamespace() { 20165 return ((bitField0_ & 0x00020000) == 0x00020000); 20166 } 20167 /** 20168 * <pre> 20169 * Use this option to change the namespace of php generated classes. Default 20170 * is empty. When this option is empty, the package name will be used for 20171 * determining the namespace. 20172 * </pre> 20173 * 20174 * <code>optional string php_namespace = 41;</code> 20175 */ 20176 public java.lang.String getPhpNamespace() { 20177 java.lang.Object ref = phpNamespace_; 20178 if (ref instanceof java.lang.String) { 20179 return (java.lang.String) ref; 20180 } else { 20181 com.google.protobuf.ByteString bs = 20182 (com.google.protobuf.ByteString) ref; 20183 java.lang.String s = bs.toStringUtf8(); 20184 if (bs.isValidUtf8()) { 20185 phpNamespace_ = s; 20186 } 20187 return s; 20188 } 20189 } 20190 /** 20191 * <pre> 20192 * Use this option to change the namespace of php generated classes. Default 20193 * is empty. When this option is empty, the package name will be used for 20194 * determining the namespace. 20195 * </pre> 20196 * 20197 * <code>optional string php_namespace = 41;</code> 20198 */ 20199 public com.google.protobuf.ByteString 20200 getPhpNamespaceBytes() { 20201 java.lang.Object ref = phpNamespace_; 20202 if (ref instanceof java.lang.String) { 20203 com.google.protobuf.ByteString b = 20204 com.google.protobuf.ByteString.copyFromUtf8( 20205 (java.lang.String) ref); 20206 phpNamespace_ = b; 20207 return b; 20208 } else { 20209 return (com.google.protobuf.ByteString) ref; 20210 } 15767 20211 } 15768 20212 … … 15770 20214 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 15771 20215 /** 15772 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>15773 *15774 20216 * <pre> 15775 20217 * The parser stores options it doesn't recognize here. See above. 15776 20218 * </pre> 15777 */ 15778 @Override 15779 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 20219 * 20220 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20221 */ 20222 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 15780 20223 return uninterpretedOption_; 15781 20224 } 15782 20225 /** 15783 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>15784 *15785 20226 * <pre> 15786 20227 * The parser stores options it doesn't recognize here. See above. 15787 20228 * </pre> 15788 */ 15789 @Override 15790 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 20229 * 20230 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20231 */ 20232 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 15791 20233 getUninterpretedOptionOrBuilderList() { 15792 20234 return uninterpretedOption_; 15793 20235 } 15794 20236 /** 15795 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>15796 *15797 20237 * <pre> 15798 20238 * The parser stores options it doesn't recognize here. See above. 15799 20239 * </pre> 15800 */ 15801 @Override 15802 public int getUninterpretedOptionCount() { 20240 * 20241 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20242 */ 20243 public int getUninterpretedOptionCount() { 15803 20244 return uninterpretedOption_.size(); 15804 20245 } 15805 20246 /** 15806 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>15807 *15808 20247 * <pre> 15809 20248 * The parser stores options it doesn't recognize here. See above. 15810 20249 * </pre> 15811 */ 15812 @Override 15813 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 20250 * 20251 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20252 */ 20253 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 15814 20254 return uninterpretedOption_.get(index); 15815 20255 } 15816 20256 /** 15817 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>15818 *15819 20257 * <pre> 15820 20258 * The parser stores options it doesn't recognize here. See above. 15821 20259 * </pre> 15822 */ 15823 @Override 15824 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 20260 * 20261 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20262 */ 20263 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 15825 20264 int index) { 15826 20265 return uninterpretedOption_.get(index); 15827 20266 } 15828 20267 15829 private void initFields() {15830 javaPackage_ = "";15831 javaOuterClassname_ = "";15832 javaMultipleFiles_ = false;15833 javaGenerateEqualsAndHash_ = false;15834 javaStringCheckUtf8_ = false;15835 optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED;15836 goPackage_ = "";15837 ccGenericServices_ = false;15838 javaGenericServices_ = false;15839 pyGenericServices_ = false;15840 deprecated_ = false;15841 uninterpretedOption_ = java.util.Collections.emptyList();15842 }15843 20268 private byte memoizedIsInitialized = -1; 15844 @Override 15845 public final boolean isInitialized() { 20269 public final boolean isInitialized() { 15846 20270 byte isInitialized = memoizedIsInitialized; 15847 20271 if (isInitialized == 1) return true; … … 15862 20286 } 15863 20287 15864 @Override 15865 public void writeTo(com.google.protobuf.CodedOutputStream output) 20288 public void writeTo(com.google.protobuf.CodedOutputStream output) 15866 20289 throws java.io.IOException { 15867 getSerializedSize(); 15868 com.google.protobuf.GeneratedMessage 15869 .ExtendableMessage<com.google.protobuf.DescriptorProtos.FileOptions>.ExtensionWriter extensionWriter = 15870 newExtensionWriter(); 20290 com.google.protobuf.GeneratedMessageV3 20291 .ExtendableMessage<com.google.protobuf.DescriptorProtos.FileOptions>.ExtensionWriter 20292 extensionWriter = newExtensionWriter(); 15871 20293 if (((bitField0_ & 0x00000001) == 0x00000001)) { 15872 output.writeBytes(1, getJavaPackageBytes());20294 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, javaPackage_); 15873 20295 } 15874 20296 if (((bitField0_ & 0x00000002) == 0x00000002)) { 15875 output.writeBytes(8, getJavaOuterClassnameBytes());20297 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, javaOuterClassname_); 15876 20298 } 15877 20299 if (((bitField0_ & 0x00000020) == 0x00000020)) { 15878 output.writeEnum(9, optimizeFor_ .getNumber());20300 output.writeEnum(9, optimizeFor_); 15879 20301 } 15880 20302 if (((bitField0_ & 0x00000004) == 0x00000004)) { … … 15882 20304 } 15883 20305 if (((bitField0_ & 0x00000040) == 0x00000040)) { 15884 output.writeBytes(11, getGoPackageBytes());20306 com.google.protobuf.GeneratedMessageV3.writeString(output, 11, goPackage_); 15885 20307 } 15886 20308 if (((bitField0_ & 0x00000080) == 0x00000080)) { … … 15896 20318 output.writeBool(20, javaGenerateEqualsAndHash_); 15897 20319 } 15898 if (((bitField0_ & 0x00000 400) == 0x00000400)) {20320 if (((bitField0_ & 0x00000800) == 0x00000800)) { 15899 20321 output.writeBool(23, deprecated_); 15900 20322 } … … 15902 20324 output.writeBool(27, javaStringCheckUtf8_); 15903 20325 } 20326 if (((bitField0_ & 0x00001000) == 0x00001000)) { 20327 output.writeBool(31, ccEnableArenas_); 20328 } 20329 if (((bitField0_ & 0x00002000) == 0x00002000)) { 20330 com.google.protobuf.GeneratedMessageV3.writeString(output, 36, objcClassPrefix_); 20331 } 20332 if (((bitField0_ & 0x00004000) == 0x00004000)) { 20333 com.google.protobuf.GeneratedMessageV3.writeString(output, 37, csharpNamespace_); 20334 } 20335 if (((bitField0_ & 0x00008000) == 0x00008000)) { 20336 com.google.protobuf.GeneratedMessageV3.writeString(output, 39, swiftPrefix_); 20337 } 20338 if (((bitField0_ & 0x00010000) == 0x00010000)) { 20339 com.google.protobuf.GeneratedMessageV3.writeString(output, 40, phpClassPrefix_); 20340 } 20341 if (((bitField0_ & 0x00020000) == 0x00020000)) { 20342 com.google.protobuf.GeneratedMessageV3.writeString(output, 41, phpNamespace_); 20343 } 20344 if (((bitField0_ & 0x00000400) == 0x00000400)) { 20345 output.writeBool(42, phpGenericServices_); 20346 } 15904 20347 for (int i = 0; i < uninterpretedOption_.size(); i++) { 15905 20348 output.writeMessage(999, uninterpretedOption_.get(i)); 15906 20349 } 15907 20350 extensionWriter.writeUntil(536870912, output); 15908 getUnknownFields().writeTo(output); 15909 } 15910 15911 private int memoizedSerializedSize = -1; 15912 @Override 15913 public int getSerializedSize() { 15914 int size = memoizedSerializedSize; 20351 unknownFields.writeTo(output); 20352 } 20353 20354 public int getSerializedSize() { 20355 int size = memoizedSize; 15915 20356 if (size != -1) return size; 15916 20357 15917 20358 size = 0; 15918 20359 if (((bitField0_ & 0x00000001) == 0x00000001)) { 15919 size += com.google.protobuf.CodedOutputStream 15920 .computeBytesSize(1, getJavaPackageBytes()); 20360 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, javaPackage_); 15921 20361 } 15922 20362 if (((bitField0_ & 0x00000002) == 0x00000002)) { 15923 size += com.google.protobuf.CodedOutputStream 15924 .computeBytesSize(8, getJavaOuterClassnameBytes()); 20363 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, javaOuterClassname_); 15925 20364 } 15926 20365 if (((bitField0_ & 0x00000020) == 0x00000020)) { 15927 20366 size += com.google.protobuf.CodedOutputStream 15928 .computeEnumSize(9, optimizeFor_ .getNumber());20367 .computeEnumSize(9, optimizeFor_); 15929 20368 } 15930 20369 if (((bitField0_ & 0x00000004) == 0x00000004)) { … … 15933 20372 } 15934 20373 if (((bitField0_ & 0x00000040) == 0x00000040)) { 15935 size += com.google.protobuf.CodedOutputStream 15936 .computeBytesSize(11, getGoPackageBytes()); 20374 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, goPackage_); 15937 20375 } 15938 20376 if (((bitField0_ & 0x00000080) == 0x00000080)) { … … 15952 20390 .computeBoolSize(20, javaGenerateEqualsAndHash_); 15953 20391 } 15954 if (((bitField0_ & 0x00000 400) == 0x00000400)) {20392 if (((bitField0_ & 0x00000800) == 0x00000800)) { 15955 20393 size += com.google.protobuf.CodedOutputStream 15956 20394 .computeBoolSize(23, deprecated_); … … 15960 20398 .computeBoolSize(27, javaStringCheckUtf8_); 15961 20399 } 20400 if (((bitField0_ & 0x00001000) == 0x00001000)) { 20401 size += com.google.protobuf.CodedOutputStream 20402 .computeBoolSize(31, ccEnableArenas_); 20403 } 20404 if (((bitField0_ & 0x00002000) == 0x00002000)) { 20405 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, objcClassPrefix_); 20406 } 20407 if (((bitField0_ & 0x00004000) == 0x00004000)) { 20408 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, csharpNamespace_); 20409 } 20410 if (((bitField0_ & 0x00008000) == 0x00008000)) { 20411 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(39, swiftPrefix_); 20412 } 20413 if (((bitField0_ & 0x00010000) == 0x00010000)) { 20414 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40, phpClassPrefix_); 20415 } 20416 if (((bitField0_ & 0x00020000) == 0x00020000)) { 20417 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(41, phpNamespace_); 20418 } 20419 if (((bitField0_ & 0x00000400) == 0x00000400)) { 20420 size += com.google.protobuf.CodedOutputStream 20421 .computeBoolSize(42, phpGenericServices_); 20422 } 15962 20423 for (int i = 0; i < uninterpretedOption_.size(); i++) { 15963 20424 size += com.google.protobuf.CodedOutputStream … … 15965 20426 } 15966 20427 size += extensionsSerializedSize(); 15967 size += getUnknownFields().getSerializedSize();15968 memoizedS erializedSize = size;20428 size += unknownFields.getSerializedSize(); 20429 memoizedSize = size; 15969 20430 return size; 15970 20431 } 15971 20432 15972 private static final long serialVersionUID = 0L;15973 20433 @java.lang.Override 15974 protected java.lang.Object writeReplace() 15975 throws java.io.ObjectStreamException { 15976 return super.writeReplace(); 15977 } 15978 20434 public boolean equals(final java.lang.Object obj) { 20435 if (obj == this) { 20436 return true; 20437 } 20438 if (!(obj instanceof com.google.protobuf.DescriptorProtos.FileOptions)) { 20439 return super.equals(obj); 20440 } 20441 com.google.protobuf.DescriptorProtos.FileOptions other = (com.google.protobuf.DescriptorProtos.FileOptions) obj; 20442 20443 boolean result = true; 20444 result = result && (hasJavaPackage() == other.hasJavaPackage()); 20445 if (hasJavaPackage()) { 20446 result = result && getJavaPackage() 20447 .equals(other.getJavaPackage()); 20448 } 20449 result = result && (hasJavaOuterClassname() == other.hasJavaOuterClassname()); 20450 if (hasJavaOuterClassname()) { 20451 result = result && getJavaOuterClassname() 20452 .equals(other.getJavaOuterClassname()); 20453 } 20454 result = result && (hasJavaMultipleFiles() == other.hasJavaMultipleFiles()); 20455 if (hasJavaMultipleFiles()) { 20456 result = result && (getJavaMultipleFiles() 20457 == other.getJavaMultipleFiles()); 20458 } 20459 result = result && (hasJavaGenerateEqualsAndHash() == other.hasJavaGenerateEqualsAndHash()); 20460 if (hasJavaGenerateEqualsAndHash()) { 20461 result = result && (getJavaGenerateEqualsAndHash() 20462 == other.getJavaGenerateEqualsAndHash()); 20463 } 20464 result = result && (hasJavaStringCheckUtf8() == other.hasJavaStringCheckUtf8()); 20465 if (hasJavaStringCheckUtf8()) { 20466 result = result && (getJavaStringCheckUtf8() 20467 == other.getJavaStringCheckUtf8()); 20468 } 20469 result = result && (hasOptimizeFor() == other.hasOptimizeFor()); 20470 if (hasOptimizeFor()) { 20471 result = result && optimizeFor_ == other.optimizeFor_; 20472 } 20473 result = result && (hasGoPackage() == other.hasGoPackage()); 20474 if (hasGoPackage()) { 20475 result = result && getGoPackage() 20476 .equals(other.getGoPackage()); 20477 } 20478 result = result && (hasCcGenericServices() == other.hasCcGenericServices()); 20479 if (hasCcGenericServices()) { 20480 result = result && (getCcGenericServices() 20481 == other.getCcGenericServices()); 20482 } 20483 result = result && (hasJavaGenericServices() == other.hasJavaGenericServices()); 20484 if (hasJavaGenericServices()) { 20485 result = result && (getJavaGenericServices() 20486 == other.getJavaGenericServices()); 20487 } 20488 result = result && (hasPyGenericServices() == other.hasPyGenericServices()); 20489 if (hasPyGenericServices()) { 20490 result = result && (getPyGenericServices() 20491 == other.getPyGenericServices()); 20492 } 20493 result = result && (hasPhpGenericServices() == other.hasPhpGenericServices()); 20494 if (hasPhpGenericServices()) { 20495 result = result && (getPhpGenericServices() 20496 == other.getPhpGenericServices()); 20497 } 20498 result = result && (hasDeprecated() == other.hasDeprecated()); 20499 if (hasDeprecated()) { 20500 result = result && (getDeprecated() 20501 == other.getDeprecated()); 20502 } 20503 result = result && (hasCcEnableArenas() == other.hasCcEnableArenas()); 20504 if (hasCcEnableArenas()) { 20505 result = result && (getCcEnableArenas() 20506 == other.getCcEnableArenas()); 20507 } 20508 result = result && (hasObjcClassPrefix() == other.hasObjcClassPrefix()); 20509 if (hasObjcClassPrefix()) { 20510 result = result && getObjcClassPrefix() 20511 .equals(other.getObjcClassPrefix()); 20512 } 20513 result = result && (hasCsharpNamespace() == other.hasCsharpNamespace()); 20514 if (hasCsharpNamespace()) { 20515 result = result && getCsharpNamespace() 20516 .equals(other.getCsharpNamespace()); 20517 } 20518 result = result && (hasSwiftPrefix() == other.hasSwiftPrefix()); 20519 if (hasSwiftPrefix()) { 20520 result = result && getSwiftPrefix() 20521 .equals(other.getSwiftPrefix()); 20522 } 20523 result = result && (hasPhpClassPrefix() == other.hasPhpClassPrefix()); 20524 if (hasPhpClassPrefix()) { 20525 result = result && getPhpClassPrefix() 20526 .equals(other.getPhpClassPrefix()); 20527 } 20528 result = result && (hasPhpNamespace() == other.hasPhpNamespace()); 20529 if (hasPhpNamespace()) { 20530 result = result && getPhpNamespace() 20531 .equals(other.getPhpNamespace()); 20532 } 20533 result = result && getUninterpretedOptionList() 20534 .equals(other.getUninterpretedOptionList()); 20535 result = result && unknownFields.equals(other.unknownFields); 20536 result = result && 20537 getExtensionFields().equals(other.getExtensionFields()); 20538 return result; 20539 } 20540 20541 @java.lang.Override 20542 public int hashCode() { 20543 if (memoizedHashCode != 0) { 20544 return memoizedHashCode; 20545 } 20546 int hash = 41; 20547 hash = (19 * hash) + getDescriptor().hashCode(); 20548 if (hasJavaPackage()) { 20549 hash = (37 * hash) + JAVA_PACKAGE_FIELD_NUMBER; 20550 hash = (53 * hash) + getJavaPackage().hashCode(); 20551 } 20552 if (hasJavaOuterClassname()) { 20553 hash = (37 * hash) + JAVA_OUTER_CLASSNAME_FIELD_NUMBER; 20554 hash = (53 * hash) + getJavaOuterClassname().hashCode(); 20555 } 20556 if (hasJavaMultipleFiles()) { 20557 hash = (37 * hash) + JAVA_MULTIPLE_FILES_FIELD_NUMBER; 20558 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 20559 getJavaMultipleFiles()); 20560 } 20561 if (hasJavaGenerateEqualsAndHash()) { 20562 hash = (37 * hash) + JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER; 20563 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 20564 getJavaGenerateEqualsAndHash()); 20565 } 20566 if (hasJavaStringCheckUtf8()) { 20567 hash = (37 * hash) + JAVA_STRING_CHECK_UTF8_FIELD_NUMBER; 20568 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 20569 getJavaStringCheckUtf8()); 20570 } 20571 if (hasOptimizeFor()) { 20572 hash = (37 * hash) + OPTIMIZE_FOR_FIELD_NUMBER; 20573 hash = (53 * hash) + optimizeFor_; 20574 } 20575 if (hasGoPackage()) { 20576 hash = (37 * hash) + GO_PACKAGE_FIELD_NUMBER; 20577 hash = (53 * hash) + getGoPackage().hashCode(); 20578 } 20579 if (hasCcGenericServices()) { 20580 hash = (37 * hash) + CC_GENERIC_SERVICES_FIELD_NUMBER; 20581 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 20582 getCcGenericServices()); 20583 } 20584 if (hasJavaGenericServices()) { 20585 hash = (37 * hash) + JAVA_GENERIC_SERVICES_FIELD_NUMBER; 20586 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 20587 getJavaGenericServices()); 20588 } 20589 if (hasPyGenericServices()) { 20590 hash = (37 * hash) + PY_GENERIC_SERVICES_FIELD_NUMBER; 20591 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 20592 getPyGenericServices()); 20593 } 20594 if (hasPhpGenericServices()) { 20595 hash = (37 * hash) + PHP_GENERIC_SERVICES_FIELD_NUMBER; 20596 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 20597 getPhpGenericServices()); 20598 } 20599 if (hasDeprecated()) { 20600 hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; 20601 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 20602 getDeprecated()); 20603 } 20604 if (hasCcEnableArenas()) { 20605 hash = (37 * hash) + CC_ENABLE_ARENAS_FIELD_NUMBER; 20606 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 20607 getCcEnableArenas()); 20608 } 20609 if (hasObjcClassPrefix()) { 20610 hash = (37 * hash) + OBJC_CLASS_PREFIX_FIELD_NUMBER; 20611 hash = (53 * hash) + getObjcClassPrefix().hashCode(); 20612 } 20613 if (hasCsharpNamespace()) { 20614 hash = (37 * hash) + CSHARP_NAMESPACE_FIELD_NUMBER; 20615 hash = (53 * hash) + getCsharpNamespace().hashCode(); 20616 } 20617 if (hasSwiftPrefix()) { 20618 hash = (37 * hash) + SWIFT_PREFIX_FIELD_NUMBER; 20619 hash = (53 * hash) + getSwiftPrefix().hashCode(); 20620 } 20621 if (hasPhpClassPrefix()) { 20622 hash = (37 * hash) + PHP_CLASS_PREFIX_FIELD_NUMBER; 20623 hash = (53 * hash) + getPhpClassPrefix().hashCode(); 20624 } 20625 if (hasPhpNamespace()) { 20626 hash = (37 * hash) + PHP_NAMESPACE_FIELD_NUMBER; 20627 hash = (53 * hash) + getPhpNamespace().hashCode(); 20628 } 20629 if (getUninterpretedOptionCount() > 0) { 20630 hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; 20631 hash = (53 * hash) + getUninterpretedOptionList().hashCode(); 20632 } 20633 hash = hashFields(hash, getExtensionFields()); 20634 hash = (29 * hash) + unknownFields.hashCode(); 20635 memoizedHashCode = hash; 20636 return hash; 20637 } 20638 20639 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 20640 java.nio.ByteBuffer data) 20641 throws com.google.protobuf.InvalidProtocolBufferException { 20642 return PARSER.parseFrom(data); 20643 } 20644 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 20645 java.nio.ByteBuffer data, 20646 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 20647 throws com.google.protobuf.InvalidProtocolBufferException { 20648 return PARSER.parseFrom(data, extensionRegistry); 20649 } 15979 20650 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 15980 20651 com.google.protobuf.ByteString data) … … 16000 20671 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom(java.io.InputStream input) 16001 20672 throws java.io.IOException { 16002 return PARSER.parseFrom(input); 20673 return com.google.protobuf.GeneratedMessageV3 20674 .parseWithIOException(PARSER, input); 16003 20675 } 16004 20676 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( … … 16006 20678 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16007 20679 throws java.io.IOException { 16008 return PARSER.parseFrom(input, extensionRegistry); 20680 return com.google.protobuf.GeneratedMessageV3 20681 .parseWithIOException(PARSER, input, extensionRegistry); 16009 20682 } 16010 20683 public static com.google.protobuf.DescriptorProtos.FileOptions parseDelimitedFrom(java.io.InputStream input) 16011 20684 throws java.io.IOException { 16012 return PARSER.parseDelimitedFrom(input); 20685 return com.google.protobuf.GeneratedMessageV3 20686 .parseDelimitedWithIOException(PARSER, input); 16013 20687 } 16014 20688 public static com.google.protobuf.DescriptorProtos.FileOptions parseDelimitedFrom( … … 16016 20690 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16017 20691 throws java.io.IOException { 16018 return PARSER.parseDelimitedFrom(input, extensionRegistry); 20692 return com.google.protobuf.GeneratedMessageV3 20693 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 16019 20694 } 16020 20695 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( 16021 20696 com.google.protobuf.CodedInputStream input) 16022 20697 throws java.io.IOException { 16023 return PARSER.parseFrom(input); 20698 return com.google.protobuf.GeneratedMessageV3 20699 .parseWithIOException(PARSER, input); 16024 20700 } 16025 20701 public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( … … 16027 20703 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 16028 20704 throws java.io.IOException { 16029 return PARSER.parseFrom(input, extensionRegistry); 16030 } 16031 16032 public static Builder newBuilder() { return Builder.create(); } 16033 @Override 16034 public Builder newBuilderForType() { return newBuilder(); } 20705 return com.google.protobuf.GeneratedMessageV3 20706 .parseWithIOException(PARSER, input, extensionRegistry); 20707 } 20708 20709 public Builder newBuilderForType() { return newBuilder(); } 20710 public static Builder newBuilder() { 20711 return DEFAULT_INSTANCE.toBuilder(); 20712 } 16035 20713 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileOptions prototype) { 16036 return newBuilder().mergeFrom(prototype); 16037 } 16038 @Override 16039 public Builder toBuilder() { return newBuilder(this); } 20714 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 20715 } 20716 public Builder toBuilder() { 20717 return this == DEFAULT_INSTANCE 20718 ? new Builder() : new Builder().mergeFrom(this); 20719 } 16040 20720 16041 20721 @java.lang.Override 16042 20722 protected Builder newBuilderForType( 16043 com.google.protobuf.GeneratedMessage .BuilderParent parent) {20723 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 16044 20724 Builder builder = new Builder(parent); 16045 20725 return builder; … … 16049 20729 */ 16050 20730 public static final class Builder extends 16051 com.google.protobuf.GeneratedMessage .ExtendableBuilder<20731 com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< 16052 20732 com.google.protobuf.DescriptorProtos.FileOptions, Builder> implements 16053 20733 // @@protoc_insertion_point(builder_implements:google.protobuf.FileOptions) … … 16058 20738 } 16059 20739 16060 @Override 16061 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 20740 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 16062 20741 internalGetFieldAccessorTable() { 16063 20742 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_fieldAccessorTable … … 16072 20751 16073 20752 private Builder( 16074 com.google.protobuf.GeneratedMessage .BuilderParent parent) {20753 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 16075 20754 super(parent); 16076 20755 maybeForceBuilderInitialization(); 16077 20756 } 16078 20757 private void maybeForceBuilderInitialization() { 16079 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 20758 if (com.google.protobuf.GeneratedMessageV3 20759 .alwaysUseFieldBuilders) { 16080 20760 getUninterpretedOptionFieldBuilder(); 16081 20761 } 16082 20762 } 16083 private static Builder create() { 16084 return new Builder(); 16085 } 16086 16087 @Override 16088 public Builder clear() { 20763 public Builder clear() { 16089 20764 super.clear(); 16090 20765 javaPackage_ = ""; … … 16098 20773 javaStringCheckUtf8_ = false; 16099 20774 bitField0_ = (bitField0_ & ~0x00000010); 16100 optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED;20775 optimizeFor_ = 1; 16101 20776 bitField0_ = (bitField0_ & ~0x00000020); 16102 20777 goPackage_ = ""; … … 16108 20783 pyGenericServices_ = false; 16109 20784 bitField0_ = (bitField0_ & ~0x00000200); 20785 phpGenericServices_ = false; 20786 bitField0_ = (bitField0_ & ~0x00000400); 16110 20787 deprecated_ = false; 16111 bitField0_ = (bitField0_ & ~0x00000400); 20788 bitField0_ = (bitField0_ & ~0x00000800); 20789 ccEnableArenas_ = false; 20790 bitField0_ = (bitField0_ & ~0x00001000); 20791 objcClassPrefix_ = ""; 20792 bitField0_ = (bitField0_ & ~0x00002000); 20793 csharpNamespace_ = ""; 20794 bitField0_ = (bitField0_ & ~0x00004000); 20795 swiftPrefix_ = ""; 20796 bitField0_ = (bitField0_ & ~0x00008000); 20797 phpClassPrefix_ = ""; 20798 bitField0_ = (bitField0_ & ~0x00010000); 20799 phpNamespace_ = ""; 20800 bitField0_ = (bitField0_ & ~0x00020000); 16112 20801 if (uninterpretedOptionBuilder_ == null) { 16113 20802 uninterpretedOption_ = java.util.Collections.emptyList(); 16114 bitField0_ = (bitField0_ & ~0x000 00800);20803 bitField0_ = (bitField0_ & ~0x00040000); 16115 20804 } else { 16116 20805 uninterpretedOptionBuilder_.clear(); … … 16119 20808 } 16120 20809 16121 @Override 16122 public Builder clone() { 16123 return create().mergeFrom(buildPartial()); 16124 } 16125 16126 @Override 16127 public com.google.protobuf.Descriptors.Descriptor 20810 public com.google.protobuf.Descriptors.Descriptor 16128 20811 getDescriptorForType() { 16129 20812 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileOptions_descriptor; 16130 20813 } 16131 20814 16132 @Override 16133 public com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstanceForType() { 20815 public com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstanceForType() { 16134 20816 return com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); 16135 20817 } 16136 20818 16137 @Override 16138 public com.google.protobuf.DescriptorProtos.FileOptions build() { 20819 public com.google.protobuf.DescriptorProtos.FileOptions build() { 16139 20820 com.google.protobuf.DescriptorProtos.FileOptions result = buildPartial(); 16140 20821 if (!result.isInitialized()) { … … 16144 20825 } 16145 20826 16146 @Override 16147 public com.google.protobuf.DescriptorProtos.FileOptions buildPartial() { 20827 public com.google.protobuf.DescriptorProtos.FileOptions buildPartial() { 16148 20828 com.google.protobuf.DescriptorProtos.FileOptions result = new com.google.protobuf.DescriptorProtos.FileOptions(this); 16149 20829 int from_bitField0_ = bitField0_; … … 16192 20872 to_bitField0_ |= 0x00000400; 16193 20873 } 20874 result.phpGenericServices_ = phpGenericServices_; 20875 if (((from_bitField0_ & 0x00000800) == 0x00000800)) { 20876 to_bitField0_ |= 0x00000800; 20877 } 16194 20878 result.deprecated_ = deprecated_; 20879 if (((from_bitField0_ & 0x00001000) == 0x00001000)) { 20880 to_bitField0_ |= 0x00001000; 20881 } 20882 result.ccEnableArenas_ = ccEnableArenas_; 20883 if (((from_bitField0_ & 0x00002000) == 0x00002000)) { 20884 to_bitField0_ |= 0x00002000; 20885 } 20886 result.objcClassPrefix_ = objcClassPrefix_; 20887 if (((from_bitField0_ & 0x00004000) == 0x00004000)) { 20888 to_bitField0_ |= 0x00004000; 20889 } 20890 result.csharpNamespace_ = csharpNamespace_; 20891 if (((from_bitField0_ & 0x00008000) == 0x00008000)) { 20892 to_bitField0_ |= 0x00008000; 20893 } 20894 result.swiftPrefix_ = swiftPrefix_; 20895 if (((from_bitField0_ & 0x00010000) == 0x00010000)) { 20896 to_bitField0_ |= 0x00010000; 20897 } 20898 result.phpClassPrefix_ = phpClassPrefix_; 20899 if (((from_bitField0_ & 0x00020000) == 0x00020000)) { 20900 to_bitField0_ |= 0x00020000; 20901 } 20902 result.phpNamespace_ = phpNamespace_; 16195 20903 if (uninterpretedOptionBuilder_ == null) { 16196 if (((bitField0_ & 0x000 00800) == 0x00000800)) {20904 if (((bitField0_ & 0x00040000) == 0x00040000)) { 16197 20905 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 16198 bitField0_ = (bitField0_ & ~0x000 00800);20906 bitField0_ = (bitField0_ & ~0x00040000); 16199 20907 } 16200 20908 result.uninterpretedOption_ = uninterpretedOption_; … … 16207 20915 } 16208 20916 16209 @Override 16210 public Builder mergeFrom(com.google.protobuf.Message other) { 20917 public Builder clone() { 20918 return (Builder) super.clone(); 20919 } 20920 public Builder setField( 20921 com.google.protobuf.Descriptors.FieldDescriptor field, 20922 java.lang.Object value) { 20923 return (Builder) super.setField(field, value); 20924 } 20925 public Builder clearField( 20926 com.google.protobuf.Descriptors.FieldDescriptor field) { 20927 return (Builder) super.clearField(field); 20928 } 20929 public Builder clearOneof( 20930 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 20931 return (Builder) super.clearOneof(oneof); 20932 } 20933 public Builder setRepeatedField( 20934 com.google.protobuf.Descriptors.FieldDescriptor field, 20935 int index, java.lang.Object value) { 20936 return (Builder) super.setRepeatedField(field, index, value); 20937 } 20938 public Builder addRepeatedField( 20939 com.google.protobuf.Descriptors.FieldDescriptor field, 20940 java.lang.Object value) { 20941 return (Builder) super.addRepeatedField(field, value); 20942 } 20943 public <Type> Builder setExtension( 20944 com.google.protobuf.GeneratedMessage.GeneratedExtension< 20945 com.google.protobuf.DescriptorProtos.FileOptions, Type> extension, 20946 Type value) { 20947 return (Builder) super.setExtension(extension, value); 20948 } 20949 public <Type> Builder setExtension( 20950 com.google.protobuf.GeneratedMessage.GeneratedExtension< 20951 com.google.protobuf.DescriptorProtos.FileOptions, java.util.List<Type>> extension, 20952 int index, Type value) { 20953 return (Builder) super.setExtension(extension, index, value); 20954 } 20955 public <Type> Builder addExtension( 20956 com.google.protobuf.GeneratedMessage.GeneratedExtension< 20957 com.google.protobuf.DescriptorProtos.FileOptions, java.util.List<Type>> extension, 20958 Type value) { 20959 return (Builder) super.addExtension(extension, value); 20960 } 20961 public <Type> Builder clearExtension( 20962 com.google.protobuf.GeneratedMessage.GeneratedExtension< 20963 com.google.protobuf.DescriptorProtos.FileOptions, ?> extension) { 20964 return (Builder) super.clearExtension(extension); 20965 } 20966 public Builder mergeFrom(com.google.protobuf.Message other) { 16211 20967 if (other instanceof com.google.protobuf.DescriptorProtos.FileOptions) { 16212 20968 return mergeFrom((com.google.protobuf.DescriptorProtos.FileOptions)other); … … 16255 21011 setPyGenericServices(other.getPyGenericServices()); 16256 21012 } 21013 if (other.hasPhpGenericServices()) { 21014 setPhpGenericServices(other.getPhpGenericServices()); 21015 } 16257 21016 if (other.hasDeprecated()) { 16258 21017 setDeprecated(other.getDeprecated()); 21018 } 21019 if (other.hasCcEnableArenas()) { 21020 setCcEnableArenas(other.getCcEnableArenas()); 21021 } 21022 if (other.hasObjcClassPrefix()) { 21023 bitField0_ |= 0x00002000; 21024 objcClassPrefix_ = other.objcClassPrefix_; 21025 onChanged(); 21026 } 21027 if (other.hasCsharpNamespace()) { 21028 bitField0_ |= 0x00004000; 21029 csharpNamespace_ = other.csharpNamespace_; 21030 onChanged(); 21031 } 21032 if (other.hasSwiftPrefix()) { 21033 bitField0_ |= 0x00008000; 21034 swiftPrefix_ = other.swiftPrefix_; 21035 onChanged(); 21036 } 21037 if (other.hasPhpClassPrefix()) { 21038 bitField0_ |= 0x00010000; 21039 phpClassPrefix_ = other.phpClassPrefix_; 21040 onChanged(); 21041 } 21042 if (other.hasPhpNamespace()) { 21043 bitField0_ |= 0x00020000; 21044 phpNamespace_ = other.phpNamespace_; 21045 onChanged(); 16259 21046 } 16260 21047 if (uninterpretedOptionBuilder_ == null) { … … 16262 21049 if (uninterpretedOption_.isEmpty()) { 16263 21050 uninterpretedOption_ = other.uninterpretedOption_; 16264 bitField0_ = (bitField0_ & ~0x000 00800);21051 bitField0_ = (bitField0_ & ~0x00040000); 16265 21052 } else { 16266 21053 ensureUninterpretedOptionIsMutable(); … … 16275 21062 uninterpretedOptionBuilder_ = null; 16276 21063 uninterpretedOption_ = other.uninterpretedOption_; 16277 bitField0_ = (bitField0_ & ~0x000 00800);16278 uninterpretedOptionBuilder_ = 16279 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?21064 bitField0_ = (bitField0_ & ~0x00040000); 21065 uninterpretedOptionBuilder_ = 21066 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 16280 21067 getUninterpretedOptionFieldBuilder() : null; 16281 21068 } else { … … 16285 21072 } 16286 21073 this.mergeExtensionFields(other); 16287 this.mergeUnknownFields(other. getUnknownFields());16288 return this;16289 }16290 16291 @Override 16292 21074 this.mergeUnknownFields(other.unknownFields); 21075 onChanged(); 21076 return this; 21077 } 21078 21079 public final boolean isInitialized() { 16293 21080 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 16294 21081 if (!getUninterpretedOption(i).isInitialized()) { 16295 16296 21082 return false; 16297 21083 } 16298 21084 } 16299 21085 if (!extensionsAreInitialized()) { 16300 16301 21086 return false; 16302 21087 } … … 16304 21089 } 16305 21090 16306 @Override 16307 public Builder mergeFrom( 21091 public Builder mergeFrom( 16308 21092 com.google.protobuf.CodedInputStream input, 16309 21093 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 16314 21098 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 16315 21099 parsedMessage = (com.google.protobuf.DescriptorProtos.FileOptions) e.getUnfinishedMessage(); 16316 throw e ;21100 throw e.unwrapIOException(); 16317 21101 } finally { 16318 21102 if (parsedMessage != null) { … … 16326 21110 private java.lang.Object javaPackage_ = ""; 16327 21111 /** 16328 * <code>optional string java_package = 1;</code>16329 *16330 21112 * <pre> 16331 21113 * Sets the Java package where classes generated from this .proto will be … … 16334 21116 * domain names. 16335 21117 * </pre> 16336 */ 16337 @Override 16338 public boolean hasJavaPackage() { 21118 * 21119 * <code>optional string java_package = 1;</code> 21120 */ 21121 public boolean hasJavaPackage() { 16339 21122 return ((bitField0_ & 0x00000001) == 0x00000001); 16340 21123 } 16341 21124 /** 16342 * <code>optional string java_package = 1;</code>16343 *16344 21125 * <pre> 16345 21126 * Sets the Java package where classes generated from this .proto will be … … 16348 21129 * domain names. 16349 21130 * </pre> 16350 */ 16351 @Override 16352 public java.lang.String getJavaPackage() { 21131 * 21132 * <code>optional string java_package = 1;</code> 21133 */ 21134 public java.lang.String getJavaPackage() { 16353 21135 java.lang.Object ref = javaPackage_; 16354 21136 if (!(ref instanceof java.lang.String)) { … … 16365 21147 } 16366 21148 /** 16367 * <code>optional string java_package = 1;</code>16368 *16369 21149 * <pre> 16370 21150 * Sets the Java package where classes generated from this .proto will be … … 16373 21153 * domain names. 16374 21154 * </pre> 16375 */ 16376 @Override 16377 public com.google.protobuf.ByteString 21155 * 21156 * <code>optional string java_package = 1;</code> 21157 */ 21158 public com.google.protobuf.ByteString 16378 21159 getJavaPackageBytes() { 16379 21160 java.lang.Object ref = javaPackage_; 16380 21161 if (ref instanceof String) { 16381 com.google.protobuf.ByteString b = 21162 com.google.protobuf.ByteString b = 16382 21163 com.google.protobuf.ByteString.copyFromUtf8( 16383 21164 (java.lang.String) ref); … … 16389 21170 } 16390 21171 /** 16391 * <code>optional string java_package = 1;</code>16392 *16393 21172 * <pre> 16394 21173 * Sets the Java package where classes generated from this .proto will be … … 16397 21176 * domain names. 16398 21177 * </pre> 21178 * 21179 * <code>optional string java_package = 1;</code> 16399 21180 */ 16400 21181 public Builder setJavaPackage( … … 16409 21190 } 16410 21191 /** 16411 * <code>optional string java_package = 1;</code>16412 *16413 21192 * <pre> 16414 21193 * Sets the Java package where classes generated from this .proto will be … … 16417 21196 * domain names. 16418 21197 * </pre> 21198 * 21199 * <code>optional string java_package = 1;</code> 16419 21200 */ 16420 21201 public Builder clearJavaPackage() { … … 16425 21206 } 16426 21207 /** 16427 * <code>optional string java_package = 1;</code>16428 *16429 21208 * <pre> 16430 21209 * Sets the Java package where classes generated from this .proto will be … … 16433 21212 * domain names. 16434 21213 * </pre> 21214 * 21215 * <code>optional string java_package = 1;</code> 16435 21216 */ 16436 21217 public Builder setJavaPackageBytes( … … 16447 21228 private java.lang.Object javaOuterClassname_ = ""; 16448 21229 /** 16449 * <code>optional string java_outer_classname = 8;</code>16450 *16451 21230 * <pre> 16452 21231 * If set, all the classes from the .proto file are wrapped in a single … … 16456 21235 * explicitly choose the class name). 16457 21236 * </pre> 16458 */ 16459 @Override 16460 public boolean hasJavaOuterClassname() { 21237 * 21238 * <code>optional string java_outer_classname = 8;</code> 21239 */ 21240 public boolean hasJavaOuterClassname() { 16461 21241 return ((bitField0_ & 0x00000002) == 0x00000002); 16462 21242 } 16463 21243 /** 16464 * <code>optional string java_outer_classname = 8;</code>16465 *16466 21244 * <pre> 16467 21245 * If set, all the classes from the .proto file are wrapped in a single … … 16471 21249 * explicitly choose the class name). 16472 21250 * </pre> 16473 */ 16474 @Override 16475 public java.lang.String getJavaOuterClassname() { 21251 * 21252 * <code>optional string java_outer_classname = 8;</code> 21253 */ 21254 public java.lang.String getJavaOuterClassname() { 16476 21255 java.lang.Object ref = javaOuterClassname_; 16477 21256 if (!(ref instanceof java.lang.String)) { … … 16488 21267 } 16489 21268 /** 16490 * <code>optional string java_outer_classname = 8;</code>16491 *16492 21269 * <pre> 16493 21270 * If set, all the classes from the .proto file are wrapped in a single … … 16497 21274 * explicitly choose the class name). 16498 21275 * </pre> 16499 */ 16500 @Override 16501 public com.google.protobuf.ByteString 21276 * 21277 * <code>optional string java_outer_classname = 8;</code> 21278 */ 21279 public com.google.protobuf.ByteString 16502 21280 getJavaOuterClassnameBytes() { 16503 21281 java.lang.Object ref = javaOuterClassname_; 16504 21282 if (ref instanceof String) { 16505 com.google.protobuf.ByteString b = 21283 com.google.protobuf.ByteString b = 16506 21284 com.google.protobuf.ByteString.copyFromUtf8( 16507 21285 (java.lang.String) ref); … … 16513 21291 } 16514 21292 /** 16515 * <code>optional string java_outer_classname = 8;</code>16516 *16517 21293 * <pre> 16518 21294 * If set, all the classes from the .proto file are wrapped in a single … … 16522 21298 * explicitly choose the class name). 16523 21299 * </pre> 21300 * 21301 * <code>optional string java_outer_classname = 8;</code> 16524 21302 */ 16525 21303 public Builder setJavaOuterClassname( … … 16534 21312 } 16535 21313 /** 16536 * <code>optional string java_outer_classname = 8;</code>16537 *16538 21314 * <pre> 16539 21315 * If set, all the classes from the .proto file are wrapped in a single … … 16543 21319 * explicitly choose the class name). 16544 21320 * </pre> 21321 * 21322 * <code>optional string java_outer_classname = 8;</code> 16545 21323 */ 16546 21324 public Builder clearJavaOuterClassname() { … … 16551 21329 } 16552 21330 /** 16553 * <code>optional string java_outer_classname = 8;</code>16554 *16555 21331 * <pre> 16556 21332 * If set, all the classes from the .proto file are wrapped in a single … … 16560 21336 * explicitly choose the class name). 16561 21337 * </pre> 21338 * 21339 * <code>optional string java_outer_classname = 8;</code> 16562 21340 */ 16563 21341 public Builder setJavaOuterClassnameBytes( … … 16574 21352 private boolean javaMultipleFiles_ ; 16575 21353 /** 16576 * <code>optional bool java_multiple_files = 10 [default = false];</code>16577 *16578 21354 * <pre> 16579 21355 * If set true, then the Java code generator will generate a separate .java … … 16584 21360 * top-level extensions defined in the file. 16585 21361 * </pre> 16586 */ 16587 @Override 16588 public boolean hasJavaMultipleFiles() { 21362 * 21363 * <code>optional bool java_multiple_files = 10 [default = false];</code> 21364 */ 21365 public boolean hasJavaMultipleFiles() { 16589 21366 return ((bitField0_ & 0x00000004) == 0x00000004); 16590 21367 } 16591 21368 /** 16592 * <code>optional bool java_multiple_files = 10 [default = false];</code>16593 *16594 21369 * <pre> 16595 21370 * If set true, then the Java code generator will generate a separate .java … … 16600 21375 * top-level extensions defined in the file. 16601 21376 * </pre> 16602 */ 16603 @Override 16604 public boolean getJavaMultipleFiles() { 21377 * 21378 * <code>optional bool java_multiple_files = 10 [default = false];</code> 21379 */ 21380 public boolean getJavaMultipleFiles() { 16605 21381 return javaMultipleFiles_; 16606 21382 } 16607 21383 /** 16608 * <code>optional bool java_multiple_files = 10 [default = false];</code>16609 *16610 21384 * <pre> 16611 21385 * If set true, then the Java code generator will generate a separate .java … … 16616 21390 * top-level extensions defined in the file. 16617 21391 * </pre> 21392 * 21393 * <code>optional bool java_multiple_files = 10 [default = false];</code> 16618 21394 */ 16619 21395 public Builder setJavaMultipleFiles(boolean value) { … … 16624 21400 } 16625 21401 /** 16626 * <code>optional bool java_multiple_files = 10 [default = false];</code>16627 *16628 21402 * <pre> 16629 21403 * If set true, then the Java code generator will generate a separate .java … … 16634 21408 * top-level extensions defined in the file. 16635 21409 * </pre> 21410 * 21411 * <code>optional bool java_multiple_files = 10 [default = false];</code> 16636 21412 */ 16637 21413 public Builder clearJavaMultipleFiles() { … … 16644 21420 private boolean javaGenerateEqualsAndHash_ ; 16645 21421 /** 16646 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 16647 * 16648 * <pre> 16649 * If set true, then the Java code generator will generate equals() and 16650 * hashCode() methods for all messages defined in the .proto file. 16651 * - In the full runtime, this is purely a speed optimization, as the 16652 * AbstractMessage base class includes reflection-based implementations of 16653 * these methods. 16654 *- In the lite runtime, setting this option changes the semantics of 16655 * equals() and hashCode() to more closely match those of the full runtime; 16656 * the generated methods compute their results based on field values rather 16657 * than object identity. (Implementations should not assume that hashcodes 16658 * will be consistent across runtimes or versions of the protocol compiler.) 16659 * </pre> 16660 */ 16661 @Override 16662 public boolean hasJavaGenerateEqualsAndHash() { 21422 * <pre> 21423 * This option does nothing. 21424 * </pre> 21425 * 21426 * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> 21427 */ 21428 @java.lang.Deprecated public boolean hasJavaGenerateEqualsAndHash() { 16663 21429 return ((bitField0_ & 0x00000008) == 0x00000008); 16664 21430 } 16665 21431 /** 16666 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 16667 * 16668 * <pre> 16669 * If set true, then the Java code generator will generate equals() and 16670 * hashCode() methods for all messages defined in the .proto file. 16671 * - In the full runtime, this is purely a speed optimization, as the 16672 * AbstractMessage base class includes reflection-based implementations of 16673 * these methods. 16674 *- In the lite runtime, setting this option changes the semantics of 16675 * equals() and hashCode() to more closely match those of the full runtime; 16676 * the generated methods compute their results based on field values rather 16677 * than object identity. (Implementations should not assume that hashcodes 16678 * will be consistent across runtimes or versions of the protocol compiler.) 16679 * </pre> 16680 */ 16681 @Override 16682 public boolean getJavaGenerateEqualsAndHash() { 21432 * <pre> 21433 * This option does nothing. 21434 * </pre> 21435 * 21436 * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> 21437 */ 21438 @java.lang.Deprecated public boolean getJavaGenerateEqualsAndHash() { 16683 21439 return javaGenerateEqualsAndHash_; 16684 21440 } 16685 21441 /** 16686 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 16687 * 16688 * <pre> 16689 * If set true, then the Java code generator will generate equals() and 16690 * hashCode() methods for all messages defined in the .proto file. 16691 * - In the full runtime, this is purely a speed optimization, as the 16692 * AbstractMessage base class includes reflection-based implementations of 16693 * these methods. 16694 *- In the lite runtime, setting this option changes the semantics of 16695 * equals() and hashCode() to more closely match those of the full runtime; 16696 * the generated methods compute their results based on field values rather 16697 * than object identity. (Implementations should not assume that hashcodes 16698 * will be consistent across runtimes or versions of the protocol compiler.) 16699 * </pre> 16700 */ 16701 public Builder setJavaGenerateEqualsAndHash(boolean value) { 21442 * <pre> 21443 * This option does nothing. 21444 * </pre> 21445 * 21446 * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> 21447 */ 21448 @java.lang.Deprecated public Builder setJavaGenerateEqualsAndHash(boolean value) { 16702 21449 bitField0_ |= 0x00000008; 16703 21450 javaGenerateEqualsAndHash_ = value; … … 16706 21453 } 16707 21454 /** 16708 * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> 16709 * 16710 * <pre> 16711 * If set true, then the Java code generator will generate equals() and 16712 * hashCode() methods for all messages defined in the .proto file. 16713 * - In the full runtime, this is purely a speed optimization, as the 16714 * AbstractMessage base class includes reflection-based implementations of 16715 * these methods. 16716 *- In the lite runtime, setting this option changes the semantics of 16717 * equals() and hashCode() to more closely match those of the full runtime; 16718 * the generated methods compute their results based on field values rather 16719 * than object identity. (Implementations should not assume that hashcodes 16720 * will be consistent across runtimes or versions of the protocol compiler.) 16721 * </pre> 16722 */ 16723 public Builder clearJavaGenerateEqualsAndHash() { 21455 * <pre> 21456 * This option does nothing. 21457 * </pre> 21458 * 21459 * <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code> 21460 */ 21461 @java.lang.Deprecated public Builder clearJavaGenerateEqualsAndHash() { 16724 21462 bitField0_ = (bitField0_ & ~0x00000008); 16725 21463 javaGenerateEqualsAndHash_ = false; … … 16730 21468 private boolean javaStringCheckUtf8_ ; 16731 21469 /** 16732 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code>16733 *16734 21470 * <pre> 16735 21471 * If set true, then the Java2 code generator will generate code that … … 16740 21476 * This option has no effect on when used with the lite runtime. 16741 21477 * </pre> 16742 */ 16743 @Override 16744 public boolean hasJavaStringCheckUtf8() { 21478 * 21479 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> 21480 */ 21481 public boolean hasJavaStringCheckUtf8() { 16745 21482 return ((bitField0_ & 0x00000010) == 0x00000010); 16746 21483 } 16747 21484 /** 16748 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code>16749 *16750 21485 * <pre> 16751 21486 * If set true, then the Java2 code generator will generate code that … … 16756 21491 * This option has no effect on when used with the lite runtime. 16757 21492 * </pre> 16758 */ 16759 @Override 16760 public boolean getJavaStringCheckUtf8() { 21493 * 21494 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> 21495 */ 21496 public boolean getJavaStringCheckUtf8() { 16761 21497 return javaStringCheckUtf8_; 16762 21498 } 16763 21499 /** 16764 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code>16765 *16766 21500 * <pre> 16767 21501 * If set true, then the Java2 code generator will generate code that … … 16772 21506 * This option has no effect on when used with the lite runtime. 16773 21507 * </pre> 21508 * 21509 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> 16774 21510 */ 16775 21511 public Builder setJavaStringCheckUtf8(boolean value) { … … 16780 21516 } 16781 21517 /** 16782 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code>16783 *16784 21518 * <pre> 16785 21519 * If set true, then the Java2 code generator will generate code that … … 16790 21524 * This option has no effect on when used with the lite runtime. 16791 21525 * </pre> 21526 * 21527 * <code>optional bool java_string_check_utf8 = 27 [default = false];</code> 16792 21528 */ 16793 21529 public Builder clearJavaStringCheckUtf8() { … … 16798 21534 } 16799 21535 16800 private com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED;21536 private int optimizeFor_ = 1; 16801 21537 /** 16802 21538 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 16803 21539 */ 16804 @Override 16805 public boolean hasOptimizeFor() { 21540 public boolean hasOptimizeFor() { 16806 21541 return ((bitField0_ & 0x00000020) == 0x00000020); 16807 21542 } … … 16809 21544 * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> 16810 21545 */ 16811 @Override16812 public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { 16813 return optimizeFor_;21546 public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { 21547 com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode result = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.valueOf(optimizeFor_); 21548 return result == null ? com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED : result; 16814 21549 } 16815 21550 /** … … 16821 21556 } 16822 21557 bitField0_ |= 0x00000020; 16823 optimizeFor_ = value ;21558 optimizeFor_ = value.getNumber(); 16824 21559 onChanged(); 16825 21560 return this; … … 16830 21565 public Builder clearOptimizeFor() { 16831 21566 bitField0_ = (bitField0_ & ~0x00000020); 16832 optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED;21567 optimizeFor_ = 1; 16833 21568 onChanged(); 16834 21569 return this; … … 16837 21572 private java.lang.Object goPackage_ = ""; 16838 21573 /** 21574 * <pre> 21575 * Sets the Go package where structs generated from this .proto will be 21576 * placed. If omitted, the Go package will be derived from the following: 21577 * - The basename of the package import path, if provided. 21578 * - Otherwise, the package statement in the .proto file, if present. 21579 * - Otherwise, the basename of the .proto file, without extension. 21580 * </pre> 21581 * 16839 21582 * <code>optional string go_package = 11;</code> 16840 * 21583 */ 21584 public boolean hasGoPackage() { 21585 return ((bitField0_ & 0x00000040) == 0x00000040); 21586 } 21587 /** 16841 21588 * <pre> 16842 21589 * Sets the Go package where structs generated from this .proto will be 16843 * placed. There is no default. 16844 * </pre> 16845 */ 16846 @Override 16847 public boolean hasGoPackage() { 16848 return ((bitField0_ & 0x00000040) == 0x00000040); 16849 } 16850 /** 21590 * placed. If omitted, the Go package will be derived from the following: 21591 * - The basename of the package import path, if provided. 21592 * - Otherwise, the package statement in the .proto file, if present. 21593 * - Otherwise, the basename of the .proto file, without extension. 21594 * </pre> 21595 * 16851 21596 * <code>optional string go_package = 11;</code> 16852 * 16853 * <pre> 16854 * Sets the Go package where structs generated from this .proto will be 16855 * placed. There is no default. 16856 * </pre> 16857 */ 16858 @Override 16859 public java.lang.String getGoPackage() { 21597 */ 21598 public java.lang.String getGoPackage() { 16860 21599 java.lang.Object ref = goPackage_; 16861 21600 if (!(ref instanceof java.lang.String)) { … … 16872 21611 } 16873 21612 /** 21613 * <pre> 21614 * Sets the Go package where structs generated from this .proto will be 21615 * placed. If omitted, the Go package will be derived from the following: 21616 * - The basename of the package import path, if provided. 21617 * - Otherwise, the package statement in the .proto file, if present. 21618 * - Otherwise, the basename of the .proto file, without extension. 21619 * </pre> 21620 * 16874 21621 * <code>optional string go_package = 11;</code> 16875 * 16876 * <pre> 16877 * Sets the Go package where structs generated from this .proto will be 16878 * placed. There is no default. 16879 * </pre> 16880 */ 16881 @Override 16882 public com.google.protobuf.ByteString 21622 */ 21623 public com.google.protobuf.ByteString 16883 21624 getGoPackageBytes() { 16884 21625 java.lang.Object ref = goPackage_; 16885 21626 if (ref instanceof String) { 16886 com.google.protobuf.ByteString b = 21627 com.google.protobuf.ByteString b = 16887 21628 com.google.protobuf.ByteString.copyFromUtf8( 16888 21629 (java.lang.String) ref); … … 16894 21635 } 16895 21636 /** 21637 * <pre> 21638 * Sets the Go package where structs generated from this .proto will be 21639 * placed. If omitted, the Go package will be derived from the following: 21640 * - The basename of the package import path, if provided. 21641 * - Otherwise, the package statement in the .proto file, if present. 21642 * - Otherwise, the basename of the .proto file, without extension. 21643 * </pre> 21644 * 16896 21645 * <code>optional string go_package = 11;</code> 16897 *16898 * <pre>16899 * Sets the Go package where structs generated from this .proto will be16900 * placed. There is no default.16901 * </pre>16902 21646 */ 16903 21647 public Builder setGoPackage( … … 16912 21656 } 16913 21657 /** 21658 * <pre> 21659 * Sets the Go package where structs generated from this .proto will be 21660 * placed. If omitted, the Go package will be derived from the following: 21661 * - The basename of the package import path, if provided. 21662 * - Otherwise, the package statement in the .proto file, if present. 21663 * - Otherwise, the basename of the .proto file, without extension. 21664 * </pre> 21665 * 16914 21666 * <code>optional string go_package = 11;</code> 16915 *16916 * <pre>16917 * Sets the Go package where structs generated from this .proto will be16918 * placed. There is no default.16919 * </pre>16920 21667 */ 16921 21668 public Builder clearGoPackage() { … … 16926 21673 } 16927 21674 /** 21675 * <pre> 21676 * Sets the Go package where structs generated from this .proto will be 21677 * placed. If omitted, the Go package will be derived from the following: 21678 * - The basename of the package import path, if provided. 21679 * - Otherwise, the package statement in the .proto file, if present. 21680 * - Otherwise, the basename of the .proto file, without extension. 21681 * </pre> 21682 * 16928 21683 * <code>optional string go_package = 11;</code> 16929 *16930 * <pre>16931 * Sets the Go package where structs generated from this .proto will be16932 * placed. There is no default.16933 * </pre>16934 21684 */ 16935 21685 public Builder setGoPackageBytes( … … 16946 21696 private boolean ccGenericServices_ ; 16947 21697 /** 16948 * <code>optional bool cc_generic_services = 16 [default = false];</code>16949 *16950 21698 * <pre> 16951 21699 * Should generic services be generated in each language? "Generic" services … … 16953 21701 * main code generators in each language (without additional plugins). 16954 21702 * Generic services were the only kind of service generation supported by 16955 * early versions of proto2.21703 * early versions of google.protobuf. 16956 21704 * Generic services are now considered deprecated in favor of using plugins 16957 21705 * that generate code specific to your particular RPC system. Therefore, … … 16959 21707 * explicitly set them to true. 16960 21708 * </pre> 16961 */ 16962 @Override 16963 public boolean hasCcGenericServices() { 21709 * 21710 * <code>optional bool cc_generic_services = 16 [default = false];</code> 21711 */ 21712 public boolean hasCcGenericServices() { 16964 21713 return ((bitField0_ & 0x00000080) == 0x00000080); 16965 21714 } 16966 21715 /** 16967 * <code>optional bool cc_generic_services = 16 [default = false];</code>16968 *16969 21716 * <pre> 16970 21717 * Should generic services be generated in each language? "Generic" services … … 16972 21719 * main code generators in each language (without additional plugins). 16973 21720 * Generic services were the only kind of service generation supported by 16974 * early versions of proto2.21721 * early versions of google.protobuf. 16975 21722 * Generic services are now considered deprecated in favor of using plugins 16976 21723 * that generate code specific to your particular RPC system. Therefore, … … 16978 21725 * explicitly set them to true. 16979 21726 * </pre> 16980 */ 16981 @Override 16982 public boolean getCcGenericServices() { 21727 * 21728 * <code>optional bool cc_generic_services = 16 [default = false];</code> 21729 */ 21730 public boolean getCcGenericServices() { 16983 21731 return ccGenericServices_; 16984 21732 } 16985 21733 /** 16986 * <code>optional bool cc_generic_services = 16 [default = false];</code>16987 *16988 21734 * <pre> 16989 21735 * Should generic services be generated in each language? "Generic" services … … 16991 21737 * main code generators in each language (without additional plugins). 16992 21738 * Generic services were the only kind of service generation supported by 16993 * early versions of proto2.21739 * early versions of google.protobuf. 16994 21740 * Generic services are now considered deprecated in favor of using plugins 16995 21741 * that generate code specific to your particular RPC system. Therefore, … … 16997 21743 * explicitly set them to true. 16998 21744 * </pre> 21745 * 21746 * <code>optional bool cc_generic_services = 16 [default = false];</code> 16999 21747 */ 17000 21748 public Builder setCcGenericServices(boolean value) { … … 17005 21753 } 17006 21754 /** 17007 * <code>optional bool cc_generic_services = 16 [default = false];</code>17008 *17009 21755 * <pre> 17010 21756 * Should generic services be generated in each language? "Generic" services … … 17012 21758 * main code generators in each language (without additional plugins). 17013 21759 * Generic services were the only kind of service generation supported by 17014 * early versions of proto2.21760 * early versions of google.protobuf. 17015 21761 * Generic services are now considered deprecated in favor of using plugins 17016 21762 * that generate code specific to your particular RPC system. Therefore, … … 17018 21764 * explicitly set them to true. 17019 21765 * </pre> 21766 * 21767 * <code>optional bool cc_generic_services = 16 [default = false];</code> 17020 21768 */ 17021 21769 public Builder clearCcGenericServices() { … … 17030 21778 * <code>optional bool java_generic_services = 17 [default = false];</code> 17031 21779 */ 17032 @Override 17033 public boolean hasJavaGenericServices() { 21780 public boolean hasJavaGenericServices() { 17034 21781 return ((bitField0_ & 0x00000100) == 0x00000100); 17035 21782 } … … 17037 21784 * <code>optional bool java_generic_services = 17 [default = false];</code> 17038 21785 */ 17039 @Override 17040 public boolean getJavaGenericServices() { 21786 public boolean getJavaGenericServices() { 17041 21787 return javaGenericServices_; 17042 21788 } … … 17064 21810 * <code>optional bool py_generic_services = 18 [default = false];</code> 17065 21811 */ 17066 @Override 17067 public boolean hasPyGenericServices() { 21812 public boolean hasPyGenericServices() { 17068 21813 return ((bitField0_ & 0x00000200) == 0x00000200); 17069 21814 } … … 17071 21816 * <code>optional bool py_generic_services = 18 [default = false];</code> 17072 21817 */ 17073 @Override 17074 public boolean getPyGenericServices() { 21818 public boolean getPyGenericServices() { 17075 21819 return pyGenericServices_; 17076 21820 } … … 17094 21838 } 17095 21839 21840 private boolean phpGenericServices_ ; 21841 /** 21842 * <code>optional bool php_generic_services = 42 [default = false];</code> 21843 */ 21844 public boolean hasPhpGenericServices() { 21845 return ((bitField0_ & 0x00000400) == 0x00000400); 21846 } 21847 /** 21848 * <code>optional bool php_generic_services = 42 [default = false];</code> 21849 */ 21850 public boolean getPhpGenericServices() { 21851 return phpGenericServices_; 21852 } 21853 /** 21854 * <code>optional bool php_generic_services = 42 [default = false];</code> 21855 */ 21856 public Builder setPhpGenericServices(boolean value) { 21857 bitField0_ |= 0x00000400; 21858 phpGenericServices_ = value; 21859 onChanged(); 21860 return this; 21861 } 21862 /** 21863 * <code>optional bool php_generic_services = 42 [default = false];</code> 21864 */ 21865 public Builder clearPhpGenericServices() { 21866 bitField0_ = (bitField0_ & ~0x00000400); 21867 phpGenericServices_ = false; 21868 onChanged(); 21869 return this; 21870 } 21871 17096 21872 private boolean deprecated_ ; 17097 21873 /** 17098 * <code>optional bool deprecated = 23 [default = false];</code>17099 *17100 21874 * <pre> 17101 21875 * Is this file deprecated? … … 17104 21878 * least, this is a formalization for deprecating files. 17105 21879 * </pre> 17106 */ 17107 @Override 17108 public boolean hasDeprecated() { 17109 return ((bitField0_ & 0x00000400) == 0x00000400); 17110 } 17111 /** 21880 * 17112 21881 * <code>optional bool deprecated = 23 [default = false];</code> 17113 * 21882 */ 21883 public boolean hasDeprecated() { 21884 return ((bitField0_ & 0x00000800) == 0x00000800); 21885 } 21886 /** 17114 21887 * <pre> 17115 21888 * Is this file deprecated? … … 17118 21891 * least, this is a formalization for deprecating files. 17119 21892 * </pre> 17120 */ 17121 @Override 17122 public boolean getDeprecated() { 21893 * 21894 * <code>optional bool deprecated = 23 [default = false];</code> 21895 */ 21896 public boolean getDeprecated() { 17123 21897 return deprecated_; 17124 21898 } 17125 21899 /** 17126 * <code>optional bool deprecated = 23 [default = false];</code>17127 *17128 21900 * <pre> 17129 21901 * Is this file deprecated? … … 17132 21904 * least, this is a formalization for deprecating files. 17133 21905 * </pre> 21906 * 21907 * <code>optional bool deprecated = 23 [default = false];</code> 17134 21908 */ 17135 21909 public Builder setDeprecated(boolean value) { 17136 bitField0_ |= 0x00000 400;21910 bitField0_ |= 0x00000800; 17137 21911 deprecated_ = value; 17138 21912 onChanged(); … … 17140 21914 } 17141 21915 /** 17142 * <code>optional bool deprecated = 23 [default = false];</code>17143 *17144 21916 * <pre> 17145 21917 * Is this file deprecated? … … 17148 21920 * least, this is a formalization for deprecating files. 17149 21921 * </pre> 21922 * 21923 * <code>optional bool deprecated = 23 [default = false];</code> 17150 21924 */ 17151 21925 public Builder clearDeprecated() { 17152 bitField0_ = (bitField0_ & ~0x00000 400);21926 bitField0_ = (bitField0_ & ~0x00000800); 17153 21927 deprecated_ = false; 21928 onChanged(); 21929 return this; 21930 } 21931 21932 private boolean ccEnableArenas_ ; 21933 /** 21934 * <pre> 21935 * Enables the use of arenas for the proto messages in this file. This applies 21936 * only to generated classes for C++. 21937 * </pre> 21938 * 21939 * <code>optional bool cc_enable_arenas = 31 [default = false];</code> 21940 */ 21941 public boolean hasCcEnableArenas() { 21942 return ((bitField0_ & 0x00001000) == 0x00001000); 21943 } 21944 /** 21945 * <pre> 21946 * Enables the use of arenas for the proto messages in this file. This applies 21947 * only to generated classes for C++. 21948 * </pre> 21949 * 21950 * <code>optional bool cc_enable_arenas = 31 [default = false];</code> 21951 */ 21952 public boolean getCcEnableArenas() { 21953 return ccEnableArenas_; 21954 } 21955 /** 21956 * <pre> 21957 * Enables the use of arenas for the proto messages in this file. This applies 21958 * only to generated classes for C++. 21959 * </pre> 21960 * 21961 * <code>optional bool cc_enable_arenas = 31 [default = false];</code> 21962 */ 21963 public Builder setCcEnableArenas(boolean value) { 21964 bitField0_ |= 0x00001000; 21965 ccEnableArenas_ = value; 21966 onChanged(); 21967 return this; 21968 } 21969 /** 21970 * <pre> 21971 * Enables the use of arenas for the proto messages in this file. This applies 21972 * only to generated classes for C++. 21973 * </pre> 21974 * 21975 * <code>optional bool cc_enable_arenas = 31 [default = false];</code> 21976 */ 21977 public Builder clearCcEnableArenas() { 21978 bitField0_ = (bitField0_ & ~0x00001000); 21979 ccEnableArenas_ = false; 21980 onChanged(); 21981 return this; 21982 } 21983 21984 private java.lang.Object objcClassPrefix_ = ""; 21985 /** 21986 * <pre> 21987 * Sets the objective c class prefix which is prepended to all objective c 21988 * generated classes from this .proto. There is no default. 21989 * </pre> 21990 * 21991 * <code>optional string objc_class_prefix = 36;</code> 21992 */ 21993 public boolean hasObjcClassPrefix() { 21994 return ((bitField0_ & 0x00002000) == 0x00002000); 21995 } 21996 /** 21997 * <pre> 21998 * Sets the objective c class prefix which is prepended to all objective c 21999 * generated classes from this .proto. There is no default. 22000 * </pre> 22001 * 22002 * <code>optional string objc_class_prefix = 36;</code> 22003 */ 22004 public java.lang.String getObjcClassPrefix() { 22005 java.lang.Object ref = objcClassPrefix_; 22006 if (!(ref instanceof java.lang.String)) { 22007 com.google.protobuf.ByteString bs = 22008 (com.google.protobuf.ByteString) ref; 22009 java.lang.String s = bs.toStringUtf8(); 22010 if (bs.isValidUtf8()) { 22011 objcClassPrefix_ = s; 22012 } 22013 return s; 22014 } else { 22015 return (java.lang.String) ref; 22016 } 22017 } 22018 /** 22019 * <pre> 22020 * Sets the objective c class prefix which is prepended to all objective c 22021 * generated classes from this .proto. There is no default. 22022 * </pre> 22023 * 22024 * <code>optional string objc_class_prefix = 36;</code> 22025 */ 22026 public com.google.protobuf.ByteString 22027 getObjcClassPrefixBytes() { 22028 java.lang.Object ref = objcClassPrefix_; 22029 if (ref instanceof String) { 22030 com.google.protobuf.ByteString b = 22031 com.google.protobuf.ByteString.copyFromUtf8( 22032 (java.lang.String) ref); 22033 objcClassPrefix_ = b; 22034 return b; 22035 } else { 22036 return (com.google.protobuf.ByteString) ref; 22037 } 22038 } 22039 /** 22040 * <pre> 22041 * Sets the objective c class prefix which is prepended to all objective c 22042 * generated classes from this .proto. There is no default. 22043 * </pre> 22044 * 22045 * <code>optional string objc_class_prefix = 36;</code> 22046 */ 22047 public Builder setObjcClassPrefix( 22048 java.lang.String value) { 22049 if (value == null) { 22050 throw new NullPointerException(); 22051 } 22052 bitField0_ |= 0x00002000; 22053 objcClassPrefix_ = value; 22054 onChanged(); 22055 return this; 22056 } 22057 /** 22058 * <pre> 22059 * Sets the objective c class prefix which is prepended to all objective c 22060 * generated classes from this .proto. There is no default. 22061 * </pre> 22062 * 22063 * <code>optional string objc_class_prefix = 36;</code> 22064 */ 22065 public Builder clearObjcClassPrefix() { 22066 bitField0_ = (bitField0_ & ~0x00002000); 22067 objcClassPrefix_ = getDefaultInstance().getObjcClassPrefix(); 22068 onChanged(); 22069 return this; 22070 } 22071 /** 22072 * <pre> 22073 * Sets the objective c class prefix which is prepended to all objective c 22074 * generated classes from this .proto. There is no default. 22075 * </pre> 22076 * 22077 * <code>optional string objc_class_prefix = 36;</code> 22078 */ 22079 public Builder setObjcClassPrefixBytes( 22080 com.google.protobuf.ByteString value) { 22081 if (value == null) { 22082 throw new NullPointerException(); 22083 } 22084 bitField0_ |= 0x00002000; 22085 objcClassPrefix_ = value; 22086 onChanged(); 22087 return this; 22088 } 22089 22090 private java.lang.Object csharpNamespace_ = ""; 22091 /** 22092 * <pre> 22093 * Namespace for generated classes; defaults to the package. 22094 * </pre> 22095 * 22096 * <code>optional string csharp_namespace = 37;</code> 22097 */ 22098 public boolean hasCsharpNamespace() { 22099 return ((bitField0_ & 0x00004000) == 0x00004000); 22100 } 22101 /** 22102 * <pre> 22103 * Namespace for generated classes; defaults to the package. 22104 * </pre> 22105 * 22106 * <code>optional string csharp_namespace = 37;</code> 22107 */ 22108 public java.lang.String getCsharpNamespace() { 22109 java.lang.Object ref = csharpNamespace_; 22110 if (!(ref instanceof java.lang.String)) { 22111 com.google.protobuf.ByteString bs = 22112 (com.google.protobuf.ByteString) ref; 22113 java.lang.String s = bs.toStringUtf8(); 22114 if (bs.isValidUtf8()) { 22115 csharpNamespace_ = s; 22116 } 22117 return s; 22118 } else { 22119 return (java.lang.String) ref; 22120 } 22121 } 22122 /** 22123 * <pre> 22124 * Namespace for generated classes; defaults to the package. 22125 * </pre> 22126 * 22127 * <code>optional string csharp_namespace = 37;</code> 22128 */ 22129 public com.google.protobuf.ByteString 22130 getCsharpNamespaceBytes() { 22131 java.lang.Object ref = csharpNamespace_; 22132 if (ref instanceof String) { 22133 com.google.protobuf.ByteString b = 22134 com.google.protobuf.ByteString.copyFromUtf8( 22135 (java.lang.String) ref); 22136 csharpNamespace_ = b; 22137 return b; 22138 } else { 22139 return (com.google.protobuf.ByteString) ref; 22140 } 22141 } 22142 /** 22143 * <pre> 22144 * Namespace for generated classes; defaults to the package. 22145 * </pre> 22146 * 22147 * <code>optional string csharp_namespace = 37;</code> 22148 */ 22149 public Builder setCsharpNamespace( 22150 java.lang.String value) { 22151 if (value == null) { 22152 throw new NullPointerException(); 22153 } 22154 bitField0_ |= 0x00004000; 22155 csharpNamespace_ = value; 22156 onChanged(); 22157 return this; 22158 } 22159 /** 22160 * <pre> 22161 * Namespace for generated classes; defaults to the package. 22162 * </pre> 22163 * 22164 * <code>optional string csharp_namespace = 37;</code> 22165 */ 22166 public Builder clearCsharpNamespace() { 22167 bitField0_ = (bitField0_ & ~0x00004000); 22168 csharpNamespace_ = getDefaultInstance().getCsharpNamespace(); 22169 onChanged(); 22170 return this; 22171 } 22172 /** 22173 * <pre> 22174 * Namespace for generated classes; defaults to the package. 22175 * </pre> 22176 * 22177 * <code>optional string csharp_namespace = 37;</code> 22178 */ 22179 public Builder setCsharpNamespaceBytes( 22180 com.google.protobuf.ByteString value) { 22181 if (value == null) { 22182 throw new NullPointerException(); 22183 } 22184 bitField0_ |= 0x00004000; 22185 csharpNamespace_ = value; 22186 onChanged(); 22187 return this; 22188 } 22189 22190 private java.lang.Object swiftPrefix_ = ""; 22191 /** 22192 * <pre> 22193 * By default Swift generators will take the proto package and CamelCase it 22194 * replacing '.' with underscore and use that to prefix the types/symbols 22195 * defined. When this options is provided, they will use this value instead 22196 * to prefix the types/symbols defined. 22197 * </pre> 22198 * 22199 * <code>optional string swift_prefix = 39;</code> 22200 */ 22201 public boolean hasSwiftPrefix() { 22202 return ((bitField0_ & 0x00008000) == 0x00008000); 22203 } 22204 /** 22205 * <pre> 22206 * By default Swift generators will take the proto package and CamelCase it 22207 * replacing '.' with underscore and use that to prefix the types/symbols 22208 * defined. When this options is provided, they will use this value instead 22209 * to prefix the types/symbols defined. 22210 * </pre> 22211 * 22212 * <code>optional string swift_prefix = 39;</code> 22213 */ 22214 public java.lang.String getSwiftPrefix() { 22215 java.lang.Object ref = swiftPrefix_; 22216 if (!(ref instanceof java.lang.String)) { 22217 com.google.protobuf.ByteString bs = 22218 (com.google.protobuf.ByteString) ref; 22219 java.lang.String s = bs.toStringUtf8(); 22220 if (bs.isValidUtf8()) { 22221 swiftPrefix_ = s; 22222 } 22223 return s; 22224 } else { 22225 return (java.lang.String) ref; 22226 } 22227 } 22228 /** 22229 * <pre> 22230 * By default Swift generators will take the proto package and CamelCase it 22231 * replacing '.' with underscore and use that to prefix the types/symbols 22232 * defined. When this options is provided, they will use this value instead 22233 * to prefix the types/symbols defined. 22234 * </pre> 22235 * 22236 * <code>optional string swift_prefix = 39;</code> 22237 */ 22238 public com.google.protobuf.ByteString 22239 getSwiftPrefixBytes() { 22240 java.lang.Object ref = swiftPrefix_; 22241 if (ref instanceof String) { 22242 com.google.protobuf.ByteString b = 22243 com.google.protobuf.ByteString.copyFromUtf8( 22244 (java.lang.String) ref); 22245 swiftPrefix_ = b; 22246 return b; 22247 } else { 22248 return (com.google.protobuf.ByteString) ref; 22249 } 22250 } 22251 /** 22252 * <pre> 22253 * By default Swift generators will take the proto package and CamelCase it 22254 * replacing '.' with underscore and use that to prefix the types/symbols 22255 * defined. When this options is provided, they will use this value instead 22256 * to prefix the types/symbols defined. 22257 * </pre> 22258 * 22259 * <code>optional string swift_prefix = 39;</code> 22260 */ 22261 public Builder setSwiftPrefix( 22262 java.lang.String value) { 22263 if (value == null) { 22264 throw new NullPointerException(); 22265 } 22266 bitField0_ |= 0x00008000; 22267 swiftPrefix_ = value; 22268 onChanged(); 22269 return this; 22270 } 22271 /** 22272 * <pre> 22273 * By default Swift generators will take the proto package and CamelCase it 22274 * replacing '.' with underscore and use that to prefix the types/symbols 22275 * defined. When this options is provided, they will use this value instead 22276 * to prefix the types/symbols defined. 22277 * </pre> 22278 * 22279 * <code>optional string swift_prefix = 39;</code> 22280 */ 22281 public Builder clearSwiftPrefix() { 22282 bitField0_ = (bitField0_ & ~0x00008000); 22283 swiftPrefix_ = getDefaultInstance().getSwiftPrefix(); 22284 onChanged(); 22285 return this; 22286 } 22287 /** 22288 * <pre> 22289 * By default Swift generators will take the proto package and CamelCase it 22290 * replacing '.' with underscore and use that to prefix the types/symbols 22291 * defined. When this options is provided, they will use this value instead 22292 * to prefix the types/symbols defined. 22293 * </pre> 22294 * 22295 * <code>optional string swift_prefix = 39;</code> 22296 */ 22297 public Builder setSwiftPrefixBytes( 22298 com.google.protobuf.ByteString value) { 22299 if (value == null) { 22300 throw new NullPointerException(); 22301 } 22302 bitField0_ |= 0x00008000; 22303 swiftPrefix_ = value; 22304 onChanged(); 22305 return this; 22306 } 22307 22308 private java.lang.Object phpClassPrefix_ = ""; 22309 /** 22310 * <pre> 22311 * Sets the php class prefix which is prepended to all php generated classes 22312 * from this .proto. Default is empty. 22313 * </pre> 22314 * 22315 * <code>optional string php_class_prefix = 40;</code> 22316 */ 22317 public boolean hasPhpClassPrefix() { 22318 return ((bitField0_ & 0x00010000) == 0x00010000); 22319 } 22320 /** 22321 * <pre> 22322 * Sets the php class prefix which is prepended to all php generated classes 22323 * from this .proto. Default is empty. 22324 * </pre> 22325 * 22326 * <code>optional string php_class_prefix = 40;</code> 22327 */ 22328 public java.lang.String getPhpClassPrefix() { 22329 java.lang.Object ref = phpClassPrefix_; 22330 if (!(ref instanceof java.lang.String)) { 22331 com.google.protobuf.ByteString bs = 22332 (com.google.protobuf.ByteString) ref; 22333 java.lang.String s = bs.toStringUtf8(); 22334 if (bs.isValidUtf8()) { 22335 phpClassPrefix_ = s; 22336 } 22337 return s; 22338 } else { 22339 return (java.lang.String) ref; 22340 } 22341 } 22342 /** 22343 * <pre> 22344 * Sets the php class prefix which is prepended to all php generated classes 22345 * from this .proto. Default is empty. 22346 * </pre> 22347 * 22348 * <code>optional string php_class_prefix = 40;</code> 22349 */ 22350 public com.google.protobuf.ByteString 22351 getPhpClassPrefixBytes() { 22352 java.lang.Object ref = phpClassPrefix_; 22353 if (ref instanceof String) { 22354 com.google.protobuf.ByteString b = 22355 com.google.protobuf.ByteString.copyFromUtf8( 22356 (java.lang.String) ref); 22357 phpClassPrefix_ = b; 22358 return b; 22359 } else { 22360 return (com.google.protobuf.ByteString) ref; 22361 } 22362 } 22363 /** 22364 * <pre> 22365 * Sets the php class prefix which is prepended to all php generated classes 22366 * from this .proto. Default is empty. 22367 * </pre> 22368 * 22369 * <code>optional string php_class_prefix = 40;</code> 22370 */ 22371 public Builder setPhpClassPrefix( 22372 java.lang.String value) { 22373 if (value == null) { 22374 throw new NullPointerException(); 22375 } 22376 bitField0_ |= 0x00010000; 22377 phpClassPrefix_ = value; 22378 onChanged(); 22379 return this; 22380 } 22381 /** 22382 * <pre> 22383 * Sets the php class prefix which is prepended to all php generated classes 22384 * from this .proto. Default is empty. 22385 * </pre> 22386 * 22387 * <code>optional string php_class_prefix = 40;</code> 22388 */ 22389 public Builder clearPhpClassPrefix() { 22390 bitField0_ = (bitField0_ & ~0x00010000); 22391 phpClassPrefix_ = getDefaultInstance().getPhpClassPrefix(); 22392 onChanged(); 22393 return this; 22394 } 22395 /** 22396 * <pre> 22397 * Sets the php class prefix which is prepended to all php generated classes 22398 * from this .proto. Default is empty. 22399 * </pre> 22400 * 22401 * <code>optional string php_class_prefix = 40;</code> 22402 */ 22403 public Builder setPhpClassPrefixBytes( 22404 com.google.protobuf.ByteString value) { 22405 if (value == null) { 22406 throw new NullPointerException(); 22407 } 22408 bitField0_ |= 0x00010000; 22409 phpClassPrefix_ = value; 22410 onChanged(); 22411 return this; 22412 } 22413 22414 private java.lang.Object phpNamespace_ = ""; 22415 /** 22416 * <pre> 22417 * Use this option to change the namespace of php generated classes. Default 22418 * is empty. When this option is empty, the package name will be used for 22419 * determining the namespace. 22420 * </pre> 22421 * 22422 * <code>optional string php_namespace = 41;</code> 22423 */ 22424 public boolean hasPhpNamespace() { 22425 return ((bitField0_ & 0x00020000) == 0x00020000); 22426 } 22427 /** 22428 * <pre> 22429 * Use this option to change the namespace of php generated classes. Default 22430 * is empty. When this option is empty, the package name will be used for 22431 * determining the namespace. 22432 * </pre> 22433 * 22434 * <code>optional string php_namespace = 41;</code> 22435 */ 22436 public java.lang.String getPhpNamespace() { 22437 java.lang.Object ref = phpNamespace_; 22438 if (!(ref instanceof java.lang.String)) { 22439 com.google.protobuf.ByteString bs = 22440 (com.google.protobuf.ByteString) ref; 22441 java.lang.String s = bs.toStringUtf8(); 22442 if (bs.isValidUtf8()) { 22443 phpNamespace_ = s; 22444 } 22445 return s; 22446 } else { 22447 return (java.lang.String) ref; 22448 } 22449 } 22450 /** 22451 * <pre> 22452 * Use this option to change the namespace of php generated classes. Default 22453 * is empty. When this option is empty, the package name will be used for 22454 * determining the namespace. 22455 * </pre> 22456 * 22457 * <code>optional string php_namespace = 41;</code> 22458 */ 22459 public com.google.protobuf.ByteString 22460 getPhpNamespaceBytes() { 22461 java.lang.Object ref = phpNamespace_; 22462 if (ref instanceof String) { 22463 com.google.protobuf.ByteString b = 22464 com.google.protobuf.ByteString.copyFromUtf8( 22465 (java.lang.String) ref); 22466 phpNamespace_ = b; 22467 return b; 22468 } else { 22469 return (com.google.protobuf.ByteString) ref; 22470 } 22471 } 22472 /** 22473 * <pre> 22474 * Use this option to change the namespace of php generated classes. Default 22475 * is empty. When this option is empty, the package name will be used for 22476 * determining the namespace. 22477 * </pre> 22478 * 22479 * <code>optional string php_namespace = 41;</code> 22480 */ 22481 public Builder setPhpNamespace( 22482 java.lang.String value) { 22483 if (value == null) { 22484 throw new NullPointerException(); 22485 } 22486 bitField0_ |= 0x00020000; 22487 phpNamespace_ = value; 22488 onChanged(); 22489 return this; 22490 } 22491 /** 22492 * <pre> 22493 * Use this option to change the namespace of php generated classes. Default 22494 * is empty. When this option is empty, the package name will be used for 22495 * determining the namespace. 22496 * </pre> 22497 * 22498 * <code>optional string php_namespace = 41;</code> 22499 */ 22500 public Builder clearPhpNamespace() { 22501 bitField0_ = (bitField0_ & ~0x00020000); 22502 phpNamespace_ = getDefaultInstance().getPhpNamespace(); 22503 onChanged(); 22504 return this; 22505 } 22506 /** 22507 * <pre> 22508 * Use this option to change the namespace of php generated classes. Default 22509 * is empty. When this option is empty, the package name will be used for 22510 * determining the namespace. 22511 * </pre> 22512 * 22513 * <code>optional string php_namespace = 41;</code> 22514 */ 22515 public Builder setPhpNamespaceBytes( 22516 com.google.protobuf.ByteString value) { 22517 if (value == null) { 22518 throw new NullPointerException(); 22519 } 22520 bitField0_ |= 0x00020000; 22521 phpNamespace_ = value; 17154 22522 onChanged(); 17155 22523 return this; … … 17159 22527 java.util.Collections.emptyList(); 17160 22528 private void ensureUninterpretedOptionIsMutable() { 17161 if (!((bitField0_ & 0x000 00800) == 0x00000800)) {17162 uninterpretedOption_ = new java.util.ArrayList< >(uninterpretedOption_);17163 bitField0_ |= 0x000 00800;22529 if (!((bitField0_ & 0x00040000) == 0x00040000)) { 22530 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); 22531 bitField0_ |= 0x00040000; 17164 22532 } 17165 22533 } 17166 22534 17167 private com.google.protobuf.RepeatedFieldBuilder <22535 private com.google.protobuf.RepeatedFieldBuilderV3< 17168 22536 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 17169 22537 17170 22538 /** 22539 * <pre> 22540 * The parser stores options it doesn't recognize here. See above. 22541 * </pre> 22542 * 17171 22543 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17172 * 17173 * <pre> 17174 * The parser stores options it doesn't recognize here. See above. 17175 * </pre> 17176 */ 17177 @Override 17178 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 22544 */ 22545 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 17179 22546 if (uninterpretedOptionBuilder_ == null) { 17180 22547 return java.util.Collections.unmodifiableList(uninterpretedOption_); … … 17184 22551 } 17185 22552 /** 22553 * <pre> 22554 * The parser stores options it doesn't recognize here. See above. 22555 * </pre> 22556 * 17186 22557 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17187 * 17188 * <pre> 17189 * The parser stores options it doesn't recognize here. See above. 17190 * </pre> 17191 */ 17192 @Override 17193 public int getUninterpretedOptionCount() { 22558 */ 22559 public int getUninterpretedOptionCount() { 17194 22560 if (uninterpretedOptionBuilder_ == null) { 17195 22561 return uninterpretedOption_.size(); … … 17199 22565 } 17200 22566 /** 22567 * <pre> 22568 * The parser stores options it doesn't recognize here. See above. 22569 * </pre> 22570 * 17201 22571 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17202 * 17203 * <pre> 17204 * The parser stores options it doesn't recognize here. See above. 17205 * </pre> 17206 */ 17207 @Override 17208 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 22572 */ 22573 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 17209 22574 if (uninterpretedOptionBuilder_ == null) { 17210 22575 return uninterpretedOption_.get(index); … … 17214 22579 } 17215 22580 /** 22581 * <pre> 22582 * The parser stores options it doesn't recognize here. See above. 22583 * </pre> 22584 * 17216 22585 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17217 *17218 * <pre>17219 * The parser stores options it doesn't recognize here. See above.17220 * </pre>17221 22586 */ 17222 22587 public Builder setUninterpretedOption( … … 17235 22600 } 17236 22601 /** 22602 * <pre> 22603 * The parser stores options it doesn't recognize here. See above. 22604 * </pre> 22605 * 17237 22606 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17238 *17239 * <pre>17240 * The parser stores options it doesn't recognize here. See above.17241 * </pre>17242 22607 */ 17243 22608 public Builder setUninterpretedOption( … … 17253 22618 } 17254 22619 /** 22620 * <pre> 22621 * The parser stores options it doesn't recognize here. See above. 22622 * </pre> 22623 * 17255 22624 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17256 *17257 * <pre>17258 * The parser stores options it doesn't recognize here. See above.17259 * </pre>17260 22625 */ 17261 22626 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 17273 22638 } 17274 22639 /** 22640 * <pre> 22641 * The parser stores options it doesn't recognize here. See above. 22642 * </pre> 22643 * 17275 22644 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17276 *17277 * <pre>17278 * The parser stores options it doesn't recognize here. See above.17279 * </pre>17280 22645 */ 17281 22646 public Builder addUninterpretedOption( … … 17294 22659 } 17295 22660 /** 22661 * <pre> 22662 * The parser stores options it doesn't recognize here. See above. 22663 * </pre> 22664 * 17296 22665 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17297 *17298 * <pre>17299 * The parser stores options it doesn't recognize here. See above.17300 * </pre>17301 22666 */ 17302 22667 public Builder addUninterpretedOption( … … 17312 22677 } 17313 22678 /** 22679 * <pre> 22680 * The parser stores options it doesn't recognize here. See above. 22681 * </pre> 22682 * 17314 22683 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17315 *17316 * <pre>17317 * The parser stores options it doesn't recognize here. See above.17318 * </pre>17319 22684 */ 17320 22685 public Builder addUninterpretedOption( … … 17330 22695 } 17331 22696 /** 22697 * <pre> 22698 * The parser stores options it doesn't recognize here. See above. 22699 * </pre> 22700 * 17332 22701 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17333 *17334 * <pre>17335 * The parser stores options it doesn't recognize here. See above.17336 * </pre>17337 22702 */ 17338 22703 public Builder addAllUninterpretedOption( … … 17349 22714 } 17350 22715 /** 22716 * <pre> 22717 * The parser stores options it doesn't recognize here. See above. 22718 * </pre> 22719 * 17351 22720 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17352 *17353 * <pre>17354 * The parser stores options it doesn't recognize here. See above.17355 * </pre>17356 22721 */ 17357 22722 public Builder clearUninterpretedOption() { 17358 22723 if (uninterpretedOptionBuilder_ == null) { 17359 22724 uninterpretedOption_ = java.util.Collections.emptyList(); 17360 bitField0_ = (bitField0_ & ~0x000 00800);22725 bitField0_ = (bitField0_ & ~0x00040000); 17361 22726 onChanged(); 17362 22727 } else { … … 17366 22731 } 17367 22732 /** 22733 * <pre> 22734 * The parser stores options it doesn't recognize here. See above. 22735 * </pre> 22736 * 17368 22737 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17369 *17370 * <pre>17371 * The parser stores options it doesn't recognize here. See above.17372 * </pre>17373 22738 */ 17374 22739 public Builder removeUninterpretedOption(int index) { … … 17383 22748 } 17384 22749 /** 22750 * <pre> 22751 * The parser stores options it doesn't recognize here. See above. 22752 * </pre> 22753 * 17385 22754 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17386 *17387 * <pre>17388 * The parser stores options it doesn't recognize here. See above.17389 * </pre>17390 22755 */ 17391 22756 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( … … 17394 22759 } 17395 22760 /** 22761 * <pre> 22762 * The parser stores options it doesn't recognize here. See above. 22763 * </pre> 22764 * 17396 22765 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17397 * 17398 * <pre> 17399 * The parser stores options it doesn't recognize here. See above. 17400 * </pre> 17401 */ 17402 @Override 17403 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 22766 */ 22767 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 17404 22768 int index) { 17405 22769 if (uninterpretedOptionBuilder_ == null) { … … 17409 22773 } 17410 22774 /** 22775 * <pre> 22776 * The parser stores options it doesn't recognize here. See above. 22777 * </pre> 22778 * 17411 22779 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17412 * 17413 * <pre> 17414 * The parser stores options it doesn't recognize here. See above. 17415 * </pre> 17416 */ 17417 @Override 17418 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 22780 */ 22781 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 17419 22782 getUninterpretedOptionOrBuilderList() { 17420 22783 if (uninterpretedOptionBuilder_ != null) { … … 17425 22788 } 17426 22789 /** 22790 * <pre> 22791 * The parser stores options it doesn't recognize here. See above. 22792 * </pre> 22793 * 17427 22794 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17428 *17429 * <pre>17430 * The parser stores options it doesn't recognize here. See above.17431 * </pre>17432 22795 */ 17433 22796 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { … … 17436 22799 } 17437 22800 /** 22801 * <pre> 22802 * The parser stores options it doesn't recognize here. See above. 22803 * </pre> 22804 * 17438 22805 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17439 *17440 * <pre>17441 * The parser stores options it doesn't recognize here. See above.17442 * </pre>17443 22806 */ 17444 22807 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( … … 17448 22811 } 17449 22812 /** 22813 * <pre> 22814 * The parser stores options it doesn't recognize here. See above. 22815 * </pre> 22816 * 17450 22817 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17451 * 17452 * <pre> 17453 * The parser stores options it doesn't recognize here. See above. 17454 * </pre> 17455 */ 17456 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 22818 */ 22819 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 17457 22820 getUninterpretedOptionBuilderList() { 17458 22821 return getUninterpretedOptionFieldBuilder().getBuilderList(); 17459 22822 } 17460 private com.google.protobuf.RepeatedFieldBuilder <17461 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 22823 private com.google.protobuf.RepeatedFieldBuilderV3< 22824 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 17462 22825 getUninterpretedOptionFieldBuilder() { 17463 22826 if (uninterpretedOptionBuilder_ == null) { 17464 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 22827 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 22828 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( 17465 22829 uninterpretedOption_, 17466 ((bitField0_ & 0x000 00800) == 0x00000800),22830 ((bitField0_ & 0x00040000) == 0x00040000), 17467 22831 getParentForChildren(), 17468 22832 isClean()); … … 17471 22835 return uninterpretedOptionBuilder_; 17472 22836 } 22837 public final Builder setUnknownFields( 22838 final com.google.protobuf.UnknownFieldSet unknownFields) { 22839 return super.setUnknownFields(unknownFields); 22840 } 22841 22842 public final Builder mergeUnknownFields( 22843 final com.google.protobuf.UnknownFieldSet unknownFields) { 22844 return super.mergeUnknownFields(unknownFields); 22845 } 22846 17473 22847 17474 22848 // @@protoc_insertion_point(builder_scope:google.protobuf.FileOptions) 17475 22849 } 17476 22850 22851 // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions) 22852 private static final com.google.protobuf.DescriptorProtos.FileOptions DEFAULT_INSTANCE; 17477 22853 static { 17478 defaultInstance = new FileOptions(true); 17479 defaultInstance.initFields(); 17480 } 17481 17482 // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions) 22854 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.FileOptions(); 22855 } 22856 22857 public static com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstance() { 22858 return DEFAULT_INSTANCE; 22859 } 22860 22861 @java.lang.Deprecated public static final com.google.protobuf.Parser<FileOptions> 22862 PARSER = new com.google.protobuf.AbstractParser<FileOptions>() { 22863 public FileOptions parsePartialFrom( 22864 com.google.protobuf.CodedInputStream input, 22865 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 22866 throws com.google.protobuf.InvalidProtocolBufferException { 22867 return new FileOptions(input, extensionRegistry); 22868 } 22869 }; 22870 22871 public static com.google.protobuf.Parser<FileOptions> parser() { 22872 return PARSER; 22873 } 22874 22875 @java.lang.Override 22876 public com.google.protobuf.Parser<FileOptions> getParserForType() { 22877 return PARSER; 22878 } 22879 22880 public com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstanceForType() { 22881 return DEFAULT_INSTANCE; 22882 } 22883 17483 22884 } 17484 22885 17485 22886 public interface MessageOptionsOrBuilder extends 17486 22887 // @@protoc_insertion_point(interface_extends:google.protobuf.MessageOptions) 17487 com.google.protobuf.GeneratedMessage .22888 com.google.protobuf.GeneratedMessageV3. 17488 22889 ExtendableMessageOrBuilder<MessageOptions> { 17489 22890 17490 22891 /** 17491 * <code>optional bool message_set_wire_format = 1 [default = false];</code>17492 *17493 22892 * <pre> 17494 22893 * Set true to use the old proto1 MessageSet wire format for extensions. … … 17508 22907 * the protocol compiler. 17509 22908 * </pre> 22909 * 22910 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 17510 22911 */ 17511 22912 boolean hasMessageSetWireFormat(); 17512 22913 /** 17513 * <code>optional bool message_set_wire_format = 1 [default = false];</code>17514 *17515 22914 * <pre> 17516 22915 * Set true to use the old proto1 MessageSet wire format for extensions. … … 17530 22929 * the protocol compiler. 17531 22930 * </pre> 22931 * 22932 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 17532 22933 */ 17533 22934 boolean getMessageSetWireFormat(); 17534 22935 17535 22936 /** 17536 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code>17537 *17538 22937 * <pre> 17539 22938 * Disables the generation of the standard "descriptor()" accessor, which can … … 17541 22940 * from proto1 easier; new code should avoid fields named "descriptor". 17542 22941 * </pre> 22942 * 22943 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 17543 22944 */ 17544 22945 boolean hasNoStandardDescriptorAccessor(); 17545 22946 /** 17546 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code>17547 *17548 22947 * <pre> 17549 22948 * Disables the generation of the standard "descriptor()" accessor, which can … … 17551 22950 * from proto1 easier; new code should avoid fields named "descriptor". 17552 22951 * </pre> 22952 * 22953 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 17553 22954 */ 17554 22955 boolean getNoStandardDescriptorAccessor(); 17555 22956 17556 22957 /** 17557 * <code>optional bool deprecated = 3 [default = false];</code>17558 *17559 22958 * <pre> 17560 22959 * Is this message deprecated? … … 17563 22962 * this is a formalization for deprecating messages. 17564 22963 * </pre> 22964 * 22965 * <code>optional bool deprecated = 3 [default = false];</code> 17565 22966 */ 17566 22967 boolean hasDeprecated(); 17567 22968 /** 17568 * <code>optional bool deprecated = 3 [default = false];</code>17569 *17570 22969 * <pre> 17571 22970 * Is this message deprecated? … … 17574 22973 * this is a formalization for deprecating messages. 17575 22974 * </pre> 22975 * 22976 * <code>optional bool deprecated = 3 [default = false];</code> 17576 22977 */ 17577 22978 boolean getDeprecated(); 17578 22979 17579 22980 /** 17580 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22981 * <pre> 22982 * Whether the message is an automatically generated map entry type for the 22983 * maps field. 22984 * For maps fields: 22985 * map<KeyType, ValueType> map_field = 1; 22986 * The parsed descriptor looks like: 22987 * message MapFieldEntry { 22988 * option map_entry = true; 22989 * optional KeyType key = 1; 22990 * optional ValueType value = 2; 22991 * } 22992 * repeated MapFieldEntry map_field = 1; 22993 * Implementations may choose not to generate the map_entry=true message, but 22994 * use a native map in the target language to hold the keys and values. 22995 * The reflection APIs in such implementions still need to work as 22996 * if the field is a repeated message field. 22997 * NOTE: Do not set the option in .proto files. Always use the maps syntax 22998 * instead. The option should only be implicitly set by the proto compiler 22999 * parser. 23000 * </pre> 17581 23001 * 23002 * <code>optional bool map_entry = 7;</code> 23003 */ 23004 boolean hasMapEntry(); 23005 /** 23006 * <pre> 23007 * Whether the message is an automatically generated map entry type for the 23008 * maps field. 23009 * For maps fields: 23010 * map<KeyType, ValueType> map_field = 1; 23011 * The parsed descriptor looks like: 23012 * message MapFieldEntry { 23013 * option map_entry = true; 23014 * optional KeyType key = 1; 23015 * optional ValueType value = 2; 23016 * } 23017 * repeated MapFieldEntry map_field = 1; 23018 * Implementations may choose not to generate the map_entry=true message, but 23019 * use a native map in the target language to hold the keys and values. 23020 * The reflection APIs in such implementions still need to work as 23021 * if the field is a repeated message field. 23022 * NOTE: Do not set the option in .proto files. Always use the maps syntax 23023 * instead. The option should only be implicitly set by the proto compiler 23024 * parser. 23025 * </pre> 23026 * 23027 * <code>optional bool map_entry = 7;</code> 23028 */ 23029 boolean getMapEntry(); 23030 23031 /** 17582 23032 * <pre> 17583 23033 * The parser stores options it doesn't recognize here. See above. 17584 23034 * </pre> 17585 */ 17586 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 23035 * 23036 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23037 */ 23038 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 17587 23039 getUninterpretedOptionList(); 17588 23040 /** 17589 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>17590 *17591 23041 * <pre> 17592 23042 * The parser stores options it doesn't recognize here. See above. 17593 23043 * </pre> 23044 * 23045 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17594 23046 */ 17595 23047 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 17596 23048 /** 17597 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>17598 *17599 23049 * <pre> 17600 23050 * The parser stores options it doesn't recognize here. See above. 17601 23051 * </pre> 23052 * 23053 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17602 23054 */ 17603 23055 int getUninterpretedOptionCount(); 17604 23056 /** 17605 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>17606 *17607 23057 * <pre> 17608 23058 * The parser stores options it doesn't recognize here. See above. 17609 23059 * </pre> 17610 */ 17611 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 23060 * 23061 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23062 */ 23063 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 17612 23064 getUninterpretedOptionOrBuilderList(); 17613 23065 /** 17614 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>17615 *17616 23066 * <pre> 17617 23067 * The parser stores options it doesn't recognize here. See above. 17618 23068 * </pre> 23069 * 23070 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 17619 23071 */ 17620 23072 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( … … 17624 23076 * Protobuf type {@code google.protobuf.MessageOptions} 17625 23077 */ 17626 public static final class MessageOptions extends17627 com.google.protobuf.GeneratedMessage .ExtendableMessage<23078 public static final class MessageOptions extends 23079 com.google.protobuf.GeneratedMessageV3.ExtendableMessage< 17628 23080 MessageOptions> implements 17629 23081 // @@protoc_insertion_point(message_implements:google.protobuf.MessageOptions) 17630 23082 MessageOptionsOrBuilder { 23083 private static final long serialVersionUID = 0L; 17631 23084 // Use MessageOptions.newBuilder() to construct. 17632 private MessageOptions(com.google.protobuf.GeneratedMessage .ExtendableBuilder<com.google.protobuf.DescriptorProtos.MessageOptions, ?> builder) {23085 private MessageOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.MessageOptions, ?> builder) { 17633 23086 super(builder); 17634 this.unknownFields = builder.getUnknownFields(); 17635 } 17636 private MessageOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 17637 17638 private static final MessageOptions defaultInstance; 17639 public static MessageOptions getDefaultInstance() { 17640 return defaultInstance; 17641 } 17642 17643 @Override 17644 public MessageOptions getDefaultInstanceForType() { 17645 return defaultInstance; 17646 } 17647 17648 private final com.google.protobuf.UnknownFieldSet unknownFields; 23087 } 23088 private MessageOptions() { 23089 messageSetWireFormat_ = false; 23090 noStandardDescriptorAccessor_ = false; 23091 deprecated_ = false; 23092 mapEntry_ = false; 23093 uninterpretedOption_ = java.util.Collections.emptyList(); 23094 } 23095 17649 23096 @java.lang.Override 17650 23097 public final com.google.protobuf.UnknownFieldSet 17651 23098 getUnknownFields() { 17652 23099 return this.unknownFields; 17653 23100 } … … 17656 23103 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 17657 23104 throws com.google.protobuf.InvalidProtocolBufferException { 17658 initFields();23105 this(); 17659 23106 int mutable_bitField0_ = 0; 17660 23107 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 17669 23116 break; 17670 23117 default: { 17671 if (!parseUnknownField( input, unknownFields,17672 23118 if (!parseUnknownField( 23119 input, unknownFields, extensionRegistry, tag)) { 17673 23120 done = true; 17674 23121 } … … 17690 23137 break; 17691 23138 } 23139 case 56: { 23140 bitField0_ |= 0x00000008; 23141 mapEntry_ = input.readBool(); 23142 break; 23143 } 17692 23144 case 7994: { 17693 if (!((mutable_bitField0_ & 0x000000 08) == 0x00000008)) {17694 uninterpretedOption_ = new java.util.ArrayList< >();17695 mutable_bitField0_ |= 0x000000 08;23145 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 23146 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 23147 mutable_bitField0_ |= 0x00000010; 17696 23148 } 17697 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 23149 uninterpretedOption_.add( 23150 input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 17698 23151 break; 17699 23152 } … … 17704 23157 } catch (java.io.IOException e) { 17705 23158 throw new com.google.protobuf.InvalidProtocolBufferException( 17706 e .getMessage()).setUnfinishedMessage(this);23159 e).setUnfinishedMessage(this); 17707 23160 } finally { 17708 if (((mutable_bitField0_ & 0x000000 08) == 0x00000008)) {23161 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 17709 23162 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 17710 23163 } … … 17718 23171 } 17719 23172 17720 @Override 17721 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 23173 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 17722 23174 internalGetFieldAccessorTable() { 17723 23175 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_fieldAccessorTable … … 17726 23178 } 17727 23179 17728 public static com.google.protobuf.Parser<MessageOptions> PARSER =17729 new com.google.protobuf.AbstractParser<MessageOptions>() {17730 @Override17731 public MessageOptions parsePartialFrom(17732 com.google.protobuf.CodedInputStream input,17733 com.google.protobuf.ExtensionRegistryLite extensionRegistry)17734 throws com.google.protobuf.InvalidProtocolBufferException {17735 return new MessageOptions(input, extensionRegistry);17736 }17737 };17738 17739 @java.lang.Override17740 public com.google.protobuf.Parser<MessageOptions> getParserForType() {17741 return PARSER;17742 }17743 17744 23180 private int bitField0_; 17745 23181 public static final int MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER = 1; 17746 23182 private boolean messageSetWireFormat_; 17747 23183 /** 17748 * <code>optional bool message_set_wire_format = 1 [default = false];</code>17749 *17750 23184 * <pre> 17751 23185 * Set true to use the old proto1 MessageSet wire format for extensions. … … 17765 23199 * the protocol compiler. 17766 23200 * </pre> 17767 */ 17768 @Override 17769 public boolean hasMessageSetWireFormat() { 23201 * 23202 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 23203 */ 23204 public boolean hasMessageSetWireFormat() { 17770 23205 return ((bitField0_ & 0x00000001) == 0x00000001); 17771 23206 } 17772 23207 /** 17773 * <code>optional bool message_set_wire_format = 1 [default = false];</code>17774 *17775 23208 * <pre> 17776 23209 * Set true to use the old proto1 MessageSet wire format for extensions. … … 17790 23223 * the protocol compiler. 17791 23224 * </pre> 17792 */ 17793 @Override 17794 public boolean getMessageSetWireFormat() { 23225 * 23226 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 23227 */ 23228 public boolean getMessageSetWireFormat() { 17795 23229 return messageSetWireFormat_; 17796 23230 } … … 17799 23233 private boolean noStandardDescriptorAccessor_; 17800 23234 /** 17801 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code>17802 *17803 23235 * <pre> 17804 23236 * Disables the generation of the standard "descriptor()" accessor, which can … … 17806 23238 * from proto1 easier; new code should avoid fields named "descriptor". 17807 23239 * </pre> 17808 */ 17809 @Override 17810 public boolean hasNoStandardDescriptorAccessor() { 23240 * 23241 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 23242 */ 23243 public boolean hasNoStandardDescriptorAccessor() { 17811 23244 return ((bitField0_ & 0x00000002) == 0x00000002); 17812 23245 } 17813 23246 /** 17814 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code>17815 *17816 23247 * <pre> 17817 23248 * Disables the generation of the standard "descriptor()" accessor, which can … … 17819 23250 * from proto1 easier; new code should avoid fields named "descriptor". 17820 23251 * </pre> 17821 */ 17822 @Override 17823 public boolean getNoStandardDescriptorAccessor() { 23252 * 23253 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 23254 */ 23255 public boolean getNoStandardDescriptorAccessor() { 17824 23256 return noStandardDescriptorAccessor_; 17825 23257 } … … 17828 23260 private boolean deprecated_; 17829 23261 /** 17830 * <code>optional bool deprecated = 3 [default = false];</code>17831 *17832 23262 * <pre> 17833 23263 * Is this message deprecated? … … 17836 23266 * this is a formalization for deprecating messages. 17837 23267 * </pre> 17838 */ 17839 @Override 17840 public boolean hasDeprecated() { 23268 * 23269 * <code>optional bool deprecated = 3 [default = false];</code> 23270 */ 23271 public boolean hasDeprecated() { 17841 23272 return ((bitField0_ & 0x00000004) == 0x00000004); 17842 23273 } 17843 23274 /** 17844 * <code>optional bool deprecated = 3 [default = false];</code>17845 *17846 23275 * <pre> 17847 23276 * Is this message deprecated? … … 17850 23279 * this is a formalization for deprecating messages. 17851 23280 * </pre> 17852 */ 17853 @Override 17854 public boolean getDeprecated() { 23281 * 23282 * <code>optional bool deprecated = 3 [default = false];</code> 23283 */ 23284 public boolean getDeprecated() { 17855 23285 return deprecated_; 23286 } 23287 23288 public static final int MAP_ENTRY_FIELD_NUMBER = 7; 23289 private boolean mapEntry_; 23290 /** 23291 * <pre> 23292 * Whether the message is an automatically generated map entry type for the 23293 * maps field. 23294 * For maps fields: 23295 * map<KeyType, ValueType> map_field = 1; 23296 * The parsed descriptor looks like: 23297 * message MapFieldEntry { 23298 * option map_entry = true; 23299 * optional KeyType key = 1; 23300 * optional ValueType value = 2; 23301 * } 23302 * repeated MapFieldEntry map_field = 1; 23303 * Implementations may choose not to generate the map_entry=true message, but 23304 * use a native map in the target language to hold the keys and values. 23305 * The reflection APIs in such implementions still need to work as 23306 * if the field is a repeated message field. 23307 * NOTE: Do not set the option in .proto files. Always use the maps syntax 23308 * instead. The option should only be implicitly set by the proto compiler 23309 * parser. 23310 * </pre> 23311 * 23312 * <code>optional bool map_entry = 7;</code> 23313 */ 23314 public boolean hasMapEntry() { 23315 return ((bitField0_ & 0x00000008) == 0x00000008); 23316 } 23317 /** 23318 * <pre> 23319 * Whether the message is an automatically generated map entry type for the 23320 * maps field. 23321 * For maps fields: 23322 * map<KeyType, ValueType> map_field = 1; 23323 * The parsed descriptor looks like: 23324 * message MapFieldEntry { 23325 * option map_entry = true; 23326 * optional KeyType key = 1; 23327 * optional ValueType value = 2; 23328 * } 23329 * repeated MapFieldEntry map_field = 1; 23330 * Implementations may choose not to generate the map_entry=true message, but 23331 * use a native map in the target language to hold the keys and values. 23332 * The reflection APIs in such implementions still need to work as 23333 * if the field is a repeated message field. 23334 * NOTE: Do not set the option in .proto files. Always use the maps syntax 23335 * instead. The option should only be implicitly set by the proto compiler 23336 * parser. 23337 * </pre> 23338 * 23339 * <code>optional bool map_entry = 7;</code> 23340 */ 23341 public boolean getMapEntry() { 23342 return mapEntry_; 17856 23343 } 17857 23344 … … 17859 23346 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 17860 23347 /** 17861 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>17862 *17863 23348 * <pre> 17864 23349 * The parser stores options it doesn't recognize here. See above. 17865 23350 * </pre> 17866 */ 17867 @Override 17868 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 23351 * 23352 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23353 */ 23354 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 17869 23355 return uninterpretedOption_; 17870 23356 } 17871 23357 /** 17872 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>17873 *17874 23358 * <pre> 17875 23359 * The parser stores options it doesn't recognize here. See above. 17876 23360 * </pre> 17877 */ 17878 @Override 17879 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 23361 * 23362 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23363 */ 23364 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 17880 23365 getUninterpretedOptionOrBuilderList() { 17881 23366 return uninterpretedOption_; 17882 23367 } 17883 23368 /** 17884 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>17885 *17886 23369 * <pre> 17887 23370 * The parser stores options it doesn't recognize here. See above. 17888 23371 * </pre> 17889 */ 17890 @Override 17891 public int getUninterpretedOptionCount() { 23372 * 23373 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23374 */ 23375 public int getUninterpretedOptionCount() { 17892 23376 return uninterpretedOption_.size(); 17893 23377 } 17894 23378 /** 17895 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>17896 *17897 23379 * <pre> 17898 23380 * The parser stores options it doesn't recognize here. See above. 17899 23381 * </pre> 17900 */ 17901 @Override 17902 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 23382 * 23383 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23384 */ 23385 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 17903 23386 return uninterpretedOption_.get(index); 17904 23387 } 17905 23388 /** 17906 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>17907 *17908 23389 * <pre> 17909 23390 * The parser stores options it doesn't recognize here. See above. 17910 23391 * </pre> 17911 */ 17912 @Override 17913 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 23392 * 23393 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23394 */ 23395 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 17914 23396 int index) { 17915 23397 return uninterpretedOption_.get(index); 17916 23398 } 17917 23399 17918 private void initFields() {17919 messageSetWireFormat_ = false;17920 noStandardDescriptorAccessor_ = false;17921 deprecated_ = false;17922 uninterpretedOption_ = java.util.Collections.emptyList();17923 }17924 23400 private byte memoizedIsInitialized = -1; 17925 @Override 17926 public final boolean isInitialized() { 23401 public final boolean isInitialized() { 17927 23402 byte isInitialized = memoizedIsInitialized; 17928 23403 if (isInitialized == 1) return true; … … 17943 23418 } 17944 23419 17945 @Override 17946 public void writeTo(com.google.protobuf.CodedOutputStream output) 23420 public void writeTo(com.google.protobuf.CodedOutputStream output) 17947 23421 throws java.io.IOException { 17948 getSerializedSize(); 17949 com.google.protobuf.GeneratedMessage 17950 .ExtendableMessage<com.google.protobuf.DescriptorProtos.MessageOptions>.ExtensionWriter extensionWriter = 17951 newExtensionWriter(); 23422 com.google.protobuf.GeneratedMessageV3 23423 .ExtendableMessage<com.google.protobuf.DescriptorProtos.MessageOptions>.ExtensionWriter 23424 extensionWriter = newExtensionWriter(); 17952 23425 if (((bitField0_ & 0x00000001) == 0x00000001)) { 17953 23426 output.writeBool(1, messageSetWireFormat_); … … 17959 23432 output.writeBool(3, deprecated_); 17960 23433 } 23434 if (((bitField0_ & 0x00000008) == 0x00000008)) { 23435 output.writeBool(7, mapEntry_); 23436 } 17961 23437 for (int i = 0; i < uninterpretedOption_.size(); i++) { 17962 23438 output.writeMessage(999, uninterpretedOption_.get(i)); 17963 23439 } 17964 23440 extensionWriter.writeUntil(536870912, output); 17965 getUnknownFields().writeTo(output); 17966 } 17967 17968 private int memoizedSerializedSize = -1; 17969 @Override 17970 public int getSerializedSize() { 17971 int size = memoizedSerializedSize; 23441 unknownFields.writeTo(output); 23442 } 23443 23444 public int getSerializedSize() { 23445 int size = memoizedSize; 17972 23446 if (size != -1) return size; 17973 23447 … … 17985 23459 .computeBoolSize(3, deprecated_); 17986 23460 } 23461 if (((bitField0_ & 0x00000008) == 0x00000008)) { 23462 size += com.google.protobuf.CodedOutputStream 23463 .computeBoolSize(7, mapEntry_); 23464 } 17987 23465 for (int i = 0; i < uninterpretedOption_.size(); i++) { 17988 23466 size += com.google.protobuf.CodedOutputStream … … 17990 23468 } 17991 23469 size += extensionsSerializedSize(); 17992 size += getUnknownFields().getSerializedSize();17993 memoizedS erializedSize = size;23470 size += unknownFields.getSerializedSize(); 23471 memoizedSize = size; 17994 23472 return size; 17995 23473 } 17996 23474 17997 private static final long serialVersionUID = 0L;17998 23475 @java.lang.Override 17999 protected java.lang.Object writeReplace() 18000 throws java.io.ObjectStreamException { 18001 return super.writeReplace(); 18002 } 18003 23476 public boolean equals(final java.lang.Object obj) { 23477 if (obj == this) { 23478 return true; 23479 } 23480 if (!(obj instanceof com.google.protobuf.DescriptorProtos.MessageOptions)) { 23481 return super.equals(obj); 23482 } 23483 com.google.protobuf.DescriptorProtos.MessageOptions other = (com.google.protobuf.DescriptorProtos.MessageOptions) obj; 23484 23485 boolean result = true; 23486 result = result && (hasMessageSetWireFormat() == other.hasMessageSetWireFormat()); 23487 if (hasMessageSetWireFormat()) { 23488 result = result && (getMessageSetWireFormat() 23489 == other.getMessageSetWireFormat()); 23490 } 23491 result = result && (hasNoStandardDescriptorAccessor() == other.hasNoStandardDescriptorAccessor()); 23492 if (hasNoStandardDescriptorAccessor()) { 23493 result = result && (getNoStandardDescriptorAccessor() 23494 == other.getNoStandardDescriptorAccessor()); 23495 } 23496 result = result && (hasDeprecated() == other.hasDeprecated()); 23497 if (hasDeprecated()) { 23498 result = result && (getDeprecated() 23499 == other.getDeprecated()); 23500 } 23501 result = result && (hasMapEntry() == other.hasMapEntry()); 23502 if (hasMapEntry()) { 23503 result = result && (getMapEntry() 23504 == other.getMapEntry()); 23505 } 23506 result = result && getUninterpretedOptionList() 23507 .equals(other.getUninterpretedOptionList()); 23508 result = result && unknownFields.equals(other.unknownFields); 23509 result = result && 23510 getExtensionFields().equals(other.getExtensionFields()); 23511 return result; 23512 } 23513 23514 @java.lang.Override 23515 public int hashCode() { 23516 if (memoizedHashCode != 0) { 23517 return memoizedHashCode; 23518 } 23519 int hash = 41; 23520 hash = (19 * hash) + getDescriptor().hashCode(); 23521 if (hasMessageSetWireFormat()) { 23522 hash = (37 * hash) + MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER; 23523 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 23524 getMessageSetWireFormat()); 23525 } 23526 if (hasNoStandardDescriptorAccessor()) { 23527 hash = (37 * hash) + NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER; 23528 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 23529 getNoStandardDescriptorAccessor()); 23530 } 23531 if (hasDeprecated()) { 23532 hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; 23533 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 23534 getDeprecated()); 23535 } 23536 if (hasMapEntry()) { 23537 hash = (37 * hash) + MAP_ENTRY_FIELD_NUMBER; 23538 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 23539 getMapEntry()); 23540 } 23541 if (getUninterpretedOptionCount() > 0) { 23542 hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; 23543 hash = (53 * hash) + getUninterpretedOptionList().hashCode(); 23544 } 23545 hash = hashFields(hash, getExtensionFields()); 23546 hash = (29 * hash) + unknownFields.hashCode(); 23547 memoizedHashCode = hash; 23548 return hash; 23549 } 23550 23551 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 23552 java.nio.ByteBuffer data) 23553 throws com.google.protobuf.InvalidProtocolBufferException { 23554 return PARSER.parseFrom(data); 23555 } 23556 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 23557 java.nio.ByteBuffer data, 23558 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 23559 throws com.google.protobuf.InvalidProtocolBufferException { 23560 return PARSER.parseFrom(data, extensionRegistry); 23561 } 18004 23562 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 18005 23563 com.google.protobuf.ByteString data) … … 18025 23583 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom(java.io.InputStream input) 18026 23584 throws java.io.IOException { 18027 return PARSER.parseFrom(input); 23585 return com.google.protobuf.GeneratedMessageV3 23586 .parseWithIOException(PARSER, input); 18028 23587 } 18029 23588 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( … … 18031 23590 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 18032 23591 throws java.io.IOException { 18033 return PARSER.parseFrom(input, extensionRegistry); 23592 return com.google.protobuf.GeneratedMessageV3 23593 .parseWithIOException(PARSER, input, extensionRegistry); 18034 23594 } 18035 23595 public static com.google.protobuf.DescriptorProtos.MessageOptions parseDelimitedFrom(java.io.InputStream input) 18036 23596 throws java.io.IOException { 18037 return PARSER.parseDelimitedFrom(input); 23597 return com.google.protobuf.GeneratedMessageV3 23598 .parseDelimitedWithIOException(PARSER, input); 18038 23599 } 18039 23600 public static com.google.protobuf.DescriptorProtos.MessageOptions parseDelimitedFrom( … … 18041 23602 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 18042 23603 throws java.io.IOException { 18043 return PARSER.parseDelimitedFrom(input, extensionRegistry); 23604 return com.google.protobuf.GeneratedMessageV3 23605 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 18044 23606 } 18045 23607 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( 18046 23608 com.google.protobuf.CodedInputStream input) 18047 23609 throws java.io.IOException { 18048 return PARSER.parseFrom(input); 23610 return com.google.protobuf.GeneratedMessageV3 23611 .parseWithIOException(PARSER, input); 18049 23612 } 18050 23613 public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( … … 18052 23615 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 18053 23616 throws java.io.IOException { 18054 return PARSER.parseFrom(input, extensionRegistry); 18055 } 18056 18057 public static Builder newBuilder() { return Builder.create(); } 18058 @Override 18059 public Builder newBuilderForType() { return newBuilder(); } 23617 return com.google.protobuf.GeneratedMessageV3 23618 .parseWithIOException(PARSER, input, extensionRegistry); 23619 } 23620 23621 public Builder newBuilderForType() { return newBuilder(); } 23622 public static Builder newBuilder() { 23623 return DEFAULT_INSTANCE.toBuilder(); 23624 } 18060 23625 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MessageOptions prototype) { 18061 return newBuilder().mergeFrom(prototype); 18062 } 18063 @Override 18064 public Builder toBuilder() { return newBuilder(this); } 23626 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 23627 } 23628 public Builder toBuilder() { 23629 return this == DEFAULT_INSTANCE 23630 ? new Builder() : new Builder().mergeFrom(this); 23631 } 18065 23632 18066 23633 @java.lang.Override 18067 23634 protected Builder newBuilderForType( 18068 com.google.protobuf.GeneratedMessage .BuilderParent parent) {23635 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 18069 23636 Builder builder = new Builder(parent); 18070 23637 return builder; … … 18074 23641 */ 18075 23642 public static final class Builder extends 18076 com.google.protobuf.GeneratedMessage .ExtendableBuilder<23643 com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< 18077 23644 com.google.protobuf.DescriptorProtos.MessageOptions, Builder> implements 18078 23645 // @@protoc_insertion_point(builder_implements:google.protobuf.MessageOptions) … … 18083 23650 } 18084 23651 18085 @Override 18086 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 23652 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 18087 23653 internalGetFieldAccessorTable() { 18088 23654 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_fieldAccessorTable … … 18097 23663 18098 23664 private Builder( 18099 com.google.protobuf.GeneratedMessage .BuilderParent parent) {23665 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 18100 23666 super(parent); 18101 23667 maybeForceBuilderInitialization(); 18102 23668 } 18103 23669 private void maybeForceBuilderInitialization() { 18104 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 23670 if (com.google.protobuf.GeneratedMessageV3 23671 .alwaysUseFieldBuilders) { 18105 23672 getUninterpretedOptionFieldBuilder(); 18106 23673 } 18107 23674 } 18108 private static Builder create() { 18109 return new Builder(); 18110 } 18111 18112 @Override 18113 public Builder clear() { 23675 public Builder clear() { 18114 23676 super.clear(); 18115 23677 messageSetWireFormat_ = false; … … 18119 23681 deprecated_ = false; 18120 23682 bitField0_ = (bitField0_ & ~0x00000004); 23683 mapEntry_ = false; 23684 bitField0_ = (bitField0_ & ~0x00000008); 18121 23685 if (uninterpretedOptionBuilder_ == null) { 18122 23686 uninterpretedOption_ = java.util.Collections.emptyList(); 18123 bitField0_ = (bitField0_ & ~0x000000 08);23687 bitField0_ = (bitField0_ & ~0x00000010); 18124 23688 } else { 18125 23689 uninterpretedOptionBuilder_.clear(); … … 18128 23692 } 18129 23693 18130 @Override 18131 public Builder clone() { 18132 return create().mergeFrom(buildPartial()); 18133 } 18134 18135 @Override 18136 public com.google.protobuf.Descriptors.Descriptor 23694 public com.google.protobuf.Descriptors.Descriptor 18137 23695 getDescriptorForType() { 18138 23696 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MessageOptions_descriptor; 18139 23697 } 18140 23698 18141 @Override 18142 public com.google.protobuf.DescriptorProtos.MessageOptions getDefaultInstanceForType() { 23699 public com.google.protobuf.DescriptorProtos.MessageOptions getDefaultInstanceForType() { 18143 23700 return com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); 18144 23701 } 18145 23702 18146 @Override 18147 public com.google.protobuf.DescriptorProtos.MessageOptions build() { 23703 public com.google.protobuf.DescriptorProtos.MessageOptions build() { 18148 23704 com.google.protobuf.DescriptorProtos.MessageOptions result = buildPartial(); 18149 23705 if (!result.isInitialized()) { … … 18153 23709 } 18154 23710 18155 @Override 18156 public com.google.protobuf.DescriptorProtos.MessageOptions buildPartial() { 23711 public com.google.protobuf.DescriptorProtos.MessageOptions buildPartial() { 18157 23712 com.google.protobuf.DescriptorProtos.MessageOptions result = new com.google.protobuf.DescriptorProtos.MessageOptions(this); 18158 23713 int from_bitField0_ = bitField0_; … … 18170 23725 } 18171 23726 result.deprecated_ = deprecated_; 23727 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 23728 to_bitField0_ |= 0x00000008; 23729 } 23730 result.mapEntry_ = mapEntry_; 18172 23731 if (uninterpretedOptionBuilder_ == null) { 18173 if (((bitField0_ & 0x000000 08) == 0x00000008)) {23732 if (((bitField0_ & 0x00000010) == 0x00000010)) { 18174 23733 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 18175 bitField0_ = (bitField0_ & ~0x000000 08);23734 bitField0_ = (bitField0_ & ~0x00000010); 18176 23735 } 18177 23736 result.uninterpretedOption_ = uninterpretedOption_; … … 18184 23743 } 18185 23744 18186 @Override 18187 public Builder mergeFrom(com.google.protobuf.Message other) { 23745 public Builder clone() { 23746 return (Builder) super.clone(); 23747 } 23748 public Builder setField( 23749 com.google.protobuf.Descriptors.FieldDescriptor field, 23750 java.lang.Object value) { 23751 return (Builder) super.setField(field, value); 23752 } 23753 public Builder clearField( 23754 com.google.protobuf.Descriptors.FieldDescriptor field) { 23755 return (Builder) super.clearField(field); 23756 } 23757 public Builder clearOneof( 23758 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 23759 return (Builder) super.clearOneof(oneof); 23760 } 23761 public Builder setRepeatedField( 23762 com.google.protobuf.Descriptors.FieldDescriptor field, 23763 int index, java.lang.Object value) { 23764 return (Builder) super.setRepeatedField(field, index, value); 23765 } 23766 public Builder addRepeatedField( 23767 com.google.protobuf.Descriptors.FieldDescriptor field, 23768 java.lang.Object value) { 23769 return (Builder) super.addRepeatedField(field, value); 23770 } 23771 public <Type> Builder setExtension( 23772 com.google.protobuf.GeneratedMessage.GeneratedExtension< 23773 com.google.protobuf.DescriptorProtos.MessageOptions, Type> extension, 23774 Type value) { 23775 return (Builder) super.setExtension(extension, value); 23776 } 23777 public <Type> Builder setExtension( 23778 com.google.protobuf.GeneratedMessage.GeneratedExtension< 23779 com.google.protobuf.DescriptorProtos.MessageOptions, java.util.List<Type>> extension, 23780 int index, Type value) { 23781 return (Builder) super.setExtension(extension, index, value); 23782 } 23783 public <Type> Builder addExtension( 23784 com.google.protobuf.GeneratedMessage.GeneratedExtension< 23785 com.google.protobuf.DescriptorProtos.MessageOptions, java.util.List<Type>> extension, 23786 Type value) { 23787 return (Builder) super.addExtension(extension, value); 23788 } 23789 public <Type> Builder clearExtension( 23790 com.google.protobuf.GeneratedMessage.GeneratedExtension< 23791 com.google.protobuf.DescriptorProtos.MessageOptions, ?> extension) { 23792 return (Builder) super.clearExtension(extension); 23793 } 23794 public Builder mergeFrom(com.google.protobuf.Message other) { 18188 23795 if (other instanceof com.google.protobuf.DescriptorProtos.MessageOptions) { 18189 23796 return mergeFrom((com.google.protobuf.DescriptorProtos.MessageOptions)other); … … 18205 23812 setDeprecated(other.getDeprecated()); 18206 23813 } 23814 if (other.hasMapEntry()) { 23815 setMapEntry(other.getMapEntry()); 23816 } 18207 23817 if (uninterpretedOptionBuilder_ == null) { 18208 23818 if (!other.uninterpretedOption_.isEmpty()) { 18209 23819 if (uninterpretedOption_.isEmpty()) { 18210 23820 uninterpretedOption_ = other.uninterpretedOption_; 18211 bitField0_ = (bitField0_ & ~0x000000 08);23821 bitField0_ = (bitField0_ & ~0x00000010); 18212 23822 } else { 18213 23823 ensureUninterpretedOptionIsMutable(); … … 18222 23832 uninterpretedOptionBuilder_ = null; 18223 23833 uninterpretedOption_ = other.uninterpretedOption_; 18224 bitField0_ = (bitField0_ & ~0x000000 08);18225 uninterpretedOptionBuilder_ = 18226 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?23834 bitField0_ = (bitField0_ & ~0x00000010); 23835 uninterpretedOptionBuilder_ = 23836 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 18227 23837 getUninterpretedOptionFieldBuilder() : null; 18228 23838 } else { … … 18232 23842 } 18233 23843 this.mergeExtensionFields(other); 18234 this.mergeUnknownFields(other. getUnknownFields());18235 return this;18236 }18237 18238 @Override 18239 23844 this.mergeUnknownFields(other.unknownFields); 23845 onChanged(); 23846 return this; 23847 } 23848 23849 public final boolean isInitialized() { 18240 23850 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 18241 23851 if (!getUninterpretedOption(i).isInitialized()) { 18242 18243 23852 return false; 18244 23853 } 18245 23854 } 18246 23855 if (!extensionsAreInitialized()) { 18247 18248 23856 return false; 18249 23857 } … … 18251 23859 } 18252 23860 18253 @Override 18254 public Builder mergeFrom( 23861 public Builder mergeFrom( 18255 23862 com.google.protobuf.CodedInputStream input, 18256 23863 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 18261 23868 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 18262 23869 parsedMessage = (com.google.protobuf.DescriptorProtos.MessageOptions) e.getUnfinishedMessage(); 18263 throw e ;23870 throw e.unwrapIOException(); 18264 23871 } finally { 18265 23872 if (parsedMessage != null) { … … 18273 23880 private boolean messageSetWireFormat_ ; 18274 23881 /** 18275 * <code>optional bool message_set_wire_format = 1 [default = false];</code>18276 *18277 23882 * <pre> 18278 23883 * Set true to use the old proto1 MessageSet wire format for extensions. … … 18292 23897 * the protocol compiler. 18293 23898 * </pre> 18294 */ 18295 @Override 18296 public boolean hasMessageSetWireFormat() { 23899 * 23900 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 23901 */ 23902 public boolean hasMessageSetWireFormat() { 18297 23903 return ((bitField0_ & 0x00000001) == 0x00000001); 18298 23904 } 18299 23905 /** 18300 * <code>optional bool message_set_wire_format = 1 [default = false];</code>18301 *18302 23906 * <pre> 18303 23907 * Set true to use the old proto1 MessageSet wire format for extensions. … … 18317 23921 * the protocol compiler. 18318 23922 * </pre> 18319 */ 18320 @Override 18321 public boolean getMessageSetWireFormat() { 23923 * 23924 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 23925 */ 23926 public boolean getMessageSetWireFormat() { 18322 23927 return messageSetWireFormat_; 18323 23928 } 18324 23929 /** 18325 * <code>optional bool message_set_wire_format = 1 [default = false];</code>18326 *18327 23930 * <pre> 18328 23931 * Set true to use the old proto1 MessageSet wire format for extensions. … … 18342 23945 * the protocol compiler. 18343 23946 * </pre> 23947 * 23948 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 18344 23949 */ 18345 23950 public Builder setMessageSetWireFormat(boolean value) { … … 18350 23955 } 18351 23956 /** 18352 * <code>optional bool message_set_wire_format = 1 [default = false];</code>18353 *18354 23957 * <pre> 18355 23958 * Set true to use the old proto1 MessageSet wire format for extensions. … … 18369 23972 * the protocol compiler. 18370 23973 * </pre> 23974 * 23975 * <code>optional bool message_set_wire_format = 1 [default = false];</code> 18371 23976 */ 18372 23977 public Builder clearMessageSetWireFormat() { … … 18379 23984 private boolean noStandardDescriptorAccessor_ ; 18380 23985 /** 18381 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code>18382 *18383 23986 * <pre> 18384 23987 * Disables the generation of the standard "descriptor()" accessor, which can … … 18386 23989 * from proto1 easier; new code should avoid fields named "descriptor". 18387 23990 * </pre> 18388 */ 18389 @Override 18390 public boolean hasNoStandardDescriptorAccessor() { 23991 * 23992 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 23993 */ 23994 public boolean hasNoStandardDescriptorAccessor() { 18391 23995 return ((bitField0_ & 0x00000002) == 0x00000002); 18392 23996 } 18393 23997 /** 18394 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code>18395 *18396 23998 * <pre> 18397 23999 * Disables the generation of the standard "descriptor()" accessor, which can … … 18399 24001 * from proto1 easier; new code should avoid fields named "descriptor". 18400 24002 * </pre> 18401 */ 18402 @Override 18403 public boolean getNoStandardDescriptorAccessor() { 24003 * 24004 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 24005 */ 24006 public boolean getNoStandardDescriptorAccessor() { 18404 24007 return noStandardDescriptorAccessor_; 18405 24008 } 18406 24009 /** 18407 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code>18408 *18409 24010 * <pre> 18410 24011 * Disables the generation of the standard "descriptor()" accessor, which can … … 18412 24013 * from proto1 easier; new code should avoid fields named "descriptor". 18413 24014 * </pre> 24015 * 24016 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 18414 24017 */ 18415 24018 public Builder setNoStandardDescriptorAccessor(boolean value) { … … 18420 24023 } 18421 24024 /** 18422 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code>18423 *18424 24025 * <pre> 18425 24026 * Disables the generation of the standard "descriptor()" accessor, which can … … 18427 24028 * from proto1 easier; new code should avoid fields named "descriptor". 18428 24029 * </pre> 24030 * 24031 * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> 18429 24032 */ 18430 24033 public Builder clearNoStandardDescriptorAccessor() { … … 18437 24040 private boolean deprecated_ ; 18438 24041 /** 18439 * <code>optional bool deprecated = 3 [default = false];</code>18440 *18441 24042 * <pre> 18442 24043 * Is this message deprecated? … … 18445 24046 * this is a formalization for deprecating messages. 18446 24047 * </pre> 18447 */ 18448 @Override 18449 public boolean hasDeprecated() { 24048 * 24049 * <code>optional bool deprecated = 3 [default = false];</code> 24050 */ 24051 public boolean hasDeprecated() { 18450 24052 return ((bitField0_ & 0x00000004) == 0x00000004); 18451 24053 } 18452 24054 /** 18453 * <code>optional bool deprecated = 3 [default = false];</code>18454 *18455 24055 * <pre> 18456 24056 * Is this message deprecated? … … 18459 24059 * this is a formalization for deprecating messages. 18460 24060 * </pre> 18461 */ 18462 @Override 18463 public boolean getDeprecated() { 24061 * 24062 * <code>optional bool deprecated = 3 [default = false];</code> 24063 */ 24064 public boolean getDeprecated() { 18464 24065 return deprecated_; 18465 24066 } 18466 24067 /** 18467 * <code>optional bool deprecated = 3 [default = false];</code>18468 *18469 24068 * <pre> 18470 24069 * Is this message deprecated? … … 18473 24072 * this is a formalization for deprecating messages. 18474 24073 * </pre> 24074 * 24075 * <code>optional bool deprecated = 3 [default = false];</code> 18475 24076 */ 18476 24077 public Builder setDeprecated(boolean value) { … … 18481 24082 } 18482 24083 /** 18483 * <code>optional bool deprecated = 3 [default = false];</code>18484 *18485 24084 * <pre> 18486 24085 * Is this message deprecated? … … 18489 24088 * this is a formalization for deprecating messages. 18490 24089 * </pre> 24090 * 24091 * <code>optional bool deprecated = 3 [default = false];</code> 18491 24092 */ 18492 24093 public Builder clearDeprecated() { … … 18497 24098 } 18498 24099 24100 private boolean mapEntry_ ; 24101 /** 24102 * <pre> 24103 * Whether the message is an automatically generated map entry type for the 24104 * maps field. 24105 * For maps fields: 24106 * map<KeyType, ValueType> map_field = 1; 24107 * The parsed descriptor looks like: 24108 * message MapFieldEntry { 24109 * option map_entry = true; 24110 * optional KeyType key = 1; 24111 * optional ValueType value = 2; 24112 * } 24113 * repeated MapFieldEntry map_field = 1; 24114 * Implementations may choose not to generate the map_entry=true message, but 24115 * use a native map in the target language to hold the keys and values. 24116 * The reflection APIs in such implementions still need to work as 24117 * if the field is a repeated message field. 24118 * NOTE: Do not set the option in .proto files. Always use the maps syntax 24119 * instead. The option should only be implicitly set by the proto compiler 24120 * parser. 24121 * </pre> 24122 * 24123 * <code>optional bool map_entry = 7;</code> 24124 */ 24125 public boolean hasMapEntry() { 24126 return ((bitField0_ & 0x00000008) == 0x00000008); 24127 } 24128 /** 24129 * <pre> 24130 * Whether the message is an automatically generated map entry type for the 24131 * maps field. 24132 * For maps fields: 24133 * map<KeyType, ValueType> map_field = 1; 24134 * The parsed descriptor looks like: 24135 * message MapFieldEntry { 24136 * option map_entry = true; 24137 * optional KeyType key = 1; 24138 * optional ValueType value = 2; 24139 * } 24140 * repeated MapFieldEntry map_field = 1; 24141 * Implementations may choose not to generate the map_entry=true message, but 24142 * use a native map in the target language to hold the keys and values. 24143 * The reflection APIs in such implementions still need to work as 24144 * if the field is a repeated message field. 24145 * NOTE: Do not set the option in .proto files. Always use the maps syntax 24146 * instead. The option should only be implicitly set by the proto compiler 24147 * parser. 24148 * </pre> 24149 * 24150 * <code>optional bool map_entry = 7;</code> 24151 */ 24152 public boolean getMapEntry() { 24153 return mapEntry_; 24154 } 24155 /** 24156 * <pre> 24157 * Whether the message is an automatically generated map entry type for the 24158 * maps field. 24159 * For maps fields: 24160 * map<KeyType, ValueType> map_field = 1; 24161 * The parsed descriptor looks like: 24162 * message MapFieldEntry { 24163 * option map_entry = true; 24164 * optional KeyType key = 1; 24165 * optional ValueType value = 2; 24166 * } 24167 * repeated MapFieldEntry map_field = 1; 24168 * Implementations may choose not to generate the map_entry=true message, but 24169 * use a native map in the target language to hold the keys and values. 24170 * The reflection APIs in such implementions still need to work as 24171 * if the field is a repeated message field. 24172 * NOTE: Do not set the option in .proto files. Always use the maps syntax 24173 * instead. The option should only be implicitly set by the proto compiler 24174 * parser. 24175 * </pre> 24176 * 24177 * <code>optional bool map_entry = 7;</code> 24178 */ 24179 public Builder setMapEntry(boolean value) { 24180 bitField0_ |= 0x00000008; 24181 mapEntry_ = value; 24182 onChanged(); 24183 return this; 24184 } 24185 /** 24186 * <pre> 24187 * Whether the message is an automatically generated map entry type for the 24188 * maps field. 24189 * For maps fields: 24190 * map<KeyType, ValueType> map_field = 1; 24191 * The parsed descriptor looks like: 24192 * message MapFieldEntry { 24193 * option map_entry = true; 24194 * optional KeyType key = 1; 24195 * optional ValueType value = 2; 24196 * } 24197 * repeated MapFieldEntry map_field = 1; 24198 * Implementations may choose not to generate the map_entry=true message, but 24199 * use a native map in the target language to hold the keys and values. 24200 * The reflection APIs in such implementions still need to work as 24201 * if the field is a repeated message field. 24202 * NOTE: Do not set the option in .proto files. Always use the maps syntax 24203 * instead. The option should only be implicitly set by the proto compiler 24204 * parser. 24205 * </pre> 24206 * 24207 * <code>optional bool map_entry = 7;</code> 24208 */ 24209 public Builder clearMapEntry() { 24210 bitField0_ = (bitField0_ & ~0x00000008); 24211 mapEntry_ = false; 24212 onChanged(); 24213 return this; 24214 } 24215 18499 24216 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = 18500 24217 java.util.Collections.emptyList(); 18501 24218 private void ensureUninterpretedOptionIsMutable() { 18502 if (!((bitField0_ & 0x000000 08) == 0x00000008)) {18503 uninterpretedOption_ = new java.util.ArrayList< >(uninterpretedOption_);18504 bitField0_ |= 0x000000 08;24219 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 24220 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); 24221 bitField0_ |= 0x00000010; 18505 24222 } 18506 24223 } 18507 24224 18508 private com.google.protobuf.RepeatedFieldBuilder <24225 private com.google.protobuf.RepeatedFieldBuilderV3< 18509 24226 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 18510 24227 18511 24228 /** 24229 * <pre> 24230 * The parser stores options it doesn't recognize here. See above. 24231 * </pre> 24232 * 18512 24233 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18513 * 18514 * <pre> 18515 * The parser stores options it doesn't recognize here. See above. 18516 * </pre> 18517 */ 18518 @Override 18519 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 24234 */ 24235 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 18520 24236 if (uninterpretedOptionBuilder_ == null) { 18521 24237 return java.util.Collections.unmodifiableList(uninterpretedOption_); … … 18525 24241 } 18526 24242 /** 24243 * <pre> 24244 * The parser stores options it doesn't recognize here. See above. 24245 * </pre> 24246 * 18527 24247 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18528 * 18529 * <pre> 18530 * The parser stores options it doesn't recognize here. See above. 18531 * </pre> 18532 */ 18533 @Override 18534 public int getUninterpretedOptionCount() { 24248 */ 24249 public int getUninterpretedOptionCount() { 18535 24250 if (uninterpretedOptionBuilder_ == null) { 18536 24251 return uninterpretedOption_.size(); … … 18540 24255 } 18541 24256 /** 24257 * <pre> 24258 * The parser stores options it doesn't recognize here. See above. 24259 * </pre> 24260 * 18542 24261 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18543 * 18544 * <pre> 18545 * The parser stores options it doesn't recognize here. See above. 18546 * </pre> 18547 */ 18548 @Override 18549 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 24262 */ 24263 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 18550 24264 if (uninterpretedOptionBuilder_ == null) { 18551 24265 return uninterpretedOption_.get(index); … … 18555 24269 } 18556 24270 /** 24271 * <pre> 24272 * The parser stores options it doesn't recognize here. See above. 24273 * </pre> 24274 * 18557 24275 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18558 *18559 * <pre>18560 * The parser stores options it doesn't recognize here. See above.18561 * </pre>18562 24276 */ 18563 24277 public Builder setUninterpretedOption( … … 18576 24290 } 18577 24291 /** 24292 * <pre> 24293 * The parser stores options it doesn't recognize here. See above. 24294 * </pre> 24295 * 18578 24296 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18579 *18580 * <pre>18581 * The parser stores options it doesn't recognize here. See above.18582 * </pre>18583 24297 */ 18584 24298 public Builder setUninterpretedOption( … … 18594 24308 } 18595 24309 /** 24310 * <pre> 24311 * The parser stores options it doesn't recognize here. See above. 24312 * </pre> 24313 * 18596 24314 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18597 *18598 * <pre>18599 * The parser stores options it doesn't recognize here. See above.18600 * </pre>18601 24315 */ 18602 24316 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 18614 24328 } 18615 24329 /** 24330 * <pre> 24331 * The parser stores options it doesn't recognize here. See above. 24332 * </pre> 24333 * 18616 24334 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18617 *18618 * <pre>18619 * The parser stores options it doesn't recognize here. See above.18620 * </pre>18621 24335 */ 18622 24336 public Builder addUninterpretedOption( … … 18635 24349 } 18636 24350 /** 24351 * <pre> 24352 * The parser stores options it doesn't recognize here. See above. 24353 * </pre> 24354 * 18637 24355 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18638 *18639 * <pre>18640 * The parser stores options it doesn't recognize here. See above.18641 * </pre>18642 24356 */ 18643 24357 public Builder addUninterpretedOption( … … 18653 24367 } 18654 24368 /** 24369 * <pre> 24370 * The parser stores options it doesn't recognize here. See above. 24371 * </pre> 24372 * 18655 24373 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18656 *18657 * <pre>18658 * The parser stores options it doesn't recognize here. See above.18659 * </pre>18660 24374 */ 18661 24375 public Builder addUninterpretedOption( … … 18671 24385 } 18672 24386 /** 24387 * <pre> 24388 * The parser stores options it doesn't recognize here. See above. 24389 * </pre> 24390 * 18673 24391 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18674 *18675 * <pre>18676 * The parser stores options it doesn't recognize here. See above.18677 * </pre>18678 24392 */ 18679 24393 public Builder addAllUninterpretedOption( … … 18690 24404 } 18691 24405 /** 24406 * <pre> 24407 * The parser stores options it doesn't recognize here. See above. 24408 * </pre> 24409 * 18692 24410 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18693 *18694 * <pre>18695 * The parser stores options it doesn't recognize here. See above.18696 * </pre>18697 24411 */ 18698 24412 public Builder clearUninterpretedOption() { 18699 24413 if (uninterpretedOptionBuilder_ == null) { 18700 24414 uninterpretedOption_ = java.util.Collections.emptyList(); 18701 bitField0_ = (bitField0_ & ~0x000000 08);24415 bitField0_ = (bitField0_ & ~0x00000010); 18702 24416 onChanged(); 18703 24417 } else { … … 18707 24421 } 18708 24422 /** 24423 * <pre> 24424 * The parser stores options it doesn't recognize here. See above. 24425 * </pre> 24426 * 18709 24427 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18710 *18711 * <pre>18712 * The parser stores options it doesn't recognize here. See above.18713 * </pre>18714 24428 */ 18715 24429 public Builder removeUninterpretedOption(int index) { … … 18724 24438 } 18725 24439 /** 24440 * <pre> 24441 * The parser stores options it doesn't recognize here. See above. 24442 * </pre> 24443 * 18726 24444 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18727 *18728 * <pre>18729 * The parser stores options it doesn't recognize here. See above.18730 * </pre>18731 24445 */ 18732 24446 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( … … 18735 24449 } 18736 24450 /** 24451 * <pre> 24452 * The parser stores options it doesn't recognize here. See above. 24453 * </pre> 24454 * 18737 24455 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18738 * 18739 * <pre> 18740 * The parser stores options it doesn't recognize here. See above. 18741 * </pre> 18742 */ 18743 @Override 18744 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 24456 */ 24457 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 18745 24458 int index) { 18746 24459 if (uninterpretedOptionBuilder_ == null) { … … 18750 24463 } 18751 24464 /** 24465 * <pre> 24466 * The parser stores options it doesn't recognize here. See above. 24467 * </pre> 24468 * 18752 24469 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18753 * 18754 * <pre> 18755 * The parser stores options it doesn't recognize here. See above. 18756 * </pre> 18757 */ 18758 @Override 18759 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 24470 */ 24471 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 18760 24472 getUninterpretedOptionOrBuilderList() { 18761 24473 if (uninterpretedOptionBuilder_ != null) { … … 18766 24478 } 18767 24479 /** 24480 * <pre> 24481 * The parser stores options it doesn't recognize here. See above. 24482 * </pre> 24483 * 18768 24484 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18769 *18770 * <pre>18771 * The parser stores options it doesn't recognize here. See above.18772 * </pre>18773 24485 */ 18774 24486 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { … … 18777 24489 } 18778 24490 /** 24491 * <pre> 24492 * The parser stores options it doesn't recognize here. See above. 24493 * </pre> 24494 * 18779 24495 * <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 24496 */ 18785 24497 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( … … 18789 24501 } 18790 24502 /** 24503 * <pre> 24504 * The parser stores options it doesn't recognize here. See above. 24505 * </pre> 24506 * 18791 24507 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 18792 * 18793 * <pre> 18794 * The parser stores options it doesn't recognize here. See above. 18795 * </pre> 18796 */ 18797 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 24508 */ 24509 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 18798 24510 getUninterpretedOptionBuilderList() { 18799 24511 return getUninterpretedOptionFieldBuilder().getBuilderList(); 18800 24512 } 18801 private com.google.protobuf.RepeatedFieldBuilder <18802 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 24513 private com.google.protobuf.RepeatedFieldBuilderV3< 24514 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 18803 24515 getUninterpretedOptionFieldBuilder() { 18804 24516 if (uninterpretedOptionBuilder_ == null) { 18805 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 24517 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 24518 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( 18806 24519 uninterpretedOption_, 18807 ((bitField0_ & 0x000000 08) == 0x00000008),24520 ((bitField0_ & 0x00000010) == 0x00000010), 18808 24521 getParentForChildren(), 18809 24522 isClean()); … … 18812 24525 return uninterpretedOptionBuilder_; 18813 24526 } 24527 public final Builder setUnknownFields( 24528 final com.google.protobuf.UnknownFieldSet unknownFields) { 24529 return super.setUnknownFields(unknownFields); 24530 } 24531 24532 public final Builder mergeUnknownFields( 24533 final com.google.protobuf.UnknownFieldSet unknownFields) { 24534 return super.mergeUnknownFields(unknownFields); 24535 } 24536 18814 24537 18815 24538 // @@protoc_insertion_point(builder_scope:google.protobuf.MessageOptions) 18816 24539 } 18817 24540 24541 // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions) 24542 private static final com.google.protobuf.DescriptorProtos.MessageOptions DEFAULT_INSTANCE; 18818 24543 static { 18819 defaultInstance = new MessageOptions(true); 18820 defaultInstance.initFields(); 18821 } 18822 18823 // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions) 24544 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.MessageOptions(); 24545 } 24546 24547 public static com.google.protobuf.DescriptorProtos.MessageOptions getDefaultInstance() { 24548 return DEFAULT_INSTANCE; 24549 } 24550 24551 @java.lang.Deprecated public static final com.google.protobuf.Parser<MessageOptions> 24552 PARSER = new com.google.protobuf.AbstractParser<MessageOptions>() { 24553 public MessageOptions parsePartialFrom( 24554 com.google.protobuf.CodedInputStream input, 24555 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 24556 throws com.google.protobuf.InvalidProtocolBufferException { 24557 return new MessageOptions(input, extensionRegistry); 24558 } 24559 }; 24560 24561 public static com.google.protobuf.Parser<MessageOptions> parser() { 24562 return PARSER; 24563 } 24564 24565 @java.lang.Override 24566 public com.google.protobuf.Parser<MessageOptions> getParserForType() { 24567 return PARSER; 24568 } 24569 24570 public com.google.protobuf.DescriptorProtos.MessageOptions getDefaultInstanceForType() { 24571 return DEFAULT_INSTANCE; 24572 } 24573 18824 24574 } 18825 24575 18826 24576 public interface FieldOptionsOrBuilder extends 18827 24577 // @@protoc_insertion_point(interface_extends:google.protobuf.FieldOptions) 18828 com.google.protobuf.GeneratedMessage .24578 com.google.protobuf.GeneratedMessageV3. 18829 24579 ExtendableMessageOrBuilder<FieldOptions> { 18830 24580 18831 24581 /** 18832 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code>18833 *18834 24582 * <pre> 18835 24583 * The ctype option instructs the C++ code generator to use a different … … 18838 24586 * release -- sorry, we'll try to include it in a future version! 18839 24587 * </pre> 24588 * 24589 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 18840 24590 */ 18841 24591 boolean hasCtype(); 18842 24592 /** 18843 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code>18844 *18845 24593 * <pre> 18846 24594 * The ctype option instructs the C++ code generator to use a different … … 18849 24597 * release -- sorry, we'll try to include it in a future version! 18850 24598 * </pre> 24599 * 24600 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 18851 24601 */ 18852 24602 com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype(); 18853 24603 18854 24604 /** 18855 * <code>optional bool packed = 2;</code>18856 *18857 24605 * <pre> 18858 24606 * The packed option can be enabled for repeated primitive fields to enable 18859 24607 * a more efficient representation on the wire. Rather than repeatedly 18860 24608 * writing the tag and type for each element, the entire array is encoded as 18861 * a single length-delimited blob. 24609 * a single length-delimited blob. In proto3, only explicit setting it to 24610 * false will avoid using packed encoding. 18862 24611 * </pre> 24612 * 24613 * <code>optional bool packed = 2;</code> 18863 24614 */ 18864 24615 boolean hasPacked(); 18865 24616 /** 18866 * <code>optional bool packed = 2;</code>18867 *18868 24617 * <pre> 18869 24618 * The packed option can be enabled for repeated primitive fields to enable 18870 24619 * a more efficient representation on the wire. Rather than repeatedly 18871 24620 * writing the tag and type for each element, the entire array is encoded as 18872 * a single length-delimited blob. 24621 * a single length-delimited blob. In proto3, only explicit setting it to 24622 * false will avoid using packed encoding. 18873 24623 * </pre> 24624 * 24625 * <code>optional bool packed = 2;</code> 18874 24626 */ 18875 24627 boolean getPacked(); 18876 24628 18877 24629 /** 18878 * <code>optional bool lazy = 5 [default = false];</code> 24630 * <pre> 24631 * The jstype option determines the JavaScript type used for values of the 24632 * field. The option is permitted only for 64 bit integral and fixed types 24633 * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING 24634 * is represented as JavaScript string, which avoids loss of precision that 24635 * can happen when a large value is converted to a floating point JavaScript. 24636 * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to 24637 * use the JavaScript "number" type. The behavior of the default option 24638 * JS_NORMAL is implementation dependent. 24639 * This option is an enum to permit additional types to be added, e.g. 24640 * goog.math.Integer. 24641 * </pre> 18879 24642 * 24643 * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> 24644 */ 24645 boolean hasJstype(); 24646 /** 24647 * <pre> 24648 * The jstype option determines the JavaScript type used for values of the 24649 * field. The option is permitted only for 64 bit integral and fixed types 24650 * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING 24651 * is represented as JavaScript string, which avoids loss of precision that 24652 * can happen when a large value is converted to a floating point JavaScript. 24653 * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to 24654 * use the JavaScript "number" type. The behavior of the default option 24655 * JS_NORMAL is implementation dependent. 24656 * This option is an enum to permit additional types to be added, e.g. 24657 * goog.math.Integer. 24658 * </pre> 24659 * 24660 * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> 24661 */ 24662 com.google.protobuf.DescriptorProtos.FieldOptions.JSType getJstype(); 24663 24664 /** 18880 24665 * <pre> 18881 24666 * Should this field be parsed lazily? Lazy applies only to message-type … … 18894 24679 * to require exclusive access. 18895 24680 * Note that implementations may choose not to check required fields within 18896 * a lazy sub-message. That is, calling IsInitialized() on the out her message24681 * a lazy sub-message. That is, calling IsInitialized() on the outer message 18897 24682 * may return true even if the inner message has missing required fields. 18898 24683 * This is necessary because otherwise the inner message would have to be … … 18904 24689 * been parsed. 18905 24690 * </pre> 24691 * 24692 * <code>optional bool lazy = 5 [default = false];</code> 18906 24693 */ 18907 24694 boolean hasLazy(); 18908 24695 /** 18909 * <code>optional bool lazy = 5 [default = false];</code>18910 *18911 24696 * <pre> 18912 24697 * Should this field be parsed lazily? Lazy applies only to message-type … … 18925 24710 * to require exclusive access. 18926 24711 * Note that implementations may choose not to check required fields within 18927 * a lazy sub-message. That is, calling IsInitialized() on the out her message24712 * a lazy sub-message. That is, calling IsInitialized() on the outer message 18928 24713 * may return true even if the inner message has missing required fields. 18929 24714 * This is necessary because otherwise the inner message would have to be … … 18935 24720 * been parsed. 18936 24721 * </pre> 24722 * 24723 * <code>optional bool lazy = 5 [default = false];</code> 18937 24724 */ 18938 24725 boolean getLazy(); 18939 24726 18940 24727 /** 18941 * <code>optional bool deprecated = 3 [default = false];</code>18942 *18943 24728 * <pre> 18944 24729 * Is this field deprecated? … … 18947 24732 * is a formalization for deprecating fields. 18948 24733 * </pre> 24734 * 24735 * <code>optional bool deprecated = 3 [default = false];</code> 18949 24736 */ 18950 24737 boolean hasDeprecated(); 18951 24738 /** 18952 * <code>optional bool deprecated = 3 [default = false];</code>18953 *18954 24739 * <pre> 18955 24740 * Is this field deprecated? … … 18958 24743 * is a formalization for deprecating fields. 18959 24744 * </pre> 24745 * 24746 * <code>optional bool deprecated = 3 [default = false];</code> 18960 24747 */ 18961 24748 boolean getDeprecated(); 18962 24749 18963 24750 /** 18964 * <code>optional string experimental_map_key = 9;</code>18965 *18966 * <pre>18967 * EXPERIMENTAL. DO NOT USE.18968 * For "map" fields, the name of the field in the enclosed type that18969 * is the key for this map. For example, suppose we have:18970 * message Item {18971 * required string name = 1;18972 * required string value = 2;18973 * }18974 * message Config {18975 * repeated Item items = 1 [experimental_map_key="name"];18976 * }18977 * In this situation, the map key for Item will be set to "name".18978 * TODO: Fully-implement this, then remove the "experimental_" prefix.18979 * </pre>18980 */18981 boolean hasExperimentalMapKey();18982 /**18983 * <code>optional string experimental_map_key = 9;</code>18984 *18985 * <pre>18986 * EXPERIMENTAL. DO NOT USE.18987 * For "map" fields, the name of the field in the enclosed type that18988 * is the key for this map. For example, suppose we have:18989 * message Item {18990 * required string name = 1;18991 * required string value = 2;18992 * }18993 * message Config {18994 * repeated Item items = 1 [experimental_map_key="name"];18995 * }18996 * In this situation, the map key for Item will be set to "name".18997 * TODO: Fully-implement this, then remove the "experimental_" prefix.18998 * </pre>18999 */19000 java.lang.String getExperimentalMapKey();19001 /**19002 * <code>optional string experimental_map_key = 9;</code>19003 *19004 * <pre>19005 * EXPERIMENTAL. DO NOT USE.19006 * For "map" fields, the name of the field in the enclosed type that19007 * is the key for this map. For example, suppose we have:19008 * message Item {19009 * required string name = 1;19010 * required string value = 2;19011 * }19012 * message Config {19013 * repeated Item items = 1 [experimental_map_key="name"];19014 * }19015 * In this situation, the map key for Item will be set to "name".19016 * TODO: Fully-implement this, then remove the "experimental_" prefix.19017 * </pre>19018 */19019 com.google.protobuf.ByteString19020 getExperimentalMapKeyBytes();19021 19022 /**19023 * <code>optional bool weak = 10 [default = false];</code>19024 *19025 24751 * <pre> 19026 24752 * For Google-internal migration only. Do not use. 19027 24753 * </pre> 24754 * 24755 * <code>optional bool weak = 10 [default = false];</code> 19028 24756 */ 19029 24757 boolean hasWeak(); 19030 24758 /** 19031 * <code>optional bool weak = 10 [default = false];</code>19032 *19033 24759 * <pre> 19034 24760 * For Google-internal migration only. Do not use. 19035 24761 * </pre> 24762 * 24763 * <code>optional bool weak = 10 [default = false];</code> 19036 24764 */ 19037 24765 boolean getWeak(); 19038 24766 19039 24767 /** 19040 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>19041 *19042 24768 * <pre> 19043 24769 * The parser stores options it doesn't recognize here. See above. 19044 24770 * </pre> 19045 */ 19046 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 24771 * 24772 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24773 */ 24774 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 19047 24775 getUninterpretedOptionList(); 19048 24776 /** 19049 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>19050 *19051 24777 * <pre> 19052 24778 * The parser stores options it doesn't recognize here. See above. 19053 24779 * </pre> 24780 * 24781 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19054 24782 */ 19055 24783 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 19056 24784 /** 19057 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>19058 *19059 24785 * <pre> 19060 24786 * The parser stores options it doesn't recognize here. See above. 19061 24787 * </pre> 24788 * 24789 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19062 24790 */ 19063 24791 int getUninterpretedOptionCount(); 19064 24792 /** 19065 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>19066 *19067 24793 * <pre> 19068 24794 * The parser stores options it doesn't recognize here. See above. 19069 24795 * </pre> 19070 */ 19071 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 24796 * 24797 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24798 */ 24799 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 19072 24800 getUninterpretedOptionOrBuilderList(); 19073 24801 /** 19074 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>19075 *19076 24802 * <pre> 19077 24803 * The parser stores options it doesn't recognize here. See above. 19078 24804 * </pre> 24805 * 24806 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 19079 24807 */ 19080 24808 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( … … 19084 24812 * Protobuf type {@code google.protobuf.FieldOptions} 19085 24813 */ 19086 public static final class FieldOptions extends19087 com.google.protobuf.GeneratedMessage .ExtendableMessage<24814 public static final class FieldOptions extends 24815 com.google.protobuf.GeneratedMessageV3.ExtendableMessage< 19088 24816 FieldOptions> implements 19089 24817 // @@protoc_insertion_point(message_implements:google.protobuf.FieldOptions) 19090 24818 FieldOptionsOrBuilder { 24819 private static final long serialVersionUID = 0L; 19091 24820 // Use FieldOptions.newBuilder() to construct. 19092 private FieldOptions(com.google.protobuf.GeneratedMessage .ExtendableBuilder<com.google.protobuf.DescriptorProtos.FieldOptions, ?> builder) {24821 private FieldOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.FieldOptions, ?> builder) { 19093 24822 super(builder); 19094 this.unknownFields = builder.getUnknownFields(); 19095 } 19096 private FieldOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 19097 19098 private static final FieldOptions defaultInstance; 19099 public static FieldOptions getDefaultInstance() { 19100 return defaultInstance; 19101 } 19102 19103 @Override 19104 public FieldOptions getDefaultInstanceForType() { 19105 return defaultInstance; 19106 } 19107 19108 private final com.google.protobuf.UnknownFieldSet unknownFields; 24823 } 24824 private FieldOptions() { 24825 ctype_ = 0; 24826 packed_ = false; 24827 jstype_ = 0; 24828 lazy_ = false; 24829 deprecated_ = false; 24830 weak_ = false; 24831 uninterpretedOption_ = java.util.Collections.emptyList(); 24832 } 24833 19109 24834 @java.lang.Override 19110 24835 public final com.google.protobuf.UnknownFieldSet 19111 24836 getUnknownFields() { 19112 24837 return this.unknownFields; 19113 24838 } … … 19116 24841 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 19117 24842 throws com.google.protobuf.InvalidProtocolBufferException { 19118 initFields();24843 this(); 19119 24844 int mutable_bitField0_ = 0; 19120 24845 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 19129 24854 break; 19130 24855 default: { 19131 if (!parseUnknownField( input, unknownFields,19132 24856 if (!parseUnknownField( 24857 input, unknownFields, extensionRegistry, tag)) { 19133 24858 done = true; 19134 24859 } … … 19142 24867 } else { 19143 24868 bitField0_ |= 0x00000001; 19144 ctype_ = value;24869 ctype_ = rawValue; 19145 24870 } 19146 24871 break; … … 19152 24877 } 19153 24878 case 24: { 19154 bitField0_ |= 0x000000 08;24879 bitField0_ |= 0x00000010; 19155 24880 deprecated_ = input.readBool(); 19156 24881 break; 19157 24882 } 19158 24883 case 40: { 19159 bitField0_ |= 0x0000000 4;24884 bitField0_ |= 0x00000008; 19160 24885 lazy_ = input.readBool(); 19161 24886 break; 19162 24887 } 19163 case 74: { 19164 com.google.protobuf.ByteString bs = input.readBytes(); 19165 bitField0_ |= 0x00000010; 19166 experimentalMapKey_ = bs; 24888 case 48: { 24889 int rawValue = input.readEnum(); 24890 com.google.protobuf.DescriptorProtos.FieldOptions.JSType value = com.google.protobuf.DescriptorProtos.FieldOptions.JSType.valueOf(rawValue); 24891 if (value == null) { 24892 unknownFields.mergeVarintField(6, rawValue); 24893 } else { 24894 bitField0_ |= 0x00000004; 24895 jstype_ = rawValue; 24896 } 19167 24897 break; 19168 24898 } … … 19174 24904 case 7994: { 19175 24905 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 19176 uninterpretedOption_ = new java.util.ArrayList< >();24906 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 19177 24907 mutable_bitField0_ |= 0x00000040; 19178 24908 } 19179 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 24909 uninterpretedOption_.add( 24910 input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 19180 24911 break; 19181 24912 } … … 19186 24917 } catch (java.io.IOException e) { 19187 24918 throw new com.google.protobuf.InvalidProtocolBufferException( 19188 e .getMessage()).setUnfinishedMessage(this);24919 e).setUnfinishedMessage(this); 19189 24920 } finally { 19190 24921 if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { … … 19200 24931 } 19201 24932 19202 @Override 19203 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 24933 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 19204 24934 internalGetFieldAccessorTable() { 19205 24935 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_fieldAccessorTable … … 19208 24938 } 19209 24939 19210 public static com.google.protobuf.Parser<FieldOptions> PARSER =19211 new com.google.protobuf.AbstractParser<FieldOptions>() {19212 @Override19213 public FieldOptions parsePartialFrom(19214 com.google.protobuf.CodedInputStream input,19215 com.google.protobuf.ExtensionRegistryLite extensionRegistry)19216 throws com.google.protobuf.InvalidProtocolBufferException {19217 return new FieldOptions(input, extensionRegistry);19218 }19219 };19220 19221 @java.lang.Override19222 public com.google.protobuf.Parser<FieldOptions> getParserForType() {19223 return PARSER;19224 }19225 19226 24940 /** 19227 24941 * Protobuf enum {@code google.protobuf.FieldOptions.CType} … … 19230 24944 implements com.google.protobuf.ProtocolMessageEnum { 19231 24945 /** 24946 * <pre> 24947 * Default mode. 24948 * </pre> 24949 * 19232 24950 * <code>STRING = 0;</code> 19233 * 24951 */ 24952 STRING(0), 24953 /** 24954 * <code>CORD = 1;</code> 24955 */ 24956 CORD(1), 24957 /** 24958 * <code>STRING_PIECE = 2;</code> 24959 */ 24960 STRING_PIECE(2), 24961 ; 24962 24963 /** 19234 24964 * <pre> 19235 24965 * Default mode. 19236 24966 * </pre> 19237 */ 19238 STRING(0, 0), 24967 * 24968 * <code>STRING = 0;</code> 24969 */ 24970 public static final int STRING_VALUE = 0; 19239 24971 /** 19240 24972 * <code>CORD = 1;</code> 19241 24973 */ 19242 CORD(1, 1),24974 public static final int CORD_VALUE = 1; 19243 24975 /** 19244 24976 * <code>STRING_PIECE = 2;</code> 19245 24977 */ 19246 STRING_PIECE(2, 2),19247 ;19248 19249 /**19250 * <code>STRING = 0;</code>19251 *19252 * <pre>19253 * Default mode.19254 * </pre>19255 */19256 public static final int STRING_VALUE = 0;19257 /**19258 * <code>CORD = 1;</code>19259 */19260 public static final int CORD_VALUE = 1;19261 /**19262 * <code>STRING_PIECE = 2;</code>19263 */19264 24978 public static final int STRING_PIECE_VALUE = 2; 19265 24979 19266 24980 19267 @Override 19268 public final int getNumber() { return value; } 19269 24981 public final int getNumber() { 24982 return value; 24983 } 24984 24985 /** 24986 * @deprecated Use {@link #forNumber(int)} instead. 24987 */ 24988 @java.lang.Deprecated 19270 24989 public static CType valueOf(int value) { 24990 return forNumber(value); 24991 } 24992 24993 public static CType forNumber(int value) { 19271 24994 switch (value) { 19272 24995 case 0: return STRING; … … 19281 25004 return internalValueMap; 19282 25005 } 19283 private static com.google.protobuf.Internal.EnumLiteMap<CType>19284 internalValueMap =25006 private static final com.google.protobuf.Internal.EnumLiteMap< 25007 CType> internalValueMap = 19285 25008 new com.google.protobuf.Internal.EnumLiteMap<CType>() { 19286 @Override 19287 public CType findValueByNumber(int number) { 19288 return CType.valueOf(number); 25009 public CType findValueByNumber(int number) { 25010 return CType.forNumber(number); 19289 25011 } 19290 25012 }; 19291 25013 19292 @Override 19293 public final com.google.protobuf.Descriptors.EnumValueDescriptor 25014 public final com.google.protobuf.Descriptors.EnumValueDescriptor 19294 25015 getValueDescriptor() { 19295 return getDescriptor().getValues().get(index); 19296 } 19297 @Override 19298 public final com.google.protobuf.Descriptors.EnumDescriptor 25016 return getDescriptor().getValues().get(ordinal()); 25017 } 25018 public final com.google.protobuf.Descriptors.EnumDescriptor 19299 25019 getDescriptorForType() { 19300 25020 return getDescriptor(); … … 19316 25036 } 19317 25037 19318 private final int index;19319 25038 private final int value; 19320 25039 19321 private CType(int index, int value) { 19322 this.index = index; 25040 private CType(int value) { 19323 25041 this.value = value; 19324 25042 } 19325 25043 19326 25044 // @@protoc_insertion_point(enum_scope:google.protobuf.FieldOptions.CType) 25045 } 25046 25047 /** 25048 * Protobuf enum {@code google.protobuf.FieldOptions.JSType} 25049 */ 25050 public enum JSType 25051 implements com.google.protobuf.ProtocolMessageEnum { 25052 /** 25053 * <pre> 25054 * Use the default type. 25055 * </pre> 25056 * 25057 * <code>JS_NORMAL = 0;</code> 25058 */ 25059 JS_NORMAL(0), 25060 /** 25061 * <pre> 25062 * Use JavaScript strings. 25063 * </pre> 25064 * 25065 * <code>JS_STRING = 1;</code> 25066 */ 25067 JS_STRING(1), 25068 /** 25069 * <pre> 25070 * Use JavaScript numbers. 25071 * </pre> 25072 * 25073 * <code>JS_NUMBER = 2;</code> 25074 */ 25075 JS_NUMBER(2), 25076 ; 25077 25078 /** 25079 * <pre> 25080 * Use the default type. 25081 * </pre> 25082 * 25083 * <code>JS_NORMAL = 0;</code> 25084 */ 25085 public static final int JS_NORMAL_VALUE = 0; 25086 /** 25087 * <pre> 25088 * Use JavaScript strings. 25089 * </pre> 25090 * 25091 * <code>JS_STRING = 1;</code> 25092 */ 25093 public static final int JS_STRING_VALUE = 1; 25094 /** 25095 * <pre> 25096 * Use JavaScript numbers. 25097 * </pre> 25098 * 25099 * <code>JS_NUMBER = 2;</code> 25100 */ 25101 public static final int JS_NUMBER_VALUE = 2; 25102 25103 25104 public final int getNumber() { 25105 return value; 25106 } 25107 25108 /** 25109 * @deprecated Use {@link #forNumber(int)} instead. 25110 */ 25111 @java.lang.Deprecated 25112 public static JSType valueOf(int value) { 25113 return forNumber(value); 25114 } 25115 25116 public static JSType forNumber(int value) { 25117 switch (value) { 25118 case 0: return JS_NORMAL; 25119 case 1: return JS_STRING; 25120 case 2: return JS_NUMBER; 25121 default: return null; 25122 } 25123 } 25124 25125 public static com.google.protobuf.Internal.EnumLiteMap<JSType> 25126 internalGetValueMap() { 25127 return internalValueMap; 25128 } 25129 private static final com.google.protobuf.Internal.EnumLiteMap< 25130 JSType> internalValueMap = 25131 new com.google.protobuf.Internal.EnumLiteMap<JSType>() { 25132 public JSType findValueByNumber(int number) { 25133 return JSType.forNumber(number); 25134 } 25135 }; 25136 25137 public final com.google.protobuf.Descriptors.EnumValueDescriptor 25138 getValueDescriptor() { 25139 return getDescriptor().getValues().get(ordinal()); 25140 } 25141 public final com.google.protobuf.Descriptors.EnumDescriptor 25142 getDescriptorForType() { 25143 return getDescriptor(); 25144 } 25145 public static final com.google.protobuf.Descriptors.EnumDescriptor 25146 getDescriptor() { 25147 return com.google.protobuf.DescriptorProtos.FieldOptions.getDescriptor().getEnumTypes().get(1); 25148 } 25149 25150 private static final JSType[] VALUES = values(); 25151 25152 public static JSType valueOf( 25153 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 25154 if (desc.getType() != getDescriptor()) { 25155 throw new java.lang.IllegalArgumentException( 25156 "EnumValueDescriptor is not for this type."); 25157 } 25158 return VALUES[desc.getIndex()]; 25159 } 25160 25161 private final int value; 25162 25163 private JSType(int value) { 25164 this.value = value; 25165 } 25166 25167 // @@protoc_insertion_point(enum_scope:google.protobuf.FieldOptions.JSType) 19327 25168 } 19328 25169 19329 25170 private int bitField0_; 19330 25171 public static final int CTYPE_FIELD_NUMBER = 1; 19331 private com.google.protobuf.DescriptorProtos.FieldOptions.CType ctype_; 19332 /** 19333 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 19334 * 25172 private int ctype_; 25173 /** 19335 25174 * <pre> 19336 25175 * The ctype option instructs the C++ code generator to use a different … … 19339 25178 * release -- sorry, we'll try to include it in a future version! 19340 25179 * </pre> 19341 */ 19342 @Override 19343 public boolean hasCtype() { 25180 * 25181 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 25182 */ 25183 public boolean hasCtype() { 19344 25184 return ((bitField0_ & 0x00000001) == 0x00000001); 19345 25185 } 19346 25186 /** 19347 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code>19348 *19349 25187 * <pre> 19350 25188 * The ctype option instructs the C++ code generator to use a different … … 19353 25191 * release -- sorry, we'll try to include it in a future version! 19354 25192 * </pre> 19355 */ 19356 @Override 19357 public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { 19358 return ctype_; 25193 * 25194 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 25195 */ 25196 public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { 25197 com.google.protobuf.DescriptorProtos.FieldOptions.CType result = com.google.protobuf.DescriptorProtos.FieldOptions.CType.valueOf(ctype_); 25198 return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING : result; 19359 25199 } 19360 25200 … … 19362 25202 private boolean packed_; 19363 25203 /** 19364 * <code>optional bool packed = 2;</code>19365 *19366 25204 * <pre> 19367 25205 * The packed option can be enabled for repeated primitive fields to enable 19368 25206 * a more efficient representation on the wire. Rather than repeatedly 19369 25207 * writing the tag and type for each element, the entire array is encoded as 19370 * a single length-delimited blob. 25208 * a single length-delimited blob. In proto3, only explicit setting it to 25209 * false will avoid using packed encoding. 19371 25210 * </pre> 19372 */ 19373 @Override 19374 public boolean hasPacked() { 25211 * 25212 * <code>optional bool packed = 2;</code> 25213 */ 25214 public boolean hasPacked() { 19375 25215 return ((bitField0_ & 0x00000002) == 0x00000002); 19376 25216 } 19377 25217 /** 19378 * <code>optional bool packed = 2;</code>19379 *19380 25218 * <pre> 19381 25219 * The packed option can be enabled for repeated primitive fields to enable 19382 25220 * a more efficient representation on the wire. Rather than repeatedly 19383 25221 * writing the tag and type for each element, the entire array is encoded as 19384 * a single length-delimited blob. 25222 * a single length-delimited blob. In proto3, only explicit setting it to 25223 * false will avoid using packed encoding. 19385 25224 * </pre> 19386 */ 19387 @Override 19388 public boolean getPacked() { 25225 * 25226 * <code>optional bool packed = 2;</code> 25227 */ 25228 public boolean getPacked() { 19389 25229 return packed_; 25230 } 25231 25232 public static final int JSTYPE_FIELD_NUMBER = 6; 25233 private int jstype_; 25234 /** 25235 * <pre> 25236 * The jstype option determines the JavaScript type used for values of the 25237 * field. The option is permitted only for 64 bit integral and fixed types 25238 * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING 25239 * is represented as JavaScript string, which avoids loss of precision that 25240 * can happen when a large value is converted to a floating point JavaScript. 25241 * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to 25242 * use the JavaScript "number" type. The behavior of the default option 25243 * JS_NORMAL is implementation dependent. 25244 * This option is an enum to permit additional types to be added, e.g. 25245 * goog.math.Integer. 25246 * </pre> 25247 * 25248 * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> 25249 */ 25250 public boolean hasJstype() { 25251 return ((bitField0_ & 0x00000004) == 0x00000004); 25252 } 25253 /** 25254 * <pre> 25255 * The jstype option determines the JavaScript type used for values of the 25256 * field. The option is permitted only for 64 bit integral and fixed types 25257 * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING 25258 * is represented as JavaScript string, which avoids loss of precision that 25259 * can happen when a large value is converted to a floating point JavaScript. 25260 * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to 25261 * use the JavaScript "number" type. The behavior of the default option 25262 * JS_NORMAL is implementation dependent. 25263 * This option is an enum to permit additional types to be added, e.g. 25264 * goog.math.Integer. 25265 * </pre> 25266 * 25267 * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> 25268 */ 25269 public com.google.protobuf.DescriptorProtos.FieldOptions.JSType getJstype() { 25270 com.google.protobuf.DescriptorProtos.FieldOptions.JSType result = com.google.protobuf.DescriptorProtos.FieldOptions.JSType.valueOf(jstype_); 25271 return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.JSType.JS_NORMAL : result; 19390 25272 } 19391 25273 … … 19393 25275 private boolean lazy_; 19394 25276 /** 19395 * <code>optional bool lazy = 5 [default = false];</code>19396 *19397 25277 * <pre> 19398 25278 * Should this field be parsed lazily? Lazy applies only to message-type … … 19411 25291 * to require exclusive access. 19412 25292 * Note that implementations may choose not to check required fields within 19413 * a lazy sub-message. That is, calling IsInitialized() on the out her message25293 * a lazy sub-message. That is, calling IsInitialized() on the outer message 19414 25294 * may return true even if the inner message has missing required fields. 19415 25295 * This is necessary because otherwise the inner message would have to be … … 19421 25301 * been parsed. 19422 25302 * </pre> 19423 */ 19424 @Override 19425 public boolean hasLazy() { 19426 return ((bitField0_ & 0x00000004) == 0x00000004); 19427 } 19428 /** 25303 * 19429 25304 * <code>optional bool lazy = 5 [default = false];</code> 19430 * 25305 */ 25306 public boolean hasLazy() { 25307 return ((bitField0_ & 0x00000008) == 0x00000008); 25308 } 25309 /** 19431 25310 * <pre> 19432 25311 * Should this field be parsed lazily? Lazy applies only to message-type … … 19445 25324 * to require exclusive access. 19446 25325 * Note that implementations may choose not to check required fields within 19447 * a lazy sub-message. That is, calling IsInitialized() on the out her message25326 * a lazy sub-message. That is, calling IsInitialized() on the outer message 19448 25327 * may return true even if the inner message has missing required fields. 19449 25328 * This is necessary because otherwise the inner message would have to be … … 19455 25334 * been parsed. 19456 25335 * </pre> 19457 */ 19458 @Override 19459 public boolean getLazy() { 25336 * 25337 * <code>optional bool lazy = 5 [default = false];</code> 25338 */ 25339 public boolean getLazy() { 19460 25340 return lazy_; 19461 25341 } … … 19464 25344 private boolean deprecated_; 19465 25345 /** 19466 * <code>optional bool deprecated = 3 [default = false];</code>19467 *19468 25346 * <pre> 19469 25347 * Is this field deprecated? … … 19472 25350 * is a formalization for deprecating fields. 19473 25351 * </pre> 19474 */ 19475 @Override 19476 public boolean hasDeprecated() { 19477 return ((bitField0_ & 0x00000008) == 0x00000008); 19478 } 19479 /** 25352 * 19480 25353 * <code>optional bool deprecated = 3 [default = false];</code> 19481 * 25354 */ 25355 public boolean hasDeprecated() { 25356 return ((bitField0_ & 0x00000010) == 0x00000010); 25357 } 25358 /** 19482 25359 * <pre> 19483 25360 * Is this field deprecated? … … 19486 25363 * is a formalization for deprecating fields. 19487 25364 * </pre> 19488 */ 19489 @Override 19490 public boolean getDeprecated() { 25365 * 25366 * <code>optional bool deprecated = 3 [default = false];</code> 25367 */ 25368 public boolean getDeprecated() { 19491 25369 return deprecated_; 19492 }19493 19494 public static final int EXPERIMENTAL_MAP_KEY_FIELD_NUMBER = 9;19495 private java.lang.Object experimentalMapKey_;19496 /**19497 * <code>optional string experimental_map_key = 9;</code>19498 *19499 * <pre>19500 * EXPERIMENTAL. DO NOT USE.19501 * For "map" fields, the name of the field in the enclosed type that19502 * is the key for this map. For example, suppose we have:19503 * message Item {19504 * required string name = 1;19505 * required string value = 2;19506 * }19507 * message Config {19508 * repeated Item items = 1 [experimental_map_key="name"];19509 * }19510 * In this situation, the map key for Item will be set to "name".19511 * TODO: Fully-implement this, then remove the "experimental_" prefix.19512 * </pre>19513 */19514 @Override19515 public boolean hasExperimentalMapKey() {19516 return ((bitField0_ & 0x00000010) == 0x00000010);19517 }19518 /**19519 * <code>optional string experimental_map_key = 9;</code>19520 *19521 * <pre>19522 * EXPERIMENTAL. DO NOT USE.19523 * For "map" fields, the name of the field in the enclosed type that19524 * is the key for this map. For example, suppose we have:19525 * message Item {19526 * required string name = 1;19527 * required string value = 2;19528 * }19529 * message Config {19530 * repeated Item items = 1 [experimental_map_key="name"];19531 * }19532 * In this situation, the map key for Item will be set to "name".19533 * TODO: Fully-implement this, then remove the "experimental_" prefix.19534 * </pre>19535 */19536 @Override19537 public java.lang.String getExperimentalMapKey() {19538 java.lang.Object ref = experimentalMapKey_;19539 if (ref instanceof java.lang.String) {19540 return (java.lang.String) ref;19541 } else {19542 com.google.protobuf.ByteString bs =19543 (com.google.protobuf.ByteString) ref;19544 java.lang.String s = bs.toStringUtf8();19545 if (bs.isValidUtf8()) {19546 experimentalMapKey_ = s;19547 }19548 return s;19549 }19550 }19551 /**19552 * <code>optional string experimental_map_key = 9;</code>19553 *19554 * <pre>19555 * EXPERIMENTAL. DO NOT USE.19556 * For "map" fields, the name of the field in the enclosed type that19557 * is the key for this map. For example, suppose we have:19558 * message Item {19559 * required string name = 1;19560 * required string value = 2;19561 * }19562 * message Config {19563 * repeated Item items = 1 [experimental_map_key="name"];19564 * }19565 * In this situation, the map key for Item will be set to "name".19566 * TODO: Fully-implement this, then remove the "experimental_" prefix.19567 * </pre>19568 */19569 @Override19570 public com.google.protobuf.ByteString19571 getExperimentalMapKeyBytes() {19572 java.lang.Object ref = experimentalMapKey_;19573 if (ref instanceof java.lang.String) {19574 com.google.protobuf.ByteString b =19575 com.google.protobuf.ByteString.copyFromUtf8(19576 (java.lang.String) ref);19577 experimentalMapKey_ = b;19578 return b;19579 } else {19580 return (com.google.protobuf.ByteString) ref;19581 }19582 25370 } 19583 25371 … … 19585 25373 private boolean weak_; 19586 25374 /** 19587 * <code>optional bool weak = 10 [default = false];</code>19588 *19589 25375 * <pre> 19590 25376 * For Google-internal migration only. Do not use. 19591 25377 * </pre> 19592 */ 19593 @Override 19594 public boolean hasWeak() { 25378 * 25379 * <code>optional bool weak = 10 [default = false];</code> 25380 */ 25381 public boolean hasWeak() { 19595 25382 return ((bitField0_ & 0x00000020) == 0x00000020); 19596 25383 } 19597 25384 /** 19598 * <code>optional bool weak = 10 [default = false];</code>19599 *19600 25385 * <pre> 19601 25386 * For Google-internal migration only. Do not use. 19602 25387 * </pre> 19603 */ 19604 @Override 19605 public boolean getWeak() { 25388 * 25389 * <code>optional bool weak = 10 [default = false];</code> 25390 */ 25391 public boolean getWeak() { 19606 25392 return weak_; 19607 25393 } … … 19610 25396 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 19611 25397 /** 19612 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>19613 *19614 25398 * <pre> 19615 25399 * The parser stores options it doesn't recognize here. See above. 19616 25400 * </pre> 19617 */ 19618 @Override 19619 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 25401 * 25402 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 25403 */ 25404 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 19620 25405 return uninterpretedOption_; 19621 25406 } 19622 25407 /** 19623 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>19624 *19625 25408 * <pre> 19626 25409 * The parser stores options it doesn't recognize here. See above. 19627 25410 * </pre> 19628 */ 19629 @Override 19630 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 25411 * 25412 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 25413 */ 25414 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 19631 25415 getUninterpretedOptionOrBuilderList() { 19632 25416 return uninterpretedOption_; 19633 25417 } 19634 25418 /** 19635 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>19636 *19637 25419 * <pre> 19638 25420 * The parser stores options it doesn't recognize here. See above. 19639 25421 * </pre> 19640 */ 19641 @Override 19642 public int getUninterpretedOptionCount() { 25422 * 25423 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 25424 */ 25425 public int getUninterpretedOptionCount() { 19643 25426 return uninterpretedOption_.size(); 19644 25427 } 19645 25428 /** 19646 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>19647 *19648 25429 * <pre> 19649 25430 * The parser stores options it doesn't recognize here. See above. 19650 25431 * </pre> 19651 */ 19652 @Override 19653 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 25432 * 25433 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 25434 */ 25435 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 19654 25436 return uninterpretedOption_.get(index); 19655 25437 } 19656 25438 /** 19657 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>19658 *19659 25439 * <pre> 19660 25440 * The parser stores options it doesn't recognize here. See above. 19661 25441 * </pre> 19662 */ 19663 @Override 19664 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 25442 * 25443 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 25444 */ 25445 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 19665 25446 int index) { 19666 25447 return uninterpretedOption_.get(index); 19667 25448 } 19668 25449 19669 private void initFields() {19670 ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING;19671 packed_ = false;19672 lazy_ = false;19673 deprecated_ = false;19674 experimentalMapKey_ = "";19675 weak_ = false;19676 uninterpretedOption_ = java.util.Collections.emptyList();19677 }19678 25450 private byte memoizedIsInitialized = -1; 19679 @Override 19680 public final boolean isInitialized() { 25451 public final boolean isInitialized() { 19681 25452 byte isInitialized = memoizedIsInitialized; 19682 25453 if (isInitialized == 1) return true; … … 19697 25468 } 19698 25469 19699 @Override 19700 public void writeTo(com.google.protobuf.CodedOutputStream output) 25470 public void writeTo(com.google.protobuf.CodedOutputStream output) 19701 25471 throws java.io.IOException { 19702 getSerializedSize(); 19703 com.google.protobuf.GeneratedMessage 19704 .ExtendableMessage<com.google.protobuf.DescriptorProtos.FieldOptions>.ExtensionWriter extensionWriter = 19705 newExtensionWriter(); 25472 com.google.protobuf.GeneratedMessageV3 25473 .ExtendableMessage<com.google.protobuf.DescriptorProtos.FieldOptions>.ExtensionWriter 25474 extensionWriter = newExtensionWriter(); 19706 25475 if (((bitField0_ & 0x00000001) == 0x00000001)) { 19707 output.writeEnum(1, ctype_ .getNumber());25476 output.writeEnum(1, ctype_); 19708 25477 } 19709 25478 if (((bitField0_ & 0x00000002) == 0x00000002)) { 19710 25479 output.writeBool(2, packed_); 19711 25480 } 25481 if (((bitField0_ & 0x00000010) == 0x00000010)) { 25482 output.writeBool(3, deprecated_); 25483 } 19712 25484 if (((bitField0_ & 0x00000008) == 0x00000008)) { 19713 output.writeBool( 3, deprecated_);25485 output.writeBool(5, lazy_); 19714 25486 } 19715 25487 if (((bitField0_ & 0x00000004) == 0x00000004)) { 19716 output.writeBool(5, lazy_); 19717 } 19718 if (((bitField0_ & 0x00000010) == 0x00000010)) { 19719 output.writeBytes(9, getExperimentalMapKeyBytes()); 25488 output.writeEnum(6, jstype_); 19720 25489 } 19721 25490 if (((bitField0_ & 0x00000020) == 0x00000020)) { … … 19726 25495 } 19727 25496 extensionWriter.writeUntil(536870912, output); 19728 getUnknownFields().writeTo(output); 19729 } 19730 19731 private int memoizedSerializedSize = -1; 19732 @Override 19733 public int getSerializedSize() { 19734 int size = memoizedSerializedSize; 25497 unknownFields.writeTo(output); 25498 } 25499 25500 public int getSerializedSize() { 25501 int size = memoizedSize; 19735 25502 if (size != -1) return size; 19736 25503 … … 19738 25505 if (((bitField0_ & 0x00000001) == 0x00000001)) { 19739 25506 size += com.google.protobuf.CodedOutputStream 19740 .computeEnumSize(1, ctype_ .getNumber());25507 .computeEnumSize(1, ctype_); 19741 25508 } 19742 25509 if (((bitField0_ & 0x00000002) == 0x00000002)) { … … 19744 25511 .computeBoolSize(2, packed_); 19745 25512 } 25513 if (((bitField0_ & 0x00000010) == 0x00000010)) { 25514 size += com.google.protobuf.CodedOutputStream 25515 .computeBoolSize(3, deprecated_); 25516 } 19746 25517 if (((bitField0_ & 0x00000008) == 0x00000008)) { 19747 25518 size += com.google.protobuf.CodedOutputStream 19748 .computeBoolSize( 3, deprecated_);25519 .computeBoolSize(5, lazy_); 19749 25520 } 19750 25521 if (((bitField0_ & 0x00000004) == 0x00000004)) { 19751 25522 size += com.google.protobuf.CodedOutputStream 19752 .computeBoolSize(5, lazy_); 19753 } 19754 if (((bitField0_ & 0x00000010) == 0x00000010)) { 19755 size += com.google.protobuf.CodedOutputStream 19756 .computeBytesSize(9, getExperimentalMapKeyBytes()); 25523 .computeEnumSize(6, jstype_); 19757 25524 } 19758 25525 if (((bitField0_ & 0x00000020) == 0x00000020)) { … … 19765 25532 } 19766 25533 size += extensionsSerializedSize(); 19767 size += getUnknownFields().getSerializedSize();19768 memoizedS erializedSize = size;25534 size += unknownFields.getSerializedSize(); 25535 memoizedSize = size; 19769 25536 return size; 19770 25537 } 19771 25538 19772 private static final long serialVersionUID = 0L;19773 25539 @java.lang.Override 19774 protected java.lang.Object writeReplace() 19775 throws java.io.ObjectStreamException { 19776 return super.writeReplace(); 19777 } 19778 25540 public boolean equals(final java.lang.Object obj) { 25541 if (obj == this) { 25542 return true; 25543 } 25544 if (!(obj instanceof com.google.protobuf.DescriptorProtos.FieldOptions)) { 25545 return super.equals(obj); 25546 } 25547 com.google.protobuf.DescriptorProtos.FieldOptions other = (com.google.protobuf.DescriptorProtos.FieldOptions) obj; 25548 25549 boolean result = true; 25550 result = result && (hasCtype() == other.hasCtype()); 25551 if (hasCtype()) { 25552 result = result && ctype_ == other.ctype_; 25553 } 25554 result = result && (hasPacked() == other.hasPacked()); 25555 if (hasPacked()) { 25556 result = result && (getPacked() 25557 == other.getPacked()); 25558 } 25559 result = result && (hasJstype() == other.hasJstype()); 25560 if (hasJstype()) { 25561 result = result && jstype_ == other.jstype_; 25562 } 25563 result = result && (hasLazy() == other.hasLazy()); 25564 if (hasLazy()) { 25565 result = result && (getLazy() 25566 == other.getLazy()); 25567 } 25568 result = result && (hasDeprecated() == other.hasDeprecated()); 25569 if (hasDeprecated()) { 25570 result = result && (getDeprecated() 25571 == other.getDeprecated()); 25572 } 25573 result = result && (hasWeak() == other.hasWeak()); 25574 if (hasWeak()) { 25575 result = result && (getWeak() 25576 == other.getWeak()); 25577 } 25578 result = result && getUninterpretedOptionList() 25579 .equals(other.getUninterpretedOptionList()); 25580 result = result && unknownFields.equals(other.unknownFields); 25581 result = result && 25582 getExtensionFields().equals(other.getExtensionFields()); 25583 return result; 25584 } 25585 25586 @java.lang.Override 25587 public int hashCode() { 25588 if (memoizedHashCode != 0) { 25589 return memoizedHashCode; 25590 } 25591 int hash = 41; 25592 hash = (19 * hash) + getDescriptor().hashCode(); 25593 if (hasCtype()) { 25594 hash = (37 * hash) + CTYPE_FIELD_NUMBER; 25595 hash = (53 * hash) + ctype_; 25596 } 25597 if (hasPacked()) { 25598 hash = (37 * hash) + PACKED_FIELD_NUMBER; 25599 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 25600 getPacked()); 25601 } 25602 if (hasJstype()) { 25603 hash = (37 * hash) + JSTYPE_FIELD_NUMBER; 25604 hash = (53 * hash) + jstype_; 25605 } 25606 if (hasLazy()) { 25607 hash = (37 * hash) + LAZY_FIELD_NUMBER; 25608 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 25609 getLazy()); 25610 } 25611 if (hasDeprecated()) { 25612 hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; 25613 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 25614 getDeprecated()); 25615 } 25616 if (hasWeak()) { 25617 hash = (37 * hash) + WEAK_FIELD_NUMBER; 25618 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 25619 getWeak()); 25620 } 25621 if (getUninterpretedOptionCount() > 0) { 25622 hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; 25623 hash = (53 * hash) + getUninterpretedOptionList().hashCode(); 25624 } 25625 hash = hashFields(hash, getExtensionFields()); 25626 hash = (29 * hash) + unknownFields.hashCode(); 25627 memoizedHashCode = hash; 25628 return hash; 25629 } 25630 25631 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 25632 java.nio.ByteBuffer data) 25633 throws com.google.protobuf.InvalidProtocolBufferException { 25634 return PARSER.parseFrom(data); 25635 } 25636 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 25637 java.nio.ByteBuffer data, 25638 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 25639 throws com.google.protobuf.InvalidProtocolBufferException { 25640 return PARSER.parseFrom(data, extensionRegistry); 25641 } 19779 25642 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 19780 25643 com.google.protobuf.ByteString data) … … 19800 25663 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom(java.io.InputStream input) 19801 25664 throws java.io.IOException { 19802 return PARSER.parseFrom(input); 25665 return com.google.protobuf.GeneratedMessageV3 25666 .parseWithIOException(PARSER, input); 19803 25667 } 19804 25668 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( … … 19806 25670 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 19807 25671 throws java.io.IOException { 19808 return PARSER.parseFrom(input, extensionRegistry); 25672 return com.google.protobuf.GeneratedMessageV3 25673 .parseWithIOException(PARSER, input, extensionRegistry); 19809 25674 } 19810 25675 public static com.google.protobuf.DescriptorProtos.FieldOptions parseDelimitedFrom(java.io.InputStream input) 19811 25676 throws java.io.IOException { 19812 return PARSER.parseDelimitedFrom(input); 25677 return com.google.protobuf.GeneratedMessageV3 25678 .parseDelimitedWithIOException(PARSER, input); 19813 25679 } 19814 25680 public static com.google.protobuf.DescriptorProtos.FieldOptions parseDelimitedFrom( … … 19816 25682 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 19817 25683 throws java.io.IOException { 19818 return PARSER.parseDelimitedFrom(input, extensionRegistry); 25684 return com.google.protobuf.GeneratedMessageV3 25685 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 19819 25686 } 19820 25687 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( 19821 25688 com.google.protobuf.CodedInputStream input) 19822 25689 throws java.io.IOException { 19823 return PARSER.parseFrom(input); 25690 return com.google.protobuf.GeneratedMessageV3 25691 .parseWithIOException(PARSER, input); 19824 25692 } 19825 25693 public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( … … 19827 25695 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 19828 25696 throws java.io.IOException { 19829 return PARSER.parseFrom(input, extensionRegistry); 19830 } 19831 19832 public static Builder newBuilder() { return Builder.create(); } 19833 @Override 19834 public Builder newBuilderForType() { return newBuilder(); } 25697 return com.google.protobuf.GeneratedMessageV3 25698 .parseWithIOException(PARSER, input, extensionRegistry); 25699 } 25700 25701 public Builder newBuilderForType() { return newBuilder(); } 25702 public static Builder newBuilder() { 25703 return DEFAULT_INSTANCE.toBuilder(); 25704 } 19835 25705 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FieldOptions prototype) { 19836 return newBuilder().mergeFrom(prototype); 19837 } 19838 @Override 19839 public Builder toBuilder() { return newBuilder(this); } 25706 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 25707 } 25708 public Builder toBuilder() { 25709 return this == DEFAULT_INSTANCE 25710 ? new Builder() : new Builder().mergeFrom(this); 25711 } 19840 25712 19841 25713 @java.lang.Override 19842 25714 protected Builder newBuilderForType( 19843 com.google.protobuf.GeneratedMessage .BuilderParent parent) {25715 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 19844 25716 Builder builder = new Builder(parent); 19845 25717 return builder; … … 19849 25721 */ 19850 25722 public static final class Builder extends 19851 com.google.protobuf.GeneratedMessage .ExtendableBuilder<25723 com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< 19852 25724 com.google.protobuf.DescriptorProtos.FieldOptions, Builder> implements 19853 25725 // @@protoc_insertion_point(builder_implements:google.protobuf.FieldOptions) … … 19858 25730 } 19859 25731 19860 @Override 19861 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 25732 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 19862 25733 internalGetFieldAccessorTable() { 19863 25734 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_fieldAccessorTable … … 19872 25743 19873 25744 private Builder( 19874 com.google.protobuf.GeneratedMessage .BuilderParent parent) {25745 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 19875 25746 super(parent); 19876 25747 maybeForceBuilderInitialization(); 19877 25748 } 19878 25749 private void maybeForceBuilderInitialization() { 19879 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 25750 if (com.google.protobuf.GeneratedMessageV3 25751 .alwaysUseFieldBuilders) { 19880 25752 getUninterpretedOptionFieldBuilder(); 19881 25753 } 19882 25754 } 19883 private static Builder create() { 19884 return new Builder(); 19885 } 19886 19887 @Override 19888 public Builder clear() { 25755 public Builder clear() { 19889 25756 super.clear(); 19890 ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING;25757 ctype_ = 0; 19891 25758 bitField0_ = (bitField0_ & ~0x00000001); 19892 25759 packed_ = false; 19893 25760 bitField0_ = (bitField0_ & ~0x00000002); 25761 jstype_ = 0; 25762 bitField0_ = (bitField0_ & ~0x00000004); 19894 25763 lazy_ = false; 19895 bitField0_ = (bitField0_ & ~0x0000000 4);25764 bitField0_ = (bitField0_ & ~0x00000008); 19896 25765 deprecated_ = false; 19897 bitField0_ = (bitField0_ & ~0x00000008);19898 experimentalMapKey_ = "";19899 25766 bitField0_ = (bitField0_ & ~0x00000010); 19900 25767 weak_ = false; … … 19909 25776 } 19910 25777 19911 @Override 19912 public Builder clone() { 19913 return create().mergeFrom(buildPartial()); 19914 } 19915 19916 @Override 19917 public com.google.protobuf.Descriptors.Descriptor 25778 public com.google.protobuf.Descriptors.Descriptor 19918 25779 getDescriptorForType() { 19919 25780 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldOptions_descriptor; 19920 25781 } 19921 25782 19922 @Override 19923 public com.google.protobuf.DescriptorProtos.FieldOptions getDefaultInstanceForType() { 25783 public com.google.protobuf.DescriptorProtos.FieldOptions getDefaultInstanceForType() { 19924 25784 return com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance(); 19925 25785 } 19926 25786 19927 @Override 19928 public com.google.protobuf.DescriptorProtos.FieldOptions build() { 25787 public com.google.protobuf.DescriptorProtos.FieldOptions build() { 19929 25788 com.google.protobuf.DescriptorProtos.FieldOptions result = buildPartial(); 19930 25789 if (!result.isInitialized()) { … … 19934 25793 } 19935 25794 19936 @Override 19937 public com.google.protobuf.DescriptorProtos.FieldOptions buildPartial() { 25795 public com.google.protobuf.DescriptorProtos.FieldOptions buildPartial() { 19938 25796 com.google.protobuf.DescriptorProtos.FieldOptions result = new com.google.protobuf.DescriptorProtos.FieldOptions(this); 19939 25797 int from_bitField0_ = bitField0_; … … 19950 25808 to_bitField0_ |= 0x00000004; 19951 25809 } 19952 result. lazy_ = lazy_;25810 result.jstype_ = jstype_; 19953 25811 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 19954 25812 to_bitField0_ |= 0x00000008; 19955 25813 } 19956 result. deprecated_ = deprecated_;25814 result.lazy_ = lazy_; 19957 25815 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 19958 25816 to_bitField0_ |= 0x00000010; 19959 25817 } 19960 result. experimentalMapKey_ = experimentalMapKey_;25818 result.deprecated_ = deprecated_; 19961 25819 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 19962 25820 to_bitField0_ |= 0x00000020; … … 19977 25835 } 19978 25836 19979 @Override 19980 public Builder mergeFrom(com.google.protobuf.Message other) { 25837 public Builder clone() { 25838 return (Builder) super.clone(); 25839 } 25840 public Builder setField( 25841 com.google.protobuf.Descriptors.FieldDescriptor field, 25842 java.lang.Object value) { 25843 return (Builder) super.setField(field, value); 25844 } 25845 public Builder clearField( 25846 com.google.protobuf.Descriptors.FieldDescriptor field) { 25847 return (Builder) super.clearField(field); 25848 } 25849 public Builder clearOneof( 25850 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 25851 return (Builder) super.clearOneof(oneof); 25852 } 25853 public Builder setRepeatedField( 25854 com.google.protobuf.Descriptors.FieldDescriptor field, 25855 int index, java.lang.Object value) { 25856 return (Builder) super.setRepeatedField(field, index, value); 25857 } 25858 public Builder addRepeatedField( 25859 com.google.protobuf.Descriptors.FieldDescriptor field, 25860 java.lang.Object value) { 25861 return (Builder) super.addRepeatedField(field, value); 25862 } 25863 public <Type> Builder setExtension( 25864 com.google.protobuf.GeneratedMessage.GeneratedExtension< 25865 com.google.protobuf.DescriptorProtos.FieldOptions, Type> extension, 25866 Type value) { 25867 return (Builder) super.setExtension(extension, value); 25868 } 25869 public <Type> Builder setExtension( 25870 com.google.protobuf.GeneratedMessage.GeneratedExtension< 25871 com.google.protobuf.DescriptorProtos.FieldOptions, java.util.List<Type>> extension, 25872 int index, Type value) { 25873 return (Builder) super.setExtension(extension, index, value); 25874 } 25875 public <Type> Builder addExtension( 25876 com.google.protobuf.GeneratedMessage.GeneratedExtension< 25877 com.google.protobuf.DescriptorProtos.FieldOptions, java.util.List<Type>> extension, 25878 Type value) { 25879 return (Builder) super.addExtension(extension, value); 25880 } 25881 public <Type> Builder clearExtension( 25882 com.google.protobuf.GeneratedMessage.GeneratedExtension< 25883 com.google.protobuf.DescriptorProtos.FieldOptions, ?> extension) { 25884 return (Builder) super.clearExtension(extension); 25885 } 25886 public Builder mergeFrom(com.google.protobuf.Message other) { 19981 25887 if (other instanceof com.google.protobuf.DescriptorProtos.FieldOptions) { 19982 25888 return mergeFrom((com.google.protobuf.DescriptorProtos.FieldOptions)other); … … 19995 25901 setPacked(other.getPacked()); 19996 25902 } 25903 if (other.hasJstype()) { 25904 setJstype(other.getJstype()); 25905 } 19997 25906 if (other.hasLazy()) { 19998 25907 setLazy(other.getLazy()); … … 20000 25909 if (other.hasDeprecated()) { 20001 25910 setDeprecated(other.getDeprecated()); 20002 }20003 if (other.hasExperimentalMapKey()) {20004 bitField0_ |= 0x00000010;20005 experimentalMapKey_ = other.experimentalMapKey_;20006 onChanged();20007 25911 } 20008 25912 if (other.hasWeak()) { … … 20027 25931 uninterpretedOption_ = other.uninterpretedOption_; 20028 25932 bitField0_ = (bitField0_ & ~0x00000040); 20029 uninterpretedOptionBuilder_ = 20030 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?25933 uninterpretedOptionBuilder_ = 25934 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 20031 25935 getUninterpretedOptionFieldBuilder() : null; 20032 25936 } else { … … 20036 25940 } 20037 25941 this.mergeExtensionFields(other); 20038 this.mergeUnknownFields(other. getUnknownFields());20039 return this;20040 }20041 20042 @Override 20043 25942 this.mergeUnknownFields(other.unknownFields); 25943 onChanged(); 25944 return this; 25945 } 25946 25947 public final boolean isInitialized() { 20044 25948 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 20045 25949 if (!getUninterpretedOption(i).isInitialized()) { 20046 20047 25950 return false; 20048 25951 } 20049 25952 } 20050 25953 if (!extensionsAreInitialized()) { 20051 20052 25954 return false; 20053 25955 } … … 20055 25957 } 20056 25958 20057 @Override 20058 public Builder mergeFrom( 25959 public Builder mergeFrom( 20059 25960 com.google.protobuf.CodedInputStream input, 20060 25961 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 20065 25966 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 20066 25967 parsedMessage = (com.google.protobuf.DescriptorProtos.FieldOptions) e.getUnfinishedMessage(); 20067 throw e ;25968 throw e.unwrapIOException(); 20068 25969 } finally { 20069 25970 if (parsedMessage != null) { … … 20075 25976 private int bitField0_; 20076 25977 20077 private com.google.protobuf.DescriptorProtos.FieldOptions.CType ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING; 20078 /** 20079 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 20080 * 25978 private int ctype_ = 0; 25979 /** 20081 25980 * <pre> 20082 25981 * The ctype option instructs the C++ code generator to use a different … … 20085 25984 * release -- sorry, we'll try to include it in a future version! 20086 25985 * </pre> 20087 */ 20088 @Override 20089 public boolean hasCtype() { 25986 * 25987 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 25988 */ 25989 public boolean hasCtype() { 20090 25990 return ((bitField0_ & 0x00000001) == 0x00000001); 20091 25991 } 20092 25992 /** 20093 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code>20094 *20095 25993 * <pre> 20096 25994 * The ctype option instructs the C++ code generator to use a different … … 20099 25997 * release -- sorry, we'll try to include it in a future version! 20100 25998 * </pre> 20101 */ 20102 @Override 20103 public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { 20104 return ctype_; 20105 } 20106 /** 25999 * 20107 26000 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 20108 * 26001 */ 26002 public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { 26003 com.google.protobuf.DescriptorProtos.FieldOptions.CType result = com.google.protobuf.DescriptorProtos.FieldOptions.CType.valueOf(ctype_); 26004 return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING : result; 26005 } 26006 /** 20109 26007 * <pre> 20110 26008 * The ctype option instructs the C++ code generator to use a different … … 20113 26011 * release -- sorry, we'll try to include it in a future version! 20114 26012 * </pre> 26013 * 26014 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 20115 26015 */ 20116 26016 public Builder setCtype(com.google.protobuf.DescriptorProtos.FieldOptions.CType value) { … … 20119 26019 } 20120 26020 bitField0_ |= 0x00000001; 20121 ctype_ = value ;26021 ctype_ = value.getNumber(); 20122 26022 onChanged(); 20123 26023 return this; 20124 26024 } 20125 26025 /** 20126 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code>20127 *20128 26026 * <pre> 20129 26027 * The ctype option instructs the C++ code generator to use a different … … 20132 26030 * release -- sorry, we'll try to include it in a future version! 20133 26031 * </pre> 26032 * 26033 * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> 20134 26034 */ 20135 26035 public Builder clearCtype() { 20136 26036 bitField0_ = (bitField0_ & ~0x00000001); 20137 ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING;26037 ctype_ = 0; 20138 26038 onChanged(); 20139 26039 return this; … … 20142 26042 private boolean packed_ ; 20143 26043 /** 20144 * <code>optional bool packed = 2;</code>20145 *20146 26044 * <pre> 20147 26045 * The packed option can be enabled for repeated primitive fields to enable 20148 26046 * a more efficient representation on the wire. Rather than repeatedly 20149 26047 * writing the tag and type for each element, the entire array is encoded as 20150 * a single length-delimited blob. 20151 * </pre> 20152 */ 20153 @Override 20154 public boolean hasPacked() { 26048 * a single length-delimited blob. In proto3, only explicit setting it to 26049 * false will avoid using packed encoding. 26050 * </pre> 26051 * 26052 * <code>optional bool packed = 2;</code> 26053 */ 26054 public boolean hasPacked() { 20155 26055 return ((bitField0_ & 0x00000002) == 0x00000002); 20156 26056 } 20157 26057 /** 20158 * <code>optional bool packed = 2;</code>20159 *20160 26058 * <pre> 20161 26059 * The packed option can be enabled for repeated primitive fields to enable 20162 26060 * a more efficient representation on the wire. Rather than repeatedly 20163 26061 * writing the tag and type for each element, the entire array is encoded as 20164 * a single length-delimited blob. 20165 * </pre> 20166 */ 20167 @Override 20168 public boolean getPacked() { 26062 * a single length-delimited blob. In proto3, only explicit setting it to 26063 * false will avoid using packed encoding. 26064 * </pre> 26065 * 26066 * <code>optional bool packed = 2;</code> 26067 */ 26068 public boolean getPacked() { 20169 26069 return packed_; 20170 26070 } 20171 26071 /** 20172 * <code>optional bool packed = 2;</code>20173 *20174 26072 * <pre> 20175 26073 * The packed option can be enabled for repeated primitive fields to enable 20176 26074 * a more efficient representation on the wire. Rather than repeatedly 20177 26075 * writing the tag and type for each element, the entire array is encoded as 20178 * a single length-delimited blob. 20179 * </pre> 26076 * a single length-delimited blob. In proto3, only explicit setting it to 26077 * false will avoid using packed encoding. 26078 * </pre> 26079 * 26080 * <code>optional bool packed = 2;</code> 20180 26081 */ 20181 26082 public Builder setPacked(boolean value) { … … 20186 26087 } 20187 26088 /** 20188 * <code>optional bool packed = 2;</code>20189 *20190 26089 * <pre> 20191 26090 * The packed option can be enabled for repeated primitive fields to enable 20192 26091 * a more efficient representation on the wire. Rather than repeatedly 20193 26092 * writing the tag and type for each element, the entire array is encoded as 20194 * a single length-delimited blob. 20195 * </pre> 26093 * a single length-delimited blob. In proto3, only explicit setting it to 26094 * false will avoid using packed encoding. 26095 * </pre> 26096 * 26097 * <code>optional bool packed = 2;</code> 20196 26098 */ 20197 26099 public Builder clearPacked() { … … 20202 26104 } 20203 26105 26106 private int jstype_ = 0; 26107 /** 26108 * <pre> 26109 * The jstype option determines the JavaScript type used for values of the 26110 * field. The option is permitted only for 64 bit integral and fixed types 26111 * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING 26112 * is represented as JavaScript string, which avoids loss of precision that 26113 * can happen when a large value is converted to a floating point JavaScript. 26114 * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to 26115 * use the JavaScript "number" type. The behavior of the default option 26116 * JS_NORMAL is implementation dependent. 26117 * This option is an enum to permit additional types to be added, e.g. 26118 * goog.math.Integer. 26119 * </pre> 26120 * 26121 * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> 26122 */ 26123 public boolean hasJstype() { 26124 return ((bitField0_ & 0x00000004) == 0x00000004); 26125 } 26126 /** 26127 * <pre> 26128 * The jstype option determines the JavaScript type used for values of the 26129 * field. The option is permitted only for 64 bit integral and fixed types 26130 * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING 26131 * is represented as JavaScript string, which avoids loss of precision that 26132 * can happen when a large value is converted to a floating point JavaScript. 26133 * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to 26134 * use the JavaScript "number" type. The behavior of the default option 26135 * JS_NORMAL is implementation dependent. 26136 * This option is an enum to permit additional types to be added, e.g. 26137 * goog.math.Integer. 26138 * </pre> 26139 * 26140 * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> 26141 */ 26142 public com.google.protobuf.DescriptorProtos.FieldOptions.JSType getJstype() { 26143 com.google.protobuf.DescriptorProtos.FieldOptions.JSType result = com.google.protobuf.DescriptorProtos.FieldOptions.JSType.valueOf(jstype_); 26144 return result == null ? com.google.protobuf.DescriptorProtos.FieldOptions.JSType.JS_NORMAL : result; 26145 } 26146 /** 26147 * <pre> 26148 * The jstype option determines the JavaScript type used for values of the 26149 * field. The option is permitted only for 64 bit integral and fixed types 26150 * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING 26151 * is represented as JavaScript string, which avoids loss of precision that 26152 * can happen when a large value is converted to a floating point JavaScript. 26153 * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to 26154 * use the JavaScript "number" type. The behavior of the default option 26155 * JS_NORMAL is implementation dependent. 26156 * This option is an enum to permit additional types to be added, e.g. 26157 * goog.math.Integer. 26158 * </pre> 26159 * 26160 * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> 26161 */ 26162 public Builder setJstype(com.google.protobuf.DescriptorProtos.FieldOptions.JSType value) { 26163 if (value == null) { 26164 throw new NullPointerException(); 26165 } 26166 bitField0_ |= 0x00000004; 26167 jstype_ = value.getNumber(); 26168 onChanged(); 26169 return this; 26170 } 26171 /** 26172 * <pre> 26173 * The jstype option determines the JavaScript type used for values of the 26174 * field. The option is permitted only for 64 bit integral and fixed types 26175 * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING 26176 * is represented as JavaScript string, which avoids loss of precision that 26177 * can happen when a large value is converted to a floating point JavaScript. 26178 * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to 26179 * use the JavaScript "number" type. The behavior of the default option 26180 * JS_NORMAL is implementation dependent. 26181 * This option is an enum to permit additional types to be added, e.g. 26182 * goog.math.Integer. 26183 * </pre> 26184 * 26185 * <code>optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];</code> 26186 */ 26187 public Builder clearJstype() { 26188 bitField0_ = (bitField0_ & ~0x00000004); 26189 jstype_ = 0; 26190 onChanged(); 26191 return this; 26192 } 26193 20204 26194 private boolean lazy_ ; 20205 26195 /** 20206 * <code>optional bool lazy = 5 [default = false];</code>20207 *20208 26196 * <pre> 20209 26197 * Should this field be parsed lazily? Lazy applies only to message-type … … 20222 26210 * to require exclusive access. 20223 26211 * Note that implementations may choose not to check required fields within 20224 * a lazy sub-message. That is, calling IsInitialized() on the out her message26212 * a lazy sub-message. That is, calling IsInitialized() on the outer message 20225 26213 * may return true even if the inner message has missing required fields. 20226 26214 * This is necessary because otherwise the inner message would have to be … … 20232 26220 * been parsed. 20233 26221 * </pre> 20234 */ 20235 @Override 20236 public boolean hasLazy() { 20237 return ((bitField0_ & 0x00000004) == 0x00000004); 20238 } 20239 /** 26222 * 20240 26223 * <code>optional bool lazy = 5 [default = false];</code> 20241 * 26224 */ 26225 public boolean hasLazy() { 26226 return ((bitField0_ & 0x00000008) == 0x00000008); 26227 } 26228 /** 20242 26229 * <pre> 20243 26230 * Should this field be parsed lazily? Lazy applies only to message-type … … 20256 26243 * to require exclusive access. 20257 26244 * Note that implementations may choose not to check required fields within 20258 * a lazy sub-message. That is, calling IsInitialized() on the out her message26245 * a lazy sub-message. That is, calling IsInitialized() on the outer message 20259 26246 * may return true even if the inner message has missing required fields. 20260 26247 * This is necessary because otherwise the inner message would have to be … … 20266 26253 * been parsed. 20267 26254 * </pre> 20268 */ 20269 @Override 20270 public boolean getLazy() { 26255 * 26256 * <code>optional bool lazy = 5 [default = false];</code> 26257 */ 26258 public boolean getLazy() { 20271 26259 return lazy_; 20272 26260 } 20273 26261 /** 20274 * <code>optional bool lazy = 5 [default = false];</code>20275 *20276 26262 * <pre> 20277 26263 * Should this field be parsed lazily? Lazy applies only to message-type … … 20290 26276 * to require exclusive access. 20291 26277 * Note that implementations may choose not to check required fields within 20292 * a lazy sub-message. That is, calling IsInitialized() on the out her message26278 * a lazy sub-message. That is, calling IsInitialized() on the outer message 20293 26279 * may return true even if the inner message has missing required fields. 20294 26280 * This is necessary because otherwise the inner message would have to be … … 20300 26286 * been parsed. 20301 26287 * </pre> 26288 * 26289 * <code>optional bool lazy = 5 [default = false];</code> 20302 26290 */ 20303 26291 public Builder setLazy(boolean value) { 20304 bitField0_ |= 0x0000000 4;26292 bitField0_ |= 0x00000008; 20305 26293 lazy_ = value; 20306 26294 onChanged(); … … 20308 26296 } 20309 26297 /** 20310 * <code>optional bool lazy = 5 [default = false];</code>20311 *20312 26298 * <pre> 20313 26299 * Should this field be parsed lazily? Lazy applies only to message-type … … 20326 26312 * to require exclusive access. 20327 26313 * Note that implementations may choose not to check required fields within 20328 * a lazy sub-message. That is, calling IsInitialized() on the out her message26314 * a lazy sub-message. That is, calling IsInitialized() on the outer message 20329 26315 * may return true even if the inner message has missing required fields. 20330 26316 * This is necessary because otherwise the inner message would have to be … … 20336 26322 * been parsed. 20337 26323 * </pre> 26324 * 26325 * <code>optional bool lazy = 5 [default = false];</code> 20338 26326 */ 20339 26327 public Builder clearLazy() { 20340 bitField0_ = (bitField0_ & ~0x0000000 4);26328 bitField0_ = (bitField0_ & ~0x00000008); 20341 26329 lazy_ = false; 20342 26330 onChanged(); … … 20346 26334 private boolean deprecated_ ; 20347 26335 /** 20348 * <code>optional bool deprecated = 3 [default = false];</code>20349 *20350 26336 * <pre> 20351 26337 * Is this field deprecated? … … 20354 26340 * is a formalization for deprecating fields. 20355 26341 * </pre> 20356 */ 20357 @Override 20358 public boolean hasDeprecated() { 20359 return ((bitField0_ & 0x00000008) == 0x00000008); 20360 } 20361 /** 26342 * 20362 26343 * <code>optional bool deprecated = 3 [default = false];</code> 20363 * 26344 */ 26345 public boolean hasDeprecated() { 26346 return ((bitField0_ & 0x00000010) == 0x00000010); 26347 } 26348 /** 20364 26349 * <pre> 20365 26350 * Is this field deprecated? … … 20368 26353 * is a formalization for deprecating fields. 20369 26354 * </pre> 20370 */ 20371 @Override 20372 public boolean getDeprecated() { 26355 * 26356 * <code>optional bool deprecated = 3 [default = false];</code> 26357 */ 26358 public boolean getDeprecated() { 20373 26359 return deprecated_; 20374 26360 } 20375 26361 /** 20376 * <code>optional bool deprecated = 3 [default = false];</code>20377 *20378 26362 * <pre> 20379 26363 * Is this field deprecated? … … 20382 26366 * is a formalization for deprecating fields. 20383 26367 * </pre> 26368 * 26369 * <code>optional bool deprecated = 3 [default = false];</code> 20384 26370 */ 20385 26371 public Builder setDeprecated(boolean value) { 20386 bitField0_ |= 0x000000 08;26372 bitField0_ |= 0x00000010; 20387 26373 deprecated_ = value; 20388 26374 onChanged(); … … 20390 26376 } 20391 26377 /** 20392 * <code>optional bool deprecated = 3 [default = false];</code>20393 *20394 26378 * <pre> 20395 26379 * Is this field deprecated? … … 20398 26382 * is a formalization for deprecating fields. 20399 26383 * </pre> 26384 * 26385 * <code>optional bool deprecated = 3 [default = false];</code> 20400 26386 */ 20401 26387 public Builder clearDeprecated() { 20402 bitField0_ = (bitField0_ & ~0x000000 08);26388 bitField0_ = (bitField0_ & ~0x00000010); 20403 26389 deprecated_ = false; 20404 26390 onChanged(); … … 20406 26392 } 20407 26393 20408 private java.lang.Object experimentalMapKey_ = "";20409 /**20410 * <code>optional string experimental_map_key = 9;</code>20411 *20412 * <pre>20413 * EXPERIMENTAL. DO NOT USE.20414 * For "map" fields, the name of the field in the enclosed type that20415 * is the key for this map. For example, suppose we have:20416 * message Item {20417 * required string name = 1;20418 * required string value = 2;20419 * }20420 * message Config {20421 * repeated Item items = 1 [experimental_map_key="name"];20422 * }20423 * In this situation, the map key for Item will be set to "name".20424 * TODO: Fully-implement this, then remove the "experimental_" prefix.20425 * </pre>20426 */20427 @Override20428 public boolean hasExperimentalMapKey() {20429 return ((bitField0_ & 0x00000010) == 0x00000010);20430 }20431 /**20432 * <code>optional string experimental_map_key = 9;</code>20433 *20434 * <pre>20435 * EXPERIMENTAL. DO NOT USE.20436 * For "map" fields, the name of the field in the enclosed type that20437 * is the key for this map. For example, suppose we have:20438 * message Item {20439 * required string name = 1;20440 * required string value = 2;20441 * }20442 * message Config {20443 * repeated Item items = 1 [experimental_map_key="name"];20444 * }20445 * In this situation, the map key for Item will be set to "name".20446 * TODO: Fully-implement this, then remove the "experimental_" prefix.20447 * </pre>20448 */20449 @Override20450 public java.lang.String getExperimentalMapKey() {20451 java.lang.Object ref = experimentalMapKey_;20452 if (!(ref instanceof java.lang.String)) {20453 com.google.protobuf.ByteString bs =20454 (com.google.protobuf.ByteString) ref;20455 java.lang.String s = bs.toStringUtf8();20456 if (bs.isValidUtf8()) {20457 experimentalMapKey_ = s;20458 }20459 return s;20460 } else {20461 return (java.lang.String) ref;20462 }20463 }20464 /**20465 * <code>optional string experimental_map_key = 9;</code>20466 *20467 * <pre>20468 * EXPERIMENTAL. DO NOT USE.20469 * For "map" fields, the name of the field in the enclosed type that20470 * is the key for this map. For example, suppose we have:20471 * message Item {20472 * required string name = 1;20473 * required string value = 2;20474 * }20475 * message Config {20476 * repeated Item items = 1 [experimental_map_key="name"];20477 * }20478 * In this situation, the map key for Item will be set to "name".20479 * TODO: Fully-implement this, then remove the "experimental_" prefix.20480 * </pre>20481 */20482 @Override20483 public com.google.protobuf.ByteString20484 getExperimentalMapKeyBytes() {20485 java.lang.Object ref = experimentalMapKey_;20486 if (ref instanceof String) {20487 com.google.protobuf.ByteString b =20488 com.google.protobuf.ByteString.copyFromUtf8(20489 (java.lang.String) ref);20490 experimentalMapKey_ = b;20491 return b;20492 } else {20493 return (com.google.protobuf.ByteString) ref;20494 }20495 }20496 /**20497 * <code>optional string experimental_map_key = 9;</code>20498 *20499 * <pre>20500 * EXPERIMENTAL. DO NOT USE.20501 * For "map" fields, the name of the field in the enclosed type that20502 * is the key for this map. For example, suppose we have:20503 * message Item {20504 * required string name = 1;20505 * required string value = 2;20506 * }20507 * message Config {20508 * repeated Item items = 1 [experimental_map_key="name"];20509 * }20510 * In this situation, the map key for Item will be set to "name".20511 * TODO: Fully-implement this, then remove the "experimental_" prefix.20512 * </pre>20513 */20514 public Builder setExperimentalMapKey(20515 java.lang.String value) {20516 if (value == null) {20517 throw new NullPointerException();20518 }20519 bitField0_ |= 0x00000010;20520 experimentalMapKey_ = value;20521 onChanged();20522 return this;20523 }20524 /**20525 * <code>optional string experimental_map_key = 9;</code>20526 *20527 * <pre>20528 * EXPERIMENTAL. DO NOT USE.20529 * For "map" fields, the name of the field in the enclosed type that20530 * is the key for this map. For example, suppose we have:20531 * message Item {20532 * required string name = 1;20533 * required string value = 2;20534 * }20535 * message Config {20536 * repeated Item items = 1 [experimental_map_key="name"];20537 * }20538 * In this situation, the map key for Item will be set to "name".20539 * TODO: Fully-implement this, then remove the "experimental_" prefix.20540 * </pre>20541 */20542 public Builder clearExperimentalMapKey() {20543 bitField0_ = (bitField0_ & ~0x00000010);20544 experimentalMapKey_ = getDefaultInstance().getExperimentalMapKey();20545 onChanged();20546 return this;20547 }20548 /**20549 * <code>optional string experimental_map_key = 9;</code>20550 *20551 * <pre>20552 * EXPERIMENTAL. DO NOT USE.20553 * For "map" fields, the name of the field in the enclosed type that20554 * is the key for this map. For example, suppose we have:20555 * message Item {20556 * required string name = 1;20557 * required string value = 2;20558 * }20559 * message Config {20560 * repeated Item items = 1 [experimental_map_key="name"];20561 * }20562 * In this situation, the map key for Item will be set to "name".20563 * TODO: Fully-implement this, then remove the "experimental_" prefix.20564 * </pre>20565 */20566 public Builder setExperimentalMapKeyBytes(20567 com.google.protobuf.ByteString value) {20568 if (value == null) {20569 throw new NullPointerException();20570 }20571 bitField0_ |= 0x00000010;20572 experimentalMapKey_ = value;20573 onChanged();20574 return this;20575 }20576 20577 26394 private boolean weak_ ; 20578 26395 /** 26396 * <pre> 26397 * For Google-internal migration only. Do not use. 26398 * </pre> 26399 * 20579 26400 * <code>optional bool weak = 10 [default = false];</code> 20580 * 26401 */ 26402 public boolean hasWeak() { 26403 return ((bitField0_ & 0x00000020) == 0x00000020); 26404 } 26405 /** 20581 26406 * <pre> 20582 26407 * For Google-internal migration only. Do not use. 20583 26408 * </pre> 20584 */ 20585 @Override 20586 public boolean hasWeak() { 20587 return ((bitField0_ & 0x00000020) == 0x00000020); 20588 } 20589 /** 26409 * 20590 26410 * <code>optional bool weak = 10 [default = false];</code> 20591 * 26411 */ 26412 public boolean getWeak() { 26413 return weak_; 26414 } 26415 /** 20592 26416 * <pre> 20593 26417 * For Google-internal migration only. Do not use. 20594 26418 * </pre> 20595 */ 20596 @Override 20597 public boolean getWeak() { 20598 return weak_; 20599 } 20600 /** 26419 * 20601 26420 * <code>optional bool weak = 10 [default = false];</code> 20602 *20603 * <pre>20604 * For Google-internal migration only. Do not use.20605 * </pre>20606 26421 */ 20607 26422 public Builder setWeak(boolean value) { … … 20612 26427 } 20613 26428 /** 26429 * <pre> 26430 * For Google-internal migration only. Do not use. 26431 * </pre> 26432 * 20614 26433 * <code>optional bool weak = 10 [default = false];</code> 20615 *20616 * <pre>20617 * For Google-internal migration only. Do not use.20618 * </pre>20619 26434 */ 20620 26435 public Builder clearWeak() { … … 20629 26444 private void ensureUninterpretedOptionIsMutable() { 20630 26445 if (!((bitField0_ & 0x00000040) == 0x00000040)) { 20631 uninterpretedOption_ = new java.util.ArrayList< >(uninterpretedOption_);26446 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); 20632 26447 bitField0_ |= 0x00000040; 20633 26448 } 20634 26449 } 20635 26450 20636 private com.google.protobuf.RepeatedFieldBuilder <26451 private com.google.protobuf.RepeatedFieldBuilderV3< 20637 26452 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 20638 26453 20639 26454 /** 26455 * <pre> 26456 * The parser stores options it doesn't recognize here. See above. 26457 * </pre> 26458 * 20640 26459 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20641 * 20642 * <pre> 20643 * The parser stores options it doesn't recognize here. See above. 20644 * </pre> 20645 */ 20646 @Override 20647 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 26460 */ 26461 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 20648 26462 if (uninterpretedOptionBuilder_ == null) { 20649 26463 return java.util.Collections.unmodifiableList(uninterpretedOption_); … … 20653 26467 } 20654 26468 /** 26469 * <pre> 26470 * The parser stores options it doesn't recognize here. See above. 26471 * </pre> 26472 * 20655 26473 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20656 * 20657 * <pre> 20658 * The parser stores options it doesn't recognize here. See above. 20659 * </pre> 20660 */ 20661 @Override 20662 public int getUninterpretedOptionCount() { 26474 */ 26475 public int getUninterpretedOptionCount() { 20663 26476 if (uninterpretedOptionBuilder_ == null) { 20664 26477 return uninterpretedOption_.size(); … … 20668 26481 } 20669 26482 /** 26483 * <pre> 26484 * The parser stores options it doesn't recognize here. See above. 26485 * </pre> 26486 * 20670 26487 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20671 * 20672 * <pre> 20673 * The parser stores options it doesn't recognize here. See above. 20674 * </pre> 20675 */ 20676 @Override 20677 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 26488 */ 26489 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 20678 26490 if (uninterpretedOptionBuilder_ == null) { 20679 26491 return uninterpretedOption_.get(index); … … 20683 26495 } 20684 26496 /** 26497 * <pre> 26498 * The parser stores options it doesn't recognize here. See above. 26499 * </pre> 26500 * 20685 26501 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20686 *20687 * <pre>20688 * The parser stores options it doesn't recognize here. See above.20689 * </pre>20690 26502 */ 20691 26503 public Builder setUninterpretedOption( … … 20704 26516 } 20705 26517 /** 26518 * <pre> 26519 * The parser stores options it doesn't recognize here. See above. 26520 * </pre> 26521 * 20706 26522 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20707 *20708 * <pre>20709 * The parser stores options it doesn't recognize here. See above.20710 * </pre>20711 26523 */ 20712 26524 public Builder setUninterpretedOption( … … 20722 26534 } 20723 26535 /** 26536 * <pre> 26537 * The parser stores options it doesn't recognize here. See above. 26538 * </pre> 26539 * 20724 26540 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20725 *20726 * <pre>20727 * The parser stores options it doesn't recognize here. See above.20728 * </pre>20729 26541 */ 20730 26542 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 20742 26554 } 20743 26555 /** 26556 * <pre> 26557 * The parser stores options it doesn't recognize here. See above. 26558 * </pre> 26559 * 20744 26560 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20745 *20746 * <pre>20747 * The parser stores options it doesn't recognize here. See above.20748 * </pre>20749 26561 */ 20750 26562 public Builder addUninterpretedOption( … … 20763 26575 } 20764 26576 /** 26577 * <pre> 26578 * The parser stores options it doesn't recognize here. See above. 26579 * </pre> 26580 * 20765 26581 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20766 *20767 * <pre>20768 * The parser stores options it doesn't recognize here. See above.20769 * </pre>20770 26582 */ 20771 26583 public Builder addUninterpretedOption( … … 20781 26593 } 20782 26594 /** 26595 * <pre> 26596 * The parser stores options it doesn't recognize here. See above. 26597 * </pre> 26598 * 20783 26599 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20784 *20785 * <pre>20786 * The parser stores options it doesn't recognize here. See above.20787 * </pre>20788 26600 */ 20789 26601 public Builder addUninterpretedOption( … … 20799 26611 } 20800 26612 /** 26613 * <pre> 26614 * The parser stores options it doesn't recognize here. See above. 26615 * </pre> 26616 * 20801 26617 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20802 *20803 * <pre>20804 * The parser stores options it doesn't recognize here. See above.20805 * </pre>20806 26618 */ 20807 26619 public Builder addAllUninterpretedOption( … … 20818 26630 } 20819 26631 /** 26632 * <pre> 26633 * The parser stores options it doesn't recognize here. See above. 26634 * </pre> 26635 * 20820 26636 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20821 *20822 * <pre>20823 * The parser stores options it doesn't recognize here. See above.20824 * </pre>20825 26637 */ 20826 26638 public Builder clearUninterpretedOption() { … … 20835 26647 } 20836 26648 /** 26649 * <pre> 26650 * The parser stores options it doesn't recognize here. See above. 26651 * </pre> 26652 * 20837 26653 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20838 *20839 * <pre>20840 * The parser stores options it doesn't recognize here. See above.20841 * </pre>20842 26654 */ 20843 26655 public Builder removeUninterpretedOption(int index) { … … 20852 26664 } 20853 26665 /** 26666 * <pre> 26667 * The parser stores options it doesn't recognize here. See above. 26668 * </pre> 26669 * 20854 26670 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20855 *20856 * <pre>20857 * The parser stores options it doesn't recognize here. See above.20858 * </pre>20859 26671 */ 20860 26672 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( … … 20863 26675 } 20864 26676 /** 26677 * <pre> 26678 * The parser stores options it doesn't recognize here. See above. 26679 * </pre> 26680 * 20865 26681 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20866 * 20867 * <pre> 20868 * The parser stores options it doesn't recognize here. See above. 20869 * </pre> 20870 */ 20871 @Override 20872 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 26682 */ 26683 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 20873 26684 int index) { 20874 26685 if (uninterpretedOptionBuilder_ == null) { … … 20878 26689 } 20879 26690 /** 26691 * <pre> 26692 * The parser stores options it doesn't recognize here. See above. 26693 * </pre> 26694 * 20880 26695 * <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 */ 20886 @Override 20887 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 26696 */ 26697 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 20888 26698 getUninterpretedOptionOrBuilderList() { 20889 26699 if (uninterpretedOptionBuilder_ != null) { … … 20894 26704 } 20895 26705 /** 26706 * <pre> 26707 * The parser stores options it doesn't recognize here. See above. 26708 * </pre> 26709 * 20896 26710 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20897 *20898 * <pre>20899 * The parser stores options it doesn't recognize here. See above.20900 * </pre>20901 26711 */ 20902 26712 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { … … 20905 26715 } 20906 26716 /** 26717 * <pre> 26718 * The parser stores options it doesn't recognize here. See above. 26719 * </pre> 26720 * 20907 26721 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20908 *20909 * <pre>20910 * The parser stores options it doesn't recognize here. See above.20911 * </pre>20912 26722 */ 20913 26723 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( … … 20917 26727 } 20918 26728 /** 26729 * <pre> 26730 * The parser stores options it doesn't recognize here. See above. 26731 * </pre> 26732 * 20919 26733 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 20920 * 20921 * <pre> 20922 * The parser stores options it doesn't recognize here. See above. 20923 * </pre> 20924 */ 20925 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 26734 */ 26735 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 20926 26736 getUninterpretedOptionBuilderList() { 20927 26737 return getUninterpretedOptionFieldBuilder().getBuilderList(); 20928 26738 } 20929 private com.google.protobuf.RepeatedFieldBuilder <20930 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 26739 private com.google.protobuf.RepeatedFieldBuilderV3< 26740 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 20931 26741 getUninterpretedOptionFieldBuilder() { 20932 26742 if (uninterpretedOptionBuilder_ == null) { 20933 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 26743 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 26744 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( 20934 26745 uninterpretedOption_, 20935 26746 ((bitField0_ & 0x00000040) == 0x00000040), … … 20940 26751 return uninterpretedOptionBuilder_; 20941 26752 } 26753 public final Builder setUnknownFields( 26754 final com.google.protobuf.UnknownFieldSet unknownFields) { 26755 return super.setUnknownFields(unknownFields); 26756 } 26757 26758 public final Builder mergeUnknownFields( 26759 final com.google.protobuf.UnknownFieldSet unknownFields) { 26760 return super.mergeUnknownFields(unknownFields); 26761 } 26762 20942 26763 20943 26764 // @@protoc_insertion_point(builder_scope:google.protobuf.FieldOptions) 20944 26765 } 20945 26766 26767 // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions) 26768 private static final com.google.protobuf.DescriptorProtos.FieldOptions DEFAULT_INSTANCE; 20946 26769 static { 20947 defaultInstance = new FieldOptions(true); 20948 defaultInstance.initFields(); 20949 } 20950 20951 // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions) 26770 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.FieldOptions(); 26771 } 26772 26773 public static com.google.protobuf.DescriptorProtos.FieldOptions getDefaultInstance() { 26774 return DEFAULT_INSTANCE; 26775 } 26776 26777 @java.lang.Deprecated public static final com.google.protobuf.Parser<FieldOptions> 26778 PARSER = new com.google.protobuf.AbstractParser<FieldOptions>() { 26779 public FieldOptions parsePartialFrom( 26780 com.google.protobuf.CodedInputStream input, 26781 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 26782 throws com.google.protobuf.InvalidProtocolBufferException { 26783 return new FieldOptions(input, extensionRegistry); 26784 } 26785 }; 26786 26787 public static com.google.protobuf.Parser<FieldOptions> parser() { 26788 return PARSER; 26789 } 26790 26791 @java.lang.Override 26792 public com.google.protobuf.Parser<FieldOptions> getParserForType() { 26793 return PARSER; 26794 } 26795 26796 public com.google.protobuf.DescriptorProtos.FieldOptions getDefaultInstanceForType() { 26797 return DEFAULT_INSTANCE; 26798 } 26799 20952 26800 } 20953 26801 20954 public interface EnumOptionsOrBuilder extends 20955 // @@protoc_insertion_point(interface_extends:google.protobuf.EnumOptions) 20956 com.google.protobuf.GeneratedMessage. 20957 ExtendableMessageOrBuilder<EnumOptions> { 20958 20959 /** 20960 * <code>optional bool allow_alias = 2;</code> 20961 * 20962 * <pre> 20963 * Set this option to true to allow mapping different tag names to the same 20964 * value. 20965 * </pre> 20966 */ 20967 boolean hasAllowAlias(); 20968 /** 20969 * <code>optional bool allow_alias = 2;</code> 20970 * 20971 * <pre> 20972 * Set this option to true to allow mapping different tag names to the same 20973 * value. 20974 * </pre> 20975 */ 20976 boolean getAllowAlias(); 20977 20978 /** 20979 * <code>optional bool deprecated = 3 [default = false];</code> 20980 * 20981 * <pre> 20982 * Is this enum deprecated? 20983 * Depending on the target platform, this can emit Deprecated annotations 20984 * for the enum, or it will be completely ignored; in the very least, this 20985 * is a formalization for deprecating enums. 20986 * </pre> 20987 */ 20988 boolean hasDeprecated(); 20989 /** 20990 * <code>optional bool deprecated = 3 [default = false];</code> 20991 * 20992 * <pre> 20993 * Is this enum deprecated? 20994 * Depending on the target platform, this can emit Deprecated annotations 20995 * for the enum, or it will be completely ignored; in the very least, this 20996 * is a formalization for deprecating enums. 20997 * </pre> 20998 */ 20999 boolean getDeprecated(); 21000 21001 /** 21002 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21003 * 26802 public interface OneofOptionsOrBuilder extends 26803 // @@protoc_insertion_point(interface_extends:google.protobuf.OneofOptions) 26804 com.google.protobuf.GeneratedMessageV3. 26805 ExtendableMessageOrBuilder<OneofOptions> { 26806 26807 /** 21004 26808 * <pre> 21005 26809 * The parser stores options it doesn't recognize here. See above. 21006 26810 * </pre> 21007 */ 21008 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 26811 * 26812 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 26813 */ 26814 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 21009 26815 getUninterpretedOptionList(); 21010 26816 /** 21011 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>21012 *21013 26817 * <pre> 21014 26818 * The parser stores options it doesn't recognize here. See above. 21015 26819 * </pre> 26820 * 26821 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21016 26822 */ 21017 26823 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 21018 26824 /** 21019 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>21020 *21021 26825 * <pre> 21022 26826 * The parser stores options it doesn't recognize here. See above. 21023 26827 * </pre> 26828 * 26829 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21024 26830 */ 21025 26831 int getUninterpretedOptionCount(); 21026 26832 /** 21027 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>21028 *21029 26833 * <pre> 21030 26834 * The parser stores options it doesn't recognize here. See above. 21031 26835 * </pre> 21032 */ 21033 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 26836 * 26837 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 26838 */ 26839 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 21034 26840 getUninterpretedOptionOrBuilderList(); 21035 26841 /** 21036 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>21037 *21038 26842 * <pre> 21039 26843 * The parser stores options it doesn't recognize here. See above. 21040 26844 * </pre> 26845 * 26846 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21041 26847 */ 21042 26848 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( … … 21044 26850 } 21045 26851 /** 21046 * Protobuf type {@code google.protobuf. EnumOptions}26852 * Protobuf type {@code google.protobuf.OneofOptions} 21047 26853 */ 21048 public static final class EnumOptions extends 21049 com.google.protobuf.GeneratedMessage.ExtendableMessage< 21050 EnumOptions> implements 21051 // @@protoc_insertion_point(message_implements:google.protobuf.EnumOptions) 21052 EnumOptionsOrBuilder { 21053 // Use EnumOptions.newBuilder() to construct. 21054 private EnumOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.EnumOptions, ?> builder) { 26854 public static final class OneofOptions extends 26855 com.google.protobuf.GeneratedMessageV3.ExtendableMessage< 26856 OneofOptions> implements 26857 // @@protoc_insertion_point(message_implements:google.protobuf.OneofOptions) 26858 OneofOptionsOrBuilder { 26859 private static final long serialVersionUID = 0L; 26860 // Use OneofOptions.newBuilder() to construct. 26861 private OneofOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.OneofOptions, ?> builder) { 21055 26862 super(builder); 21056 this.unknownFields = builder.getUnknownFields(); 21057 } 21058 private EnumOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 21059 21060 private static final EnumOptions defaultInstance; 21061 public static EnumOptions getDefaultInstance() { 21062 return defaultInstance; 21063 } 21064 21065 @Override 21066 public EnumOptions getDefaultInstanceForType() { 21067 return defaultInstance; 21068 } 21069 21070 private final com.google.protobuf.UnknownFieldSet unknownFields; 26863 } 26864 private OneofOptions() { 26865 uninterpretedOption_ = java.util.Collections.emptyList(); 26866 } 26867 21071 26868 @java.lang.Override 21072 26869 public final com.google.protobuf.UnknownFieldSet 21073 26870 getUnknownFields() { 21074 26871 return this.unknownFields; 21075 26872 } 21076 private EnumOptions(26873 private OneofOptions( 21077 26874 com.google.protobuf.CodedInputStream input, 21078 26875 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 21079 26876 throws com.google.protobuf.InvalidProtocolBufferException { 21080 initFields();26877 this(); 21081 26878 int mutable_bitField0_ = 0; 21082 26879 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 21091 26888 break; 21092 26889 default: { 21093 if (!parseUnknownField(input, unknownFields, 21094 extensionRegistry, tag)) { 26890 if (!parseUnknownField( 26891 input, unknownFields, extensionRegistry, tag)) { 26892 done = true; 26893 } 26894 break; 26895 } 26896 case 7994: { 26897 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 26898 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 26899 mutable_bitField0_ |= 0x00000001; 26900 } 26901 uninterpretedOption_.add( 26902 input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 26903 break; 26904 } 26905 } 26906 } 26907 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 26908 throw e.setUnfinishedMessage(this); 26909 } catch (java.io.IOException e) { 26910 throw new com.google.protobuf.InvalidProtocolBufferException( 26911 e).setUnfinishedMessage(this); 26912 } finally { 26913 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 26914 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 26915 } 26916 this.unknownFields = unknownFields.build(); 26917 makeExtensionsImmutable(); 26918 } 26919 } 26920 public static final com.google.protobuf.Descriptors.Descriptor 26921 getDescriptor() { 26922 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofOptions_descriptor; 26923 } 26924 26925 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 26926 internalGetFieldAccessorTable() { 26927 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofOptions_fieldAccessorTable 26928 .ensureFieldAccessorsInitialized( 26929 com.google.protobuf.DescriptorProtos.OneofOptions.class, com.google.protobuf.DescriptorProtos.OneofOptions.Builder.class); 26930 } 26931 26932 public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; 26933 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 26934 /** 26935 * <pre> 26936 * The parser stores options it doesn't recognize here. See above. 26937 * </pre> 26938 * 26939 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 26940 */ 26941 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 26942 return uninterpretedOption_; 26943 } 26944 /** 26945 * <pre> 26946 * The parser stores options it doesn't recognize here. See above. 26947 * </pre> 26948 * 26949 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 26950 */ 26951 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 26952 getUninterpretedOptionOrBuilderList() { 26953 return uninterpretedOption_; 26954 } 26955 /** 26956 * <pre> 26957 * The parser stores options it doesn't recognize here. See above. 26958 * </pre> 26959 * 26960 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 26961 */ 26962 public int getUninterpretedOptionCount() { 26963 return uninterpretedOption_.size(); 26964 } 26965 /** 26966 * <pre> 26967 * The parser stores options it doesn't recognize here. See above. 26968 * </pre> 26969 * 26970 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 26971 */ 26972 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 26973 return uninterpretedOption_.get(index); 26974 } 26975 /** 26976 * <pre> 26977 * The parser stores options it doesn't recognize here. See above. 26978 * </pre> 26979 * 26980 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 26981 */ 26982 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 26983 int index) { 26984 return uninterpretedOption_.get(index); 26985 } 26986 26987 private byte memoizedIsInitialized = -1; 26988 public final boolean isInitialized() { 26989 byte isInitialized = memoizedIsInitialized; 26990 if (isInitialized == 1) return true; 26991 if (isInitialized == 0) return false; 26992 26993 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 26994 if (!getUninterpretedOption(i).isInitialized()) { 26995 memoizedIsInitialized = 0; 26996 return false; 26997 } 26998 } 26999 if (!extensionsAreInitialized()) { 27000 memoizedIsInitialized = 0; 27001 return false; 27002 } 27003 memoizedIsInitialized = 1; 27004 return true; 27005 } 27006 27007 public void writeTo(com.google.protobuf.CodedOutputStream output) 27008 throws java.io.IOException { 27009 com.google.protobuf.GeneratedMessageV3 27010 .ExtendableMessage<com.google.protobuf.DescriptorProtos.OneofOptions>.ExtensionWriter 27011 extensionWriter = newExtensionWriter(); 27012 for (int i = 0; i < uninterpretedOption_.size(); i++) { 27013 output.writeMessage(999, uninterpretedOption_.get(i)); 27014 } 27015 extensionWriter.writeUntil(536870912, output); 27016 unknownFields.writeTo(output); 27017 } 27018 27019 public int getSerializedSize() { 27020 int size = memoizedSize; 27021 if (size != -1) return size; 27022 27023 size = 0; 27024 for (int i = 0; i < uninterpretedOption_.size(); i++) { 27025 size += com.google.protobuf.CodedOutputStream 27026 .computeMessageSize(999, uninterpretedOption_.get(i)); 27027 } 27028 size += extensionsSerializedSize(); 27029 size += unknownFields.getSerializedSize(); 27030 memoizedSize = size; 27031 return size; 27032 } 27033 27034 @java.lang.Override 27035 public boolean equals(final java.lang.Object obj) { 27036 if (obj == this) { 27037 return true; 27038 } 27039 if (!(obj instanceof com.google.protobuf.DescriptorProtos.OneofOptions)) { 27040 return super.equals(obj); 27041 } 27042 com.google.protobuf.DescriptorProtos.OneofOptions other = (com.google.protobuf.DescriptorProtos.OneofOptions) obj; 27043 27044 boolean result = true; 27045 result = result && getUninterpretedOptionList() 27046 .equals(other.getUninterpretedOptionList()); 27047 result = result && unknownFields.equals(other.unknownFields); 27048 result = result && 27049 getExtensionFields().equals(other.getExtensionFields()); 27050 return result; 27051 } 27052 27053 @java.lang.Override 27054 public int hashCode() { 27055 if (memoizedHashCode != 0) { 27056 return memoizedHashCode; 27057 } 27058 int hash = 41; 27059 hash = (19 * hash) + getDescriptor().hashCode(); 27060 if (getUninterpretedOptionCount() > 0) { 27061 hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; 27062 hash = (53 * hash) + getUninterpretedOptionList().hashCode(); 27063 } 27064 hash = hashFields(hash, getExtensionFields()); 27065 hash = (29 * hash) + unknownFields.hashCode(); 27066 memoizedHashCode = hash; 27067 return hash; 27068 } 27069 27070 public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( 27071 java.nio.ByteBuffer data) 27072 throws com.google.protobuf.InvalidProtocolBufferException { 27073 return PARSER.parseFrom(data); 27074 } 27075 public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( 27076 java.nio.ByteBuffer data, 27077 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27078 throws com.google.protobuf.InvalidProtocolBufferException { 27079 return PARSER.parseFrom(data, extensionRegistry); 27080 } 27081 public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( 27082 com.google.protobuf.ByteString data) 27083 throws com.google.protobuf.InvalidProtocolBufferException { 27084 return PARSER.parseFrom(data); 27085 } 27086 public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( 27087 com.google.protobuf.ByteString data, 27088 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27089 throws com.google.protobuf.InvalidProtocolBufferException { 27090 return PARSER.parseFrom(data, extensionRegistry); 27091 } 27092 public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom(byte[] data) 27093 throws com.google.protobuf.InvalidProtocolBufferException { 27094 return PARSER.parseFrom(data); 27095 } 27096 public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( 27097 byte[] data, 27098 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27099 throws com.google.protobuf.InvalidProtocolBufferException { 27100 return PARSER.parseFrom(data, extensionRegistry); 27101 } 27102 public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom(java.io.InputStream input) 27103 throws java.io.IOException { 27104 return com.google.protobuf.GeneratedMessageV3 27105 .parseWithIOException(PARSER, input); 27106 } 27107 public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( 27108 java.io.InputStream input, 27109 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27110 throws java.io.IOException { 27111 return com.google.protobuf.GeneratedMessageV3 27112 .parseWithIOException(PARSER, input, extensionRegistry); 27113 } 27114 public static com.google.protobuf.DescriptorProtos.OneofOptions parseDelimitedFrom(java.io.InputStream input) 27115 throws java.io.IOException { 27116 return com.google.protobuf.GeneratedMessageV3 27117 .parseDelimitedWithIOException(PARSER, input); 27118 } 27119 public static com.google.protobuf.DescriptorProtos.OneofOptions parseDelimitedFrom( 27120 java.io.InputStream input, 27121 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27122 throws java.io.IOException { 27123 return com.google.protobuf.GeneratedMessageV3 27124 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 27125 } 27126 public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( 27127 com.google.protobuf.CodedInputStream input) 27128 throws java.io.IOException { 27129 return com.google.protobuf.GeneratedMessageV3 27130 .parseWithIOException(PARSER, input); 27131 } 27132 public static com.google.protobuf.DescriptorProtos.OneofOptions parseFrom( 27133 com.google.protobuf.CodedInputStream input, 27134 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27135 throws java.io.IOException { 27136 return com.google.protobuf.GeneratedMessageV3 27137 .parseWithIOException(PARSER, input, extensionRegistry); 27138 } 27139 27140 public Builder newBuilderForType() { return newBuilder(); } 27141 public static Builder newBuilder() { 27142 return DEFAULT_INSTANCE.toBuilder(); 27143 } 27144 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.OneofOptions prototype) { 27145 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 27146 } 27147 public Builder toBuilder() { 27148 return this == DEFAULT_INSTANCE 27149 ? new Builder() : new Builder().mergeFrom(this); 27150 } 27151 27152 @java.lang.Override 27153 protected Builder newBuilderForType( 27154 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 27155 Builder builder = new Builder(parent); 27156 return builder; 27157 } 27158 /** 27159 * Protobuf type {@code google.protobuf.OneofOptions} 27160 */ 27161 public static final class Builder extends 27162 com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< 27163 com.google.protobuf.DescriptorProtos.OneofOptions, Builder> implements 27164 // @@protoc_insertion_point(builder_implements:google.protobuf.OneofOptions) 27165 com.google.protobuf.DescriptorProtos.OneofOptionsOrBuilder { 27166 public static final com.google.protobuf.Descriptors.Descriptor 27167 getDescriptor() { 27168 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofOptions_descriptor; 27169 } 27170 27171 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 27172 internalGetFieldAccessorTable() { 27173 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofOptions_fieldAccessorTable 27174 .ensureFieldAccessorsInitialized( 27175 com.google.protobuf.DescriptorProtos.OneofOptions.class, com.google.protobuf.DescriptorProtos.OneofOptions.Builder.class); 27176 } 27177 27178 // Construct using com.google.protobuf.DescriptorProtos.OneofOptions.newBuilder() 27179 private Builder() { 27180 maybeForceBuilderInitialization(); 27181 } 27182 27183 private Builder( 27184 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 27185 super(parent); 27186 maybeForceBuilderInitialization(); 27187 } 27188 private void maybeForceBuilderInitialization() { 27189 if (com.google.protobuf.GeneratedMessageV3 27190 .alwaysUseFieldBuilders) { 27191 getUninterpretedOptionFieldBuilder(); 27192 } 27193 } 27194 public Builder clear() { 27195 super.clear(); 27196 if (uninterpretedOptionBuilder_ == null) { 27197 uninterpretedOption_ = java.util.Collections.emptyList(); 27198 bitField0_ = (bitField0_ & ~0x00000001); 27199 } else { 27200 uninterpretedOptionBuilder_.clear(); 27201 } 27202 return this; 27203 } 27204 27205 public com.google.protobuf.Descriptors.Descriptor 27206 getDescriptorForType() { 27207 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_OneofOptions_descriptor; 27208 } 27209 27210 public com.google.protobuf.DescriptorProtos.OneofOptions getDefaultInstanceForType() { 27211 return com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance(); 27212 } 27213 27214 public com.google.protobuf.DescriptorProtos.OneofOptions build() { 27215 com.google.protobuf.DescriptorProtos.OneofOptions result = buildPartial(); 27216 if (!result.isInitialized()) { 27217 throw newUninitializedMessageException(result); 27218 } 27219 return result; 27220 } 27221 27222 public com.google.protobuf.DescriptorProtos.OneofOptions buildPartial() { 27223 com.google.protobuf.DescriptorProtos.OneofOptions result = new com.google.protobuf.DescriptorProtos.OneofOptions(this); 27224 int from_bitField0_ = bitField0_; 27225 if (uninterpretedOptionBuilder_ == null) { 27226 if (((bitField0_ & 0x00000001) == 0x00000001)) { 27227 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 27228 bitField0_ = (bitField0_ & ~0x00000001); 27229 } 27230 result.uninterpretedOption_ = uninterpretedOption_; 27231 } else { 27232 result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); 27233 } 27234 onBuilt(); 27235 return result; 27236 } 27237 27238 public Builder clone() { 27239 return (Builder) super.clone(); 27240 } 27241 public Builder setField( 27242 com.google.protobuf.Descriptors.FieldDescriptor field, 27243 java.lang.Object value) { 27244 return (Builder) super.setField(field, value); 27245 } 27246 public Builder clearField( 27247 com.google.protobuf.Descriptors.FieldDescriptor field) { 27248 return (Builder) super.clearField(field); 27249 } 27250 public Builder clearOneof( 27251 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 27252 return (Builder) super.clearOneof(oneof); 27253 } 27254 public Builder setRepeatedField( 27255 com.google.protobuf.Descriptors.FieldDescriptor field, 27256 int index, java.lang.Object value) { 27257 return (Builder) super.setRepeatedField(field, index, value); 27258 } 27259 public Builder addRepeatedField( 27260 com.google.protobuf.Descriptors.FieldDescriptor field, 27261 java.lang.Object value) { 27262 return (Builder) super.addRepeatedField(field, value); 27263 } 27264 public <Type> Builder setExtension( 27265 com.google.protobuf.GeneratedMessage.GeneratedExtension< 27266 com.google.protobuf.DescriptorProtos.OneofOptions, Type> extension, 27267 Type value) { 27268 return (Builder) super.setExtension(extension, value); 27269 } 27270 public <Type> Builder setExtension( 27271 com.google.protobuf.GeneratedMessage.GeneratedExtension< 27272 com.google.protobuf.DescriptorProtos.OneofOptions, java.util.List<Type>> extension, 27273 int index, Type value) { 27274 return (Builder) super.setExtension(extension, index, value); 27275 } 27276 public <Type> Builder addExtension( 27277 com.google.protobuf.GeneratedMessage.GeneratedExtension< 27278 com.google.protobuf.DescriptorProtos.OneofOptions, java.util.List<Type>> extension, 27279 Type value) { 27280 return (Builder) super.addExtension(extension, value); 27281 } 27282 public <Type> Builder clearExtension( 27283 com.google.protobuf.GeneratedMessage.GeneratedExtension< 27284 com.google.protobuf.DescriptorProtos.OneofOptions, ?> extension) { 27285 return (Builder) super.clearExtension(extension); 27286 } 27287 public Builder mergeFrom(com.google.protobuf.Message other) { 27288 if (other instanceof com.google.protobuf.DescriptorProtos.OneofOptions) { 27289 return mergeFrom((com.google.protobuf.DescriptorProtos.OneofOptions)other); 27290 } else { 27291 super.mergeFrom(other); 27292 return this; 27293 } 27294 } 27295 27296 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.OneofOptions other) { 27297 if (other == com.google.protobuf.DescriptorProtos.OneofOptions.getDefaultInstance()) return this; 27298 if (uninterpretedOptionBuilder_ == null) { 27299 if (!other.uninterpretedOption_.isEmpty()) { 27300 if (uninterpretedOption_.isEmpty()) { 27301 uninterpretedOption_ = other.uninterpretedOption_; 27302 bitField0_ = (bitField0_ & ~0x00000001); 27303 } else { 27304 ensureUninterpretedOptionIsMutable(); 27305 uninterpretedOption_.addAll(other.uninterpretedOption_); 27306 } 27307 onChanged(); 27308 } 27309 } else { 27310 if (!other.uninterpretedOption_.isEmpty()) { 27311 if (uninterpretedOptionBuilder_.isEmpty()) { 27312 uninterpretedOptionBuilder_.dispose(); 27313 uninterpretedOptionBuilder_ = null; 27314 uninterpretedOption_ = other.uninterpretedOption_; 27315 bitField0_ = (bitField0_ & ~0x00000001); 27316 uninterpretedOptionBuilder_ = 27317 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 27318 getUninterpretedOptionFieldBuilder() : null; 27319 } else { 27320 uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); 27321 } 27322 } 27323 } 27324 this.mergeExtensionFields(other); 27325 this.mergeUnknownFields(other.unknownFields); 27326 onChanged(); 27327 return this; 27328 } 27329 27330 public final boolean isInitialized() { 27331 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 27332 if (!getUninterpretedOption(i).isInitialized()) { 27333 return false; 27334 } 27335 } 27336 if (!extensionsAreInitialized()) { 27337 return false; 27338 } 27339 return true; 27340 } 27341 27342 public Builder mergeFrom( 27343 com.google.protobuf.CodedInputStream input, 27344 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27345 throws java.io.IOException { 27346 com.google.protobuf.DescriptorProtos.OneofOptions parsedMessage = null; 27347 try { 27348 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 27349 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 27350 parsedMessage = (com.google.protobuf.DescriptorProtos.OneofOptions) e.getUnfinishedMessage(); 27351 throw e.unwrapIOException(); 27352 } finally { 27353 if (parsedMessage != null) { 27354 mergeFrom(parsedMessage); 27355 } 27356 } 27357 return this; 27358 } 27359 private int bitField0_; 27360 27361 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = 27362 java.util.Collections.emptyList(); 27363 private void ensureUninterpretedOptionIsMutable() { 27364 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 27365 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); 27366 bitField0_ |= 0x00000001; 27367 } 27368 } 27369 27370 private com.google.protobuf.RepeatedFieldBuilderV3< 27371 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 27372 27373 /** 27374 * <pre> 27375 * The parser stores options it doesn't recognize here. See above. 27376 * </pre> 27377 * 27378 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27379 */ 27380 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 27381 if (uninterpretedOptionBuilder_ == null) { 27382 return java.util.Collections.unmodifiableList(uninterpretedOption_); 27383 } else { 27384 return uninterpretedOptionBuilder_.getMessageList(); 27385 } 27386 } 27387 /** 27388 * <pre> 27389 * The parser stores options it doesn't recognize here. See above. 27390 * </pre> 27391 * 27392 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27393 */ 27394 public int getUninterpretedOptionCount() { 27395 if (uninterpretedOptionBuilder_ == null) { 27396 return uninterpretedOption_.size(); 27397 } else { 27398 return uninterpretedOptionBuilder_.getCount(); 27399 } 27400 } 27401 /** 27402 * <pre> 27403 * The parser stores options it doesn't recognize here. See above. 27404 * </pre> 27405 * 27406 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27407 */ 27408 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 27409 if (uninterpretedOptionBuilder_ == null) { 27410 return uninterpretedOption_.get(index); 27411 } else { 27412 return uninterpretedOptionBuilder_.getMessage(index); 27413 } 27414 } 27415 /** 27416 * <pre> 27417 * The parser stores options it doesn't recognize here. See above. 27418 * </pre> 27419 * 27420 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27421 */ 27422 public Builder setUninterpretedOption( 27423 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 27424 if (uninterpretedOptionBuilder_ == null) { 27425 if (value == null) { 27426 throw new NullPointerException(); 27427 } 27428 ensureUninterpretedOptionIsMutable(); 27429 uninterpretedOption_.set(index, value); 27430 onChanged(); 27431 } else { 27432 uninterpretedOptionBuilder_.setMessage(index, value); 27433 } 27434 return this; 27435 } 27436 /** 27437 * <pre> 27438 * The parser stores options it doesn't recognize here. See above. 27439 * </pre> 27440 * 27441 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27442 */ 27443 public Builder setUninterpretedOption( 27444 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { 27445 if (uninterpretedOptionBuilder_ == null) { 27446 ensureUninterpretedOptionIsMutable(); 27447 uninterpretedOption_.set(index, builderForValue.build()); 27448 onChanged(); 27449 } else { 27450 uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); 27451 } 27452 return this; 27453 } 27454 /** 27455 * <pre> 27456 * The parser stores options it doesn't recognize here. See above. 27457 * </pre> 27458 * 27459 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27460 */ 27461 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 27462 if (uninterpretedOptionBuilder_ == null) { 27463 if (value == null) { 27464 throw new NullPointerException(); 27465 } 27466 ensureUninterpretedOptionIsMutable(); 27467 uninterpretedOption_.add(value); 27468 onChanged(); 27469 } else { 27470 uninterpretedOptionBuilder_.addMessage(value); 27471 } 27472 return this; 27473 } 27474 /** 27475 * <pre> 27476 * The parser stores options it doesn't recognize here. See above. 27477 * </pre> 27478 * 27479 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27480 */ 27481 public Builder addUninterpretedOption( 27482 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { 27483 if (uninterpretedOptionBuilder_ == null) { 27484 if (value == null) { 27485 throw new NullPointerException(); 27486 } 27487 ensureUninterpretedOptionIsMutable(); 27488 uninterpretedOption_.add(index, value); 27489 onChanged(); 27490 } else { 27491 uninterpretedOptionBuilder_.addMessage(index, value); 27492 } 27493 return this; 27494 } 27495 /** 27496 * <pre> 27497 * The parser stores options it doesn't recognize here. See above. 27498 * </pre> 27499 * 27500 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27501 */ 27502 public Builder addUninterpretedOption( 27503 com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { 27504 if (uninterpretedOptionBuilder_ == null) { 27505 ensureUninterpretedOptionIsMutable(); 27506 uninterpretedOption_.add(builderForValue.build()); 27507 onChanged(); 27508 } else { 27509 uninterpretedOptionBuilder_.addMessage(builderForValue.build()); 27510 } 27511 return this; 27512 } 27513 /** 27514 * <pre> 27515 * The parser stores options it doesn't recognize here. See above. 27516 * </pre> 27517 * 27518 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27519 */ 27520 public Builder addUninterpretedOption( 27521 int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { 27522 if (uninterpretedOptionBuilder_ == null) { 27523 ensureUninterpretedOptionIsMutable(); 27524 uninterpretedOption_.add(index, builderForValue.build()); 27525 onChanged(); 27526 } else { 27527 uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); 27528 } 27529 return this; 27530 } 27531 /** 27532 * <pre> 27533 * The parser stores options it doesn't recognize here. See above. 27534 * </pre> 27535 * 27536 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27537 */ 27538 public Builder addAllUninterpretedOption( 27539 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { 27540 if (uninterpretedOptionBuilder_ == null) { 27541 ensureUninterpretedOptionIsMutable(); 27542 com.google.protobuf.AbstractMessageLite.Builder.addAll( 27543 values, uninterpretedOption_); 27544 onChanged(); 27545 } else { 27546 uninterpretedOptionBuilder_.addAllMessages(values); 27547 } 27548 return this; 27549 } 27550 /** 27551 * <pre> 27552 * The parser stores options it doesn't recognize here. See above. 27553 * </pre> 27554 * 27555 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27556 */ 27557 public Builder clearUninterpretedOption() { 27558 if (uninterpretedOptionBuilder_ == null) { 27559 uninterpretedOption_ = java.util.Collections.emptyList(); 27560 bitField0_ = (bitField0_ & ~0x00000001); 27561 onChanged(); 27562 } else { 27563 uninterpretedOptionBuilder_.clear(); 27564 } 27565 return this; 27566 } 27567 /** 27568 * <pre> 27569 * The parser stores options it doesn't recognize here. See above. 27570 * </pre> 27571 * 27572 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27573 */ 27574 public Builder removeUninterpretedOption(int index) { 27575 if (uninterpretedOptionBuilder_ == null) { 27576 ensureUninterpretedOptionIsMutable(); 27577 uninterpretedOption_.remove(index); 27578 onChanged(); 27579 } else { 27580 uninterpretedOptionBuilder_.remove(index); 27581 } 27582 return this; 27583 } 27584 /** 27585 * <pre> 27586 * The parser stores options it doesn't recognize here. See above. 27587 * </pre> 27588 * 27589 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27590 */ 27591 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( 27592 int index) { 27593 return getUninterpretedOptionFieldBuilder().getBuilder(index); 27594 } 27595 /** 27596 * <pre> 27597 * The parser stores options it doesn't recognize here. See above. 27598 * </pre> 27599 * 27600 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27601 */ 27602 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 27603 int index) { 27604 if (uninterpretedOptionBuilder_ == null) { 27605 return uninterpretedOption_.get(index); } else { 27606 return uninterpretedOptionBuilder_.getMessageOrBuilder(index); 27607 } 27608 } 27609 /** 27610 * <pre> 27611 * The parser stores options it doesn't recognize here. See above. 27612 * </pre> 27613 * 27614 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27615 */ 27616 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 27617 getUninterpretedOptionOrBuilderList() { 27618 if (uninterpretedOptionBuilder_ != null) { 27619 return uninterpretedOptionBuilder_.getMessageOrBuilderList(); 27620 } else { 27621 return java.util.Collections.unmodifiableList(uninterpretedOption_); 27622 } 27623 } 27624 /** 27625 * <pre> 27626 * The parser stores options it doesn't recognize here. See above. 27627 * </pre> 27628 * 27629 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27630 */ 27631 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { 27632 return getUninterpretedOptionFieldBuilder().addBuilder( 27633 com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 27634 } 27635 /** 27636 * <pre> 27637 * The parser stores options it doesn't recognize here. See above. 27638 * </pre> 27639 * 27640 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27641 */ 27642 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( 27643 int index) { 27644 return getUninterpretedOptionFieldBuilder().addBuilder( 27645 index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); 27646 } 27647 /** 27648 * <pre> 27649 * The parser stores options it doesn't recognize here. See above. 27650 * </pre> 27651 * 27652 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27653 */ 27654 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 27655 getUninterpretedOptionBuilderList() { 27656 return getUninterpretedOptionFieldBuilder().getBuilderList(); 27657 } 27658 private com.google.protobuf.RepeatedFieldBuilderV3< 27659 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 27660 getUninterpretedOptionFieldBuilder() { 27661 if (uninterpretedOptionBuilder_ == null) { 27662 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 27663 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( 27664 uninterpretedOption_, 27665 ((bitField0_ & 0x00000001) == 0x00000001), 27666 getParentForChildren(), 27667 isClean()); 27668 uninterpretedOption_ = null; 27669 } 27670 return uninterpretedOptionBuilder_; 27671 } 27672 public final Builder setUnknownFields( 27673 final com.google.protobuf.UnknownFieldSet unknownFields) { 27674 return super.setUnknownFields(unknownFields); 27675 } 27676 27677 public final Builder mergeUnknownFields( 27678 final com.google.protobuf.UnknownFieldSet unknownFields) { 27679 return super.mergeUnknownFields(unknownFields); 27680 } 27681 27682 27683 // @@protoc_insertion_point(builder_scope:google.protobuf.OneofOptions) 27684 } 27685 27686 // @@protoc_insertion_point(class_scope:google.protobuf.OneofOptions) 27687 private static final com.google.protobuf.DescriptorProtos.OneofOptions DEFAULT_INSTANCE; 27688 static { 27689 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.OneofOptions(); 27690 } 27691 27692 public static com.google.protobuf.DescriptorProtos.OneofOptions getDefaultInstance() { 27693 return DEFAULT_INSTANCE; 27694 } 27695 27696 @java.lang.Deprecated public static final com.google.protobuf.Parser<OneofOptions> 27697 PARSER = new com.google.protobuf.AbstractParser<OneofOptions>() { 27698 public OneofOptions parsePartialFrom( 27699 com.google.protobuf.CodedInputStream input, 27700 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27701 throws com.google.protobuf.InvalidProtocolBufferException { 27702 return new OneofOptions(input, extensionRegistry); 27703 } 27704 }; 27705 27706 public static com.google.protobuf.Parser<OneofOptions> parser() { 27707 return PARSER; 27708 } 27709 27710 @java.lang.Override 27711 public com.google.protobuf.Parser<OneofOptions> getParserForType() { 27712 return PARSER; 27713 } 27714 27715 public com.google.protobuf.DescriptorProtos.OneofOptions getDefaultInstanceForType() { 27716 return DEFAULT_INSTANCE; 27717 } 27718 27719 } 27720 27721 public interface EnumOptionsOrBuilder extends 27722 // @@protoc_insertion_point(interface_extends:google.protobuf.EnumOptions) 27723 com.google.protobuf.GeneratedMessageV3. 27724 ExtendableMessageOrBuilder<EnumOptions> { 27725 27726 /** 27727 * <pre> 27728 * Set this option to true to allow mapping different tag names to the same 27729 * value. 27730 * </pre> 27731 * 27732 * <code>optional bool allow_alias = 2;</code> 27733 */ 27734 boolean hasAllowAlias(); 27735 /** 27736 * <pre> 27737 * Set this option to true to allow mapping different tag names to the same 27738 * value. 27739 * </pre> 27740 * 27741 * <code>optional bool allow_alias = 2;</code> 27742 */ 27743 boolean getAllowAlias(); 27744 27745 /** 27746 * <pre> 27747 * Is this enum deprecated? 27748 * Depending on the target platform, this can emit Deprecated annotations 27749 * for the enum, or it will be completely ignored; in the very least, this 27750 * is a formalization for deprecating enums. 27751 * </pre> 27752 * 27753 * <code>optional bool deprecated = 3 [default = false];</code> 27754 */ 27755 boolean hasDeprecated(); 27756 /** 27757 * <pre> 27758 * Is this enum deprecated? 27759 * Depending on the target platform, this can emit Deprecated annotations 27760 * for the enum, or it will be completely ignored; in the very least, this 27761 * is a formalization for deprecating enums. 27762 * </pre> 27763 * 27764 * <code>optional bool deprecated = 3 [default = false];</code> 27765 */ 27766 boolean getDeprecated(); 27767 27768 /** 27769 * <pre> 27770 * The parser stores options it doesn't recognize here. See above. 27771 * </pre> 27772 * 27773 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27774 */ 27775 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 27776 getUninterpretedOptionList(); 27777 /** 27778 * <pre> 27779 * The parser stores options it doesn't recognize here. See above. 27780 * </pre> 27781 * 27782 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27783 */ 27784 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 27785 /** 27786 * <pre> 27787 * The parser stores options it doesn't recognize here. See above. 27788 * </pre> 27789 * 27790 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27791 */ 27792 int getUninterpretedOptionCount(); 27793 /** 27794 * <pre> 27795 * The parser stores options it doesn't recognize here. See above. 27796 * </pre> 27797 * 27798 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27799 */ 27800 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 27801 getUninterpretedOptionOrBuilderList(); 27802 /** 27803 * <pre> 27804 * The parser stores options it doesn't recognize here. See above. 27805 * </pre> 27806 * 27807 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27808 */ 27809 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 27810 int index); 27811 } 27812 /** 27813 * Protobuf type {@code google.protobuf.EnumOptions} 27814 */ 27815 public static final class EnumOptions extends 27816 com.google.protobuf.GeneratedMessageV3.ExtendableMessage< 27817 EnumOptions> implements 27818 // @@protoc_insertion_point(message_implements:google.protobuf.EnumOptions) 27819 EnumOptionsOrBuilder { 27820 private static final long serialVersionUID = 0L; 27821 // Use EnumOptions.newBuilder() to construct. 27822 private EnumOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.EnumOptions, ?> builder) { 27823 super(builder); 27824 } 27825 private EnumOptions() { 27826 allowAlias_ = false; 27827 deprecated_ = false; 27828 uninterpretedOption_ = java.util.Collections.emptyList(); 27829 } 27830 27831 @java.lang.Override 27832 public final com.google.protobuf.UnknownFieldSet 27833 getUnknownFields() { 27834 return this.unknownFields; 27835 } 27836 private EnumOptions( 27837 com.google.protobuf.CodedInputStream input, 27838 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27839 throws com.google.protobuf.InvalidProtocolBufferException { 27840 this(); 27841 int mutable_bitField0_ = 0; 27842 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 27843 com.google.protobuf.UnknownFieldSet.newBuilder(); 27844 try { 27845 boolean done = false; 27846 while (!done) { 27847 int tag = input.readTag(); 27848 switch (tag) { 27849 case 0: 27850 done = true; 27851 break; 27852 default: { 27853 if (!parseUnknownField( 27854 input, unknownFields, extensionRegistry, tag)) { 21095 27855 done = true; 21096 27856 } … … 21109 27869 case 7994: { 21110 27870 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 21111 uninterpretedOption_ = new java.util.ArrayList< >();27871 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 21112 27872 mutable_bitField0_ |= 0x00000004; 21113 27873 } 21114 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 27874 uninterpretedOption_.add( 27875 input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 21115 27876 break; 21116 27877 } … … 21121 27882 } catch (java.io.IOException e) { 21122 27883 throw new com.google.protobuf.InvalidProtocolBufferException( 21123 e .getMessage()).setUnfinishedMessage(this);27884 e).setUnfinishedMessage(this); 21124 27885 } finally { 21125 27886 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { … … 21135 27896 } 21136 27897 21137 @Override 21138 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 27898 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 21139 27899 internalGetFieldAccessorTable() { 21140 27900 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_fieldAccessorTable … … 21143 27903 } 21144 27904 21145 public static com.google.protobuf.Parser<EnumOptions> PARSER =21146 new com.google.protobuf.AbstractParser<EnumOptions>() {21147 @Override21148 public EnumOptions parsePartialFrom(21149 com.google.protobuf.CodedInputStream input,21150 com.google.protobuf.ExtensionRegistryLite extensionRegistry)21151 throws com.google.protobuf.InvalidProtocolBufferException {21152 return new EnumOptions(input, extensionRegistry);21153 }21154 };21155 21156 @java.lang.Override21157 public com.google.protobuf.Parser<EnumOptions> getParserForType() {21158 return PARSER;21159 }21160 21161 27905 private int bitField0_; 21162 27906 public static final int ALLOW_ALIAS_FIELD_NUMBER = 2; 21163 27907 private boolean allowAlias_; 21164 27908 /** 21165 * <code>optional bool allow_alias = 2;</code>21166 *21167 27909 * <pre> 21168 27910 * Set this option to true to allow mapping different tag names to the same 21169 27911 * value. 21170 27912 * </pre> 21171 */ 21172 @Override 21173 public boolean hasAllowAlias() { 27913 * 27914 * <code>optional bool allow_alias = 2;</code> 27915 */ 27916 public boolean hasAllowAlias() { 21174 27917 return ((bitField0_ & 0x00000001) == 0x00000001); 21175 27918 } 21176 27919 /** 21177 * <code>optional bool allow_alias = 2;</code>21178 *21179 27920 * <pre> 21180 27921 * Set this option to true to allow mapping different tag names to the same 21181 27922 * value. 21182 27923 * </pre> 21183 */ 21184 @Override 21185 public boolean getAllowAlias() { 27924 * 27925 * <code>optional bool allow_alias = 2;</code> 27926 */ 27927 public boolean getAllowAlias() { 21186 27928 return allowAlias_; 21187 27929 } … … 21190 27932 private boolean deprecated_; 21191 27933 /** 21192 * <code>optional bool deprecated = 3 [default = false];</code>21193 *21194 27934 * <pre> 21195 27935 * Is this enum deprecated? … … 21198 27938 * is a formalization for deprecating enums. 21199 27939 * </pre> 21200 */ 21201 @Override 21202 public boolean hasDeprecated() { 27940 * 27941 * <code>optional bool deprecated = 3 [default = false];</code> 27942 */ 27943 public boolean hasDeprecated() { 21203 27944 return ((bitField0_ & 0x00000002) == 0x00000002); 21204 27945 } 21205 27946 /** 21206 * <code>optional bool deprecated = 3 [default = false];</code>21207 *21208 27947 * <pre> 21209 27948 * Is this enum deprecated? … … 21212 27951 * is a formalization for deprecating enums. 21213 27952 * </pre> 21214 */ 21215 @Override 21216 public boolean getDeprecated() { 27953 * 27954 * <code>optional bool deprecated = 3 [default = false];</code> 27955 */ 27956 public boolean getDeprecated() { 21217 27957 return deprecated_; 21218 27958 } … … 21221 27961 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 21222 27962 /** 21223 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>21224 *21225 27963 * <pre> 21226 27964 * The parser stores options it doesn't recognize here. See above. 21227 27965 * </pre> 21228 */ 21229 @Override 21230 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 27966 * 27967 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27968 */ 27969 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 21231 27970 return uninterpretedOption_; 21232 27971 } 21233 27972 /** 21234 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>21235 *21236 27973 * <pre> 21237 27974 * The parser stores options it doesn't recognize here. See above. 21238 27975 * </pre> 21239 */ 21240 @Override 21241 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 27976 * 27977 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27978 */ 27979 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 21242 27980 getUninterpretedOptionOrBuilderList() { 21243 27981 return uninterpretedOption_; 21244 27982 } 21245 27983 /** 21246 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>21247 *21248 27984 * <pre> 21249 27985 * The parser stores options it doesn't recognize here. See above. 21250 27986 * </pre> 21251 */ 21252 @Override 21253 public int getUninterpretedOptionCount() { 27987 * 27988 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27989 */ 27990 public int getUninterpretedOptionCount() { 21254 27991 return uninterpretedOption_.size(); 21255 27992 } 21256 27993 /** 21257 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>21258 *21259 27994 * <pre> 21260 27995 * The parser stores options it doesn't recognize here. See above. 21261 27996 * </pre> 21262 */ 21263 @Override 21264 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 27997 * 27998 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 27999 */ 28000 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 21265 28001 return uninterpretedOption_.get(index); 21266 28002 } 21267 28003 /** 21268 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>21269 *21270 28004 * <pre> 21271 28005 * The parser stores options it doesn't recognize here. See above. 21272 28006 * </pre> 21273 */ 21274 @Override 21275 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 28007 * 28008 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 28009 */ 28010 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 21276 28011 int index) { 21277 28012 return uninterpretedOption_.get(index); 21278 28013 } 21279 28014 21280 private void initFields() {21281 allowAlias_ = false;21282 deprecated_ = false;21283 uninterpretedOption_ = java.util.Collections.emptyList();21284 }21285 28015 private byte memoizedIsInitialized = -1; 21286 @Override 21287 public final boolean isInitialized() { 28016 public final boolean isInitialized() { 21288 28017 byte isInitialized = memoizedIsInitialized; 21289 28018 if (isInitialized == 1) return true; … … 21304 28033 } 21305 28034 21306 @Override 21307 public void writeTo(com.google.protobuf.CodedOutputStream output) 28035 public void writeTo(com.google.protobuf.CodedOutputStream output) 21308 28036 throws java.io.IOException { 21309 getSerializedSize(); 21310 com.google.protobuf.GeneratedMessage 21311 .ExtendableMessage<com.google.protobuf.DescriptorProtos.EnumOptions>.ExtensionWriter extensionWriter = 21312 newExtensionWriter(); 28037 com.google.protobuf.GeneratedMessageV3 28038 .ExtendableMessage<com.google.protobuf.DescriptorProtos.EnumOptions>.ExtensionWriter 28039 extensionWriter = newExtensionWriter(); 21313 28040 if (((bitField0_ & 0x00000001) == 0x00000001)) { 21314 28041 output.writeBool(2, allowAlias_); … … 21321 28048 } 21322 28049 extensionWriter.writeUntil(536870912, output); 21323 getUnknownFields().writeTo(output); 21324 } 21325 21326 private int memoizedSerializedSize = -1; 21327 @Override 21328 public int getSerializedSize() { 21329 int size = memoizedSerializedSize; 28050 unknownFields.writeTo(output); 28051 } 28052 28053 public int getSerializedSize() { 28054 int size = memoizedSize; 21330 28055 if (size != -1) return size; 21331 28056 … … 21344 28069 } 21345 28070 size += extensionsSerializedSize(); 21346 size += getUnknownFields().getSerializedSize();21347 memoizedS erializedSize = size;28071 size += unknownFields.getSerializedSize(); 28072 memoizedSize = size; 21348 28073 return size; 21349 28074 } 21350 28075 21351 private static final long serialVersionUID = 0L;21352 28076 @java.lang.Override 21353 protected java.lang.Object writeReplace() 21354 throws java.io.ObjectStreamException { 21355 return super.writeReplace(); 21356 } 21357 28077 public boolean equals(final java.lang.Object obj) { 28078 if (obj == this) { 28079 return true; 28080 } 28081 if (!(obj instanceof com.google.protobuf.DescriptorProtos.EnumOptions)) { 28082 return super.equals(obj); 28083 } 28084 com.google.protobuf.DescriptorProtos.EnumOptions other = (com.google.protobuf.DescriptorProtos.EnumOptions) obj; 28085 28086 boolean result = true; 28087 result = result && (hasAllowAlias() == other.hasAllowAlias()); 28088 if (hasAllowAlias()) { 28089 result = result && (getAllowAlias() 28090 == other.getAllowAlias()); 28091 } 28092 result = result && (hasDeprecated() == other.hasDeprecated()); 28093 if (hasDeprecated()) { 28094 result = result && (getDeprecated() 28095 == other.getDeprecated()); 28096 } 28097 result = result && getUninterpretedOptionList() 28098 .equals(other.getUninterpretedOptionList()); 28099 result = result && unknownFields.equals(other.unknownFields); 28100 result = result && 28101 getExtensionFields().equals(other.getExtensionFields()); 28102 return result; 28103 } 28104 28105 @java.lang.Override 28106 public int hashCode() { 28107 if (memoizedHashCode != 0) { 28108 return memoizedHashCode; 28109 } 28110 int hash = 41; 28111 hash = (19 * hash) + getDescriptor().hashCode(); 28112 if (hasAllowAlias()) { 28113 hash = (37 * hash) + ALLOW_ALIAS_FIELD_NUMBER; 28114 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 28115 getAllowAlias()); 28116 } 28117 if (hasDeprecated()) { 28118 hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; 28119 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 28120 getDeprecated()); 28121 } 28122 if (getUninterpretedOptionCount() > 0) { 28123 hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; 28124 hash = (53 * hash) + getUninterpretedOptionList().hashCode(); 28125 } 28126 hash = hashFields(hash, getExtensionFields()); 28127 hash = (29 * hash) + unknownFields.hashCode(); 28128 memoizedHashCode = hash; 28129 return hash; 28130 } 28131 28132 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( 28133 java.nio.ByteBuffer data) 28134 throws com.google.protobuf.InvalidProtocolBufferException { 28135 return PARSER.parseFrom(data); 28136 } 28137 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( 28138 java.nio.ByteBuffer data, 28139 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 28140 throws com.google.protobuf.InvalidProtocolBufferException { 28141 return PARSER.parseFrom(data, extensionRegistry); 28142 } 21358 28143 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( 21359 28144 com.google.protobuf.ByteString data) … … 21379 28164 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom(java.io.InputStream input) 21380 28165 throws java.io.IOException { 21381 return PARSER.parseFrom(input); 28166 return com.google.protobuf.GeneratedMessageV3 28167 .parseWithIOException(PARSER, input); 21382 28168 } 21383 28169 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( … … 21385 28171 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 21386 28172 throws java.io.IOException { 21387 return PARSER.parseFrom(input, extensionRegistry); 28173 return com.google.protobuf.GeneratedMessageV3 28174 .parseWithIOException(PARSER, input, extensionRegistry); 21388 28175 } 21389 28176 public static com.google.protobuf.DescriptorProtos.EnumOptions parseDelimitedFrom(java.io.InputStream input) 21390 28177 throws java.io.IOException { 21391 return PARSER.parseDelimitedFrom(input); 28178 return com.google.protobuf.GeneratedMessageV3 28179 .parseDelimitedWithIOException(PARSER, input); 21392 28180 } 21393 28181 public static com.google.protobuf.DescriptorProtos.EnumOptions parseDelimitedFrom( … … 21395 28183 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 21396 28184 throws java.io.IOException { 21397 return PARSER.parseDelimitedFrom(input, extensionRegistry); 28185 return com.google.protobuf.GeneratedMessageV3 28186 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 21398 28187 } 21399 28188 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( 21400 28189 com.google.protobuf.CodedInputStream input) 21401 28190 throws java.io.IOException { 21402 return PARSER.parseFrom(input); 28191 return com.google.protobuf.GeneratedMessageV3 28192 .parseWithIOException(PARSER, input); 21403 28193 } 21404 28194 public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( … … 21406 28196 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 21407 28197 throws java.io.IOException { 21408 return PARSER.parseFrom(input, extensionRegistry); 21409 } 21410 21411 public static Builder newBuilder() { return Builder.create(); } 21412 @Override 21413 public Builder newBuilderForType() { return newBuilder(); } 28198 return com.google.protobuf.GeneratedMessageV3 28199 .parseWithIOException(PARSER, input, extensionRegistry); 28200 } 28201 28202 public Builder newBuilderForType() { return newBuilder(); } 28203 public static Builder newBuilder() { 28204 return DEFAULT_INSTANCE.toBuilder(); 28205 } 21414 28206 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumOptions prototype) { 21415 return newBuilder().mergeFrom(prototype); 21416 } 21417 @Override 21418 public Builder toBuilder() { return newBuilder(this); } 28207 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 28208 } 28209 public Builder toBuilder() { 28210 return this == DEFAULT_INSTANCE 28211 ? new Builder() : new Builder().mergeFrom(this); 28212 } 21419 28213 21420 28214 @java.lang.Override 21421 28215 protected Builder newBuilderForType( 21422 com.google.protobuf.GeneratedMessage .BuilderParent parent) {28216 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 21423 28217 Builder builder = new Builder(parent); 21424 28218 return builder; … … 21428 28222 */ 21429 28223 public static final class Builder extends 21430 com.google.protobuf.GeneratedMessage .ExtendableBuilder<28224 com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< 21431 28225 com.google.protobuf.DescriptorProtos.EnumOptions, Builder> implements 21432 28226 // @@protoc_insertion_point(builder_implements:google.protobuf.EnumOptions) … … 21437 28231 } 21438 28232 21439 @Override 21440 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 28233 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 21441 28234 internalGetFieldAccessorTable() { 21442 28235 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_fieldAccessorTable … … 21451 28244 21452 28245 private Builder( 21453 com.google.protobuf.GeneratedMessage .BuilderParent parent) {28246 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 21454 28247 super(parent); 21455 28248 maybeForceBuilderInitialization(); 21456 28249 } 21457 28250 private void maybeForceBuilderInitialization() { 21458 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 28251 if (com.google.protobuf.GeneratedMessageV3 28252 .alwaysUseFieldBuilders) { 21459 28253 getUninterpretedOptionFieldBuilder(); 21460 28254 } 21461 28255 } 21462 private static Builder create() { 21463 return new Builder(); 21464 } 21465 21466 @Override 21467 public Builder clear() { 28256 public Builder clear() { 21468 28257 super.clear(); 21469 28258 allowAlias_ = false; … … 21480 28269 } 21481 28270 21482 @Override 21483 public Builder clone() { 21484 return create().mergeFrom(buildPartial()); 21485 } 21486 21487 @Override 21488 public com.google.protobuf.Descriptors.Descriptor 28271 public com.google.protobuf.Descriptors.Descriptor 21489 28272 getDescriptorForType() { 21490 28273 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumOptions_descriptor; 21491 28274 } 21492 28275 21493 @Override 21494 public com.google.protobuf.DescriptorProtos.EnumOptions getDefaultInstanceForType() { 28276 public com.google.protobuf.DescriptorProtos.EnumOptions getDefaultInstanceForType() { 21495 28277 return com.google.protobuf.DescriptorProtos.EnumOptions.getDefaultInstance(); 21496 28278 } 21497 28279 21498 @Override 21499 public com.google.protobuf.DescriptorProtos.EnumOptions build() { 28280 public com.google.protobuf.DescriptorProtos.EnumOptions build() { 21500 28281 com.google.protobuf.DescriptorProtos.EnumOptions result = buildPartial(); 21501 28282 if (!result.isInitialized()) { … … 21505 28286 } 21506 28287 21507 @Override 21508 public com.google.protobuf.DescriptorProtos.EnumOptions buildPartial() { 28288 public com.google.protobuf.DescriptorProtos.EnumOptions buildPartial() { 21509 28289 com.google.protobuf.DescriptorProtos.EnumOptions result = new com.google.protobuf.DescriptorProtos.EnumOptions(this); 21510 28290 int from_bitField0_ = bitField0_; … … 21532 28312 } 21533 28313 21534 @Override 21535 public Builder mergeFrom(com.google.protobuf.Message other) { 28314 public Builder clone() { 28315 return (Builder) super.clone(); 28316 } 28317 public Builder setField( 28318 com.google.protobuf.Descriptors.FieldDescriptor field, 28319 java.lang.Object value) { 28320 return (Builder) super.setField(field, value); 28321 } 28322 public Builder clearField( 28323 com.google.protobuf.Descriptors.FieldDescriptor field) { 28324 return (Builder) super.clearField(field); 28325 } 28326 public Builder clearOneof( 28327 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 28328 return (Builder) super.clearOneof(oneof); 28329 } 28330 public Builder setRepeatedField( 28331 com.google.protobuf.Descriptors.FieldDescriptor field, 28332 int index, java.lang.Object value) { 28333 return (Builder) super.setRepeatedField(field, index, value); 28334 } 28335 public Builder addRepeatedField( 28336 com.google.protobuf.Descriptors.FieldDescriptor field, 28337 java.lang.Object value) { 28338 return (Builder) super.addRepeatedField(field, value); 28339 } 28340 public <Type> Builder setExtension( 28341 com.google.protobuf.GeneratedMessage.GeneratedExtension< 28342 com.google.protobuf.DescriptorProtos.EnumOptions, Type> extension, 28343 Type value) { 28344 return (Builder) super.setExtension(extension, value); 28345 } 28346 public <Type> Builder setExtension( 28347 com.google.protobuf.GeneratedMessage.GeneratedExtension< 28348 com.google.protobuf.DescriptorProtos.EnumOptions, java.util.List<Type>> extension, 28349 int index, Type value) { 28350 return (Builder) super.setExtension(extension, index, value); 28351 } 28352 public <Type> Builder addExtension( 28353 com.google.protobuf.GeneratedMessage.GeneratedExtension< 28354 com.google.protobuf.DescriptorProtos.EnumOptions, java.util.List<Type>> extension, 28355 Type value) { 28356 return (Builder) super.addExtension(extension, value); 28357 } 28358 public <Type> Builder clearExtension( 28359 com.google.protobuf.GeneratedMessage.GeneratedExtension< 28360 com.google.protobuf.DescriptorProtos.EnumOptions, ?> extension) { 28361 return (Builder) super.clearExtension(extension); 28362 } 28363 public Builder mergeFrom(com.google.protobuf.Message other) { 21536 28364 if (other instanceof com.google.protobuf.DescriptorProtos.EnumOptions) { 21537 28365 return mergeFrom((com.google.protobuf.DescriptorProtos.EnumOptions)other); … … 21568 28396 uninterpretedOption_ = other.uninterpretedOption_; 21569 28397 bitField0_ = (bitField0_ & ~0x00000004); 21570 uninterpretedOptionBuilder_ = 21571 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?28398 uninterpretedOptionBuilder_ = 28399 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 21572 28400 getUninterpretedOptionFieldBuilder() : null; 21573 28401 } else { … … 21577 28405 } 21578 28406 this.mergeExtensionFields(other); 21579 this.mergeUnknownFields(other. getUnknownFields());21580 return this;21581 }21582 21583 @Override 21584 28407 this.mergeUnknownFields(other.unknownFields); 28408 onChanged(); 28409 return this; 28410 } 28411 28412 public final boolean isInitialized() { 21585 28413 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 21586 28414 if (!getUninterpretedOption(i).isInitialized()) { 21587 21588 28415 return false; 21589 28416 } 21590 28417 } 21591 28418 if (!extensionsAreInitialized()) { 21592 21593 28419 return false; 21594 28420 } … … 21596 28422 } 21597 28423 21598 @Override 21599 public Builder mergeFrom( 28424 public Builder mergeFrom( 21600 28425 com.google.protobuf.CodedInputStream input, 21601 28426 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 21606 28431 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 21607 28432 parsedMessage = (com.google.protobuf.DescriptorProtos.EnumOptions) e.getUnfinishedMessage(); 21608 throw e ;28433 throw e.unwrapIOException(); 21609 28434 } finally { 21610 28435 if (parsedMessage != null) { … … 21618 28443 private boolean allowAlias_ ; 21619 28444 /** 21620 * <code>optional bool allow_alias = 2;</code>21621 *21622 28445 * <pre> 21623 28446 * Set this option to true to allow mapping different tag names to the same 21624 28447 * value. 21625 28448 * </pre> 21626 */ 21627 @Override 21628 public boolean hasAllowAlias() { 28449 * 28450 * <code>optional bool allow_alias = 2;</code> 28451 */ 28452 public boolean hasAllowAlias() { 21629 28453 return ((bitField0_ & 0x00000001) == 0x00000001); 21630 28454 } 21631 28455 /** 21632 * <code>optional bool allow_alias = 2;</code>21633 *21634 28456 * <pre> 21635 28457 * Set this option to true to allow mapping different tag names to the same 21636 28458 * value. 21637 28459 * </pre> 21638 */ 21639 @Override 21640 public boolean getAllowAlias() { 28460 * 28461 * <code>optional bool allow_alias = 2;</code> 28462 */ 28463 public boolean getAllowAlias() { 21641 28464 return allowAlias_; 21642 28465 } 21643 28466 /** 21644 * <code>optional bool allow_alias = 2;</code>21645 *21646 28467 * <pre> 21647 28468 * Set this option to true to allow mapping different tag names to the same 21648 28469 * value. 21649 28470 * </pre> 28471 * 28472 * <code>optional bool allow_alias = 2;</code> 21650 28473 */ 21651 28474 public Builder setAllowAlias(boolean value) { … … 21656 28479 } 21657 28480 /** 21658 * <code>optional bool allow_alias = 2;</code>21659 *21660 28481 * <pre> 21661 28482 * Set this option to true to allow mapping different tag names to the same 21662 28483 * value. 21663 28484 * </pre> 28485 * 28486 * <code>optional bool allow_alias = 2;</code> 21664 28487 */ 21665 28488 public Builder clearAllowAlias() { … … 21672 28495 private boolean deprecated_ ; 21673 28496 /** 21674 * <code>optional bool deprecated = 3 [default = false];</code>21675 *21676 28497 * <pre> 21677 28498 * Is this enum deprecated? … … 21680 28501 * is a formalization for deprecating enums. 21681 28502 * </pre> 21682 */ 21683 @Override 21684 public boolean hasDeprecated() { 28503 * 28504 * <code>optional bool deprecated = 3 [default = false];</code> 28505 */ 28506 public boolean hasDeprecated() { 21685 28507 return ((bitField0_ & 0x00000002) == 0x00000002); 21686 28508 } 21687 28509 /** 21688 * <code>optional bool deprecated = 3 [default = false];</code>21689 *21690 28510 * <pre> 21691 28511 * Is this enum deprecated? … … 21694 28514 * is a formalization for deprecating enums. 21695 28515 * </pre> 21696 */ 21697 @Override 21698 public boolean getDeprecated() { 28516 * 28517 * <code>optional bool deprecated = 3 [default = false];</code> 28518 */ 28519 public boolean getDeprecated() { 21699 28520 return deprecated_; 21700 28521 } 21701 28522 /** 21702 * <code>optional bool deprecated = 3 [default = false];</code>21703 *21704 28523 * <pre> 21705 28524 * Is this enum deprecated? … … 21708 28527 * is a formalization for deprecating enums. 21709 28528 * </pre> 28529 * 28530 * <code>optional bool deprecated = 3 [default = false];</code> 21710 28531 */ 21711 28532 public Builder setDeprecated(boolean value) { … … 21716 28537 } 21717 28538 /** 21718 * <code>optional bool deprecated = 3 [default = false];</code>21719 *21720 28539 * <pre> 21721 28540 * Is this enum deprecated? … … 21724 28543 * is a formalization for deprecating enums. 21725 28544 * </pre> 28545 * 28546 * <code>optional bool deprecated = 3 [default = false];</code> 21726 28547 */ 21727 28548 public Builder clearDeprecated() { … … 21736 28557 private void ensureUninterpretedOptionIsMutable() { 21737 28558 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 21738 uninterpretedOption_ = new java.util.ArrayList< >(uninterpretedOption_);28559 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); 21739 28560 bitField0_ |= 0x00000004; 21740 28561 } 21741 28562 } 21742 28563 21743 private com.google.protobuf.RepeatedFieldBuilder <28564 private com.google.protobuf.RepeatedFieldBuilderV3< 21744 28565 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 21745 28566 21746 28567 /** 28568 * <pre> 28569 * The parser stores options it doesn't recognize here. See above. 28570 * </pre> 28571 * 21747 28572 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21748 * 21749 * <pre> 21750 * The parser stores options it doesn't recognize here. See above. 21751 * </pre> 21752 */ 21753 @Override 21754 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 28573 */ 28574 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 21755 28575 if (uninterpretedOptionBuilder_ == null) { 21756 28576 return java.util.Collections.unmodifiableList(uninterpretedOption_); … … 21760 28580 } 21761 28581 /** 28582 * <pre> 28583 * The parser stores options it doesn't recognize here. See above. 28584 * </pre> 28585 * 21762 28586 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21763 * 21764 * <pre> 21765 * The parser stores options it doesn't recognize here. See above. 21766 * </pre> 21767 */ 21768 @Override 21769 public int getUninterpretedOptionCount() { 28587 */ 28588 public int getUninterpretedOptionCount() { 21770 28589 if (uninterpretedOptionBuilder_ == null) { 21771 28590 return uninterpretedOption_.size(); … … 21775 28594 } 21776 28595 /** 28596 * <pre> 28597 * The parser stores options it doesn't recognize here. See above. 28598 * </pre> 28599 * 21777 28600 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21778 * 21779 * <pre> 21780 * The parser stores options it doesn't recognize here. See above. 21781 * </pre> 21782 */ 21783 @Override 21784 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 28601 */ 28602 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 21785 28603 if (uninterpretedOptionBuilder_ == null) { 21786 28604 return uninterpretedOption_.get(index); … … 21790 28608 } 21791 28609 /** 28610 * <pre> 28611 * The parser stores options it doesn't recognize here. See above. 28612 * </pre> 28613 * 21792 28614 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21793 *21794 * <pre>21795 * The parser stores options it doesn't recognize here. See above.21796 * </pre>21797 28615 */ 21798 28616 public Builder setUninterpretedOption( … … 21811 28629 } 21812 28630 /** 28631 * <pre> 28632 * The parser stores options it doesn't recognize here. See above. 28633 * </pre> 28634 * 21813 28635 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21814 *21815 * <pre>21816 * The parser stores options it doesn't recognize here. See above.21817 * </pre>21818 28636 */ 21819 28637 public Builder setUninterpretedOption( … … 21829 28647 } 21830 28648 /** 28649 * <pre> 28650 * The parser stores options it doesn't recognize here. See above. 28651 * </pre> 28652 * 21831 28653 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21832 *21833 * <pre>21834 * The parser stores options it doesn't recognize here. See above.21835 * </pre>21836 28654 */ 21837 28655 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 21849 28667 } 21850 28668 /** 28669 * <pre> 28670 * The parser stores options it doesn't recognize here. See above. 28671 * </pre> 28672 * 21851 28673 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21852 *21853 * <pre>21854 * The parser stores options it doesn't recognize here. See above.21855 * </pre>21856 28674 */ 21857 28675 public Builder addUninterpretedOption( … … 21870 28688 } 21871 28689 /** 28690 * <pre> 28691 * The parser stores options it doesn't recognize here. See above. 28692 * </pre> 28693 * 21872 28694 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21873 *21874 * <pre>21875 * The parser stores options it doesn't recognize here. See above.21876 * </pre>21877 28695 */ 21878 28696 public Builder addUninterpretedOption( … … 21888 28706 } 21889 28707 /** 28708 * <pre> 28709 * The parser stores options it doesn't recognize here. See above. 28710 * </pre> 28711 * 21890 28712 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21891 *21892 * <pre>21893 * The parser stores options it doesn't recognize here. See above.21894 * </pre>21895 28713 */ 21896 28714 public Builder addUninterpretedOption( … … 21906 28724 } 21907 28725 /** 28726 * <pre> 28727 * The parser stores options it doesn't recognize here. See above. 28728 * </pre> 28729 * 21908 28730 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21909 *21910 * <pre>21911 * The parser stores options it doesn't recognize here. See above.21912 * </pre>21913 28731 */ 21914 28732 public Builder addAllUninterpretedOption( … … 21925 28743 } 21926 28744 /** 28745 * <pre> 28746 * The parser stores options it doesn't recognize here. See above. 28747 * </pre> 28748 * 21927 28749 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21928 *21929 * <pre>21930 * The parser stores options it doesn't recognize here. See above.21931 * </pre>21932 28750 */ 21933 28751 public Builder clearUninterpretedOption() { … … 21942 28760 } 21943 28761 /** 28762 * <pre> 28763 * The parser stores options it doesn't recognize here. See above. 28764 * </pre> 28765 * 21944 28766 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21945 *21946 * <pre>21947 * The parser stores options it doesn't recognize here. See above.21948 * </pre>21949 28767 */ 21950 28768 public Builder removeUninterpretedOption(int index) { … … 21959 28777 } 21960 28778 /** 28779 * <pre> 28780 * The parser stores options it doesn't recognize here. See above. 28781 * </pre> 28782 * 21961 28783 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21962 *21963 * <pre>21964 * The parser stores options it doesn't recognize here. See above.21965 * </pre>21966 28784 */ 21967 28785 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( … … 21970 28788 } 21971 28789 /** 28790 * <pre> 28791 * The parser stores options it doesn't recognize here. See above. 28792 * </pre> 28793 * 21972 28794 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21973 * 21974 * <pre> 21975 * The parser stores options it doesn't recognize here. See above. 21976 * </pre> 21977 */ 21978 @Override 21979 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 28795 */ 28796 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 21980 28797 int index) { 21981 28798 if (uninterpretedOptionBuilder_ == null) { … … 21985 28802 } 21986 28803 /** 28804 * <pre> 28805 * The parser stores options it doesn't recognize here. See above. 28806 * </pre> 28807 * 21987 28808 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 21988 * 21989 * <pre> 21990 * The parser stores options it doesn't recognize here. See above. 21991 * </pre> 21992 */ 21993 @Override 21994 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 28809 */ 28810 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 21995 28811 getUninterpretedOptionOrBuilderList() { 21996 28812 if (uninterpretedOptionBuilder_ != null) { … … 22001 28817 } 22002 28818 /** 28819 * <pre> 28820 * The parser stores options it doesn't recognize here. See above. 28821 * </pre> 28822 * 22003 28823 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22004 *22005 * <pre>22006 * The parser stores options it doesn't recognize here. See above.22007 * </pre>22008 28824 */ 22009 28825 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { … … 22012 28828 } 22013 28829 /** 28830 * <pre> 28831 * The parser stores options it doesn't recognize here. See above. 28832 * </pre> 28833 * 22014 28834 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22015 *22016 * <pre>22017 * The parser stores options it doesn't recognize here. See above.22018 * </pre>22019 28835 */ 22020 28836 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( … … 22024 28840 } 22025 28841 /** 28842 * <pre> 28843 * The parser stores options it doesn't recognize here. See above. 28844 * </pre> 28845 * 22026 28846 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22027 * 22028 * <pre> 22029 * The parser stores options it doesn't recognize here. See above. 22030 * </pre> 22031 */ 22032 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 28847 */ 28848 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 22033 28849 getUninterpretedOptionBuilderList() { 22034 28850 return getUninterpretedOptionFieldBuilder().getBuilderList(); 22035 28851 } 22036 private com.google.protobuf.RepeatedFieldBuilder <22037 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 28852 private com.google.protobuf.RepeatedFieldBuilderV3< 28853 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 22038 28854 getUninterpretedOptionFieldBuilder() { 22039 28855 if (uninterpretedOptionBuilder_ == null) { 22040 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 28856 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 28857 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( 22041 28858 uninterpretedOption_, 22042 28859 ((bitField0_ & 0x00000004) == 0x00000004), … … 22047 28864 return uninterpretedOptionBuilder_; 22048 28865 } 28866 public final Builder setUnknownFields( 28867 final com.google.protobuf.UnknownFieldSet unknownFields) { 28868 return super.setUnknownFields(unknownFields); 28869 } 28870 28871 public final Builder mergeUnknownFields( 28872 final com.google.protobuf.UnknownFieldSet unknownFields) { 28873 return super.mergeUnknownFields(unknownFields); 28874 } 28875 22049 28876 22050 28877 // @@protoc_insertion_point(builder_scope:google.protobuf.EnumOptions) 22051 28878 } 22052 28879 28880 // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions) 28881 private static final com.google.protobuf.DescriptorProtos.EnumOptions DEFAULT_INSTANCE; 22053 28882 static { 22054 defaultInstance = new EnumOptions(true); 22055 defaultInstance.initFields(); 22056 } 22057 22058 // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions) 28883 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.EnumOptions(); 28884 } 28885 28886 public static com.google.protobuf.DescriptorProtos.EnumOptions getDefaultInstance() { 28887 return DEFAULT_INSTANCE; 28888 } 28889 28890 @java.lang.Deprecated public static final com.google.protobuf.Parser<EnumOptions> 28891 PARSER = new com.google.protobuf.AbstractParser<EnumOptions>() { 28892 public EnumOptions parsePartialFrom( 28893 com.google.protobuf.CodedInputStream input, 28894 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 28895 throws com.google.protobuf.InvalidProtocolBufferException { 28896 return new EnumOptions(input, extensionRegistry); 28897 } 28898 }; 28899 28900 public static com.google.protobuf.Parser<EnumOptions> parser() { 28901 return PARSER; 28902 } 28903 28904 @java.lang.Override 28905 public com.google.protobuf.Parser<EnumOptions> getParserForType() { 28906 return PARSER; 28907 } 28908 28909 public com.google.protobuf.DescriptorProtos.EnumOptions getDefaultInstanceForType() { 28910 return DEFAULT_INSTANCE; 28911 } 28912 22059 28913 } 22060 28914 22061 28915 public interface EnumValueOptionsOrBuilder extends 22062 28916 // @@protoc_insertion_point(interface_extends:google.protobuf.EnumValueOptions) 22063 com.google.protobuf.GeneratedMessage .28917 com.google.protobuf.GeneratedMessageV3. 22064 28918 ExtendableMessageOrBuilder<EnumValueOptions> { 22065 28919 22066 28920 /** 22067 * <code>optional bool deprecated = 1 [default = false];</code>22068 *22069 28921 * <pre> 22070 28922 * Is this enum value deprecated? … … 22073 28925 * this is a formalization for deprecating enum values. 22074 28926 * </pre> 28927 * 28928 * <code>optional bool deprecated = 1 [default = false];</code> 22075 28929 */ 22076 28930 boolean hasDeprecated(); 22077 28931 /** 22078 * <code>optional bool deprecated = 1 [default = false];</code>22079 *22080 28932 * <pre> 22081 28933 * Is this enum value deprecated? … … 22084 28936 * this is a formalization for deprecating enum values. 22085 28937 * </pre> 28938 * 28939 * <code>optional bool deprecated = 1 [default = false];</code> 22086 28940 */ 22087 28941 boolean getDeprecated(); 22088 28942 22089 28943 /** 22090 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>22091 *22092 28944 * <pre> 22093 28945 * The parser stores options it doesn't recognize here. See above. 22094 28946 * </pre> 22095 */ 22096 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 28947 * 28948 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 28949 */ 28950 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 22097 28951 getUninterpretedOptionList(); 22098 28952 /** 22099 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>22100 *22101 28953 * <pre> 22102 28954 * The parser stores options it doesn't recognize here. See above. 22103 28955 * </pre> 28956 * 28957 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22104 28958 */ 22105 28959 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 22106 28960 /** 22107 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>22108 *22109 28961 * <pre> 22110 28962 * The parser stores options it doesn't recognize here. See above. 22111 28963 * </pre> 28964 * 28965 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22112 28966 */ 22113 28967 int getUninterpretedOptionCount(); 22114 28968 /** 22115 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>22116 *22117 28969 * <pre> 22118 28970 * The parser stores options it doesn't recognize here. See above. 22119 28971 * </pre> 22120 */ 22121 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 28972 * 28973 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 28974 */ 28975 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 22122 28976 getUninterpretedOptionOrBuilderList(); 22123 28977 /** 22124 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>22125 *22126 28978 * <pre> 22127 28979 * The parser stores options it doesn't recognize here. See above. 22128 28980 * </pre> 28981 * 28982 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22129 28983 */ 22130 28984 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( … … 22134 28988 * Protobuf type {@code google.protobuf.EnumValueOptions} 22135 28989 */ 22136 public static final class EnumValueOptions extends22137 com.google.protobuf.GeneratedMessage .ExtendableMessage<28990 public static final class EnumValueOptions extends 28991 com.google.protobuf.GeneratedMessageV3.ExtendableMessage< 22138 28992 EnumValueOptions> implements 22139 28993 // @@protoc_insertion_point(message_implements:google.protobuf.EnumValueOptions) 22140 28994 EnumValueOptionsOrBuilder { 28995 private static final long serialVersionUID = 0L; 22141 28996 // Use EnumValueOptions.newBuilder() to construct. 22142 private EnumValueOptions(com.google.protobuf.GeneratedMessage .ExtendableBuilder<com.google.protobuf.DescriptorProtos.EnumValueOptions, ?> builder) {28997 private EnumValueOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.EnumValueOptions, ?> builder) { 22143 28998 super(builder); 22144 this.unknownFields = builder.getUnknownFields(); 22145 } 22146 private EnumValueOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 22147 22148 private static final EnumValueOptions defaultInstance; 22149 public static EnumValueOptions getDefaultInstance() { 22150 return defaultInstance; 22151 } 22152 22153 @Override 22154 public EnumValueOptions getDefaultInstanceForType() { 22155 return defaultInstance; 22156 } 22157 22158 private final com.google.protobuf.UnknownFieldSet unknownFields; 28999 } 29000 private EnumValueOptions() { 29001 deprecated_ = false; 29002 uninterpretedOption_ = java.util.Collections.emptyList(); 29003 } 29004 22159 29005 @java.lang.Override 22160 29006 public final com.google.protobuf.UnknownFieldSet 22161 29007 getUnknownFields() { 22162 29008 return this.unknownFields; 22163 29009 } … … 22166 29012 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 22167 29013 throws com.google.protobuf.InvalidProtocolBufferException { 22168 initFields();29014 this(); 22169 29015 int mutable_bitField0_ = 0; 22170 29016 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 22179 29025 break; 22180 29026 default: { 22181 if (!parseUnknownField( input, unknownFields,22182 29027 if (!parseUnknownField( 29028 input, unknownFields, extensionRegistry, tag)) { 22183 29029 done = true; 22184 29030 } … … 22192 29038 case 7994: { 22193 29039 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 22194 uninterpretedOption_ = new java.util.ArrayList< >();29040 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 22195 29041 mutable_bitField0_ |= 0x00000002; 22196 29042 } 22197 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 29043 uninterpretedOption_.add( 29044 input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 22198 29045 break; 22199 29046 } … … 22204 29051 } catch (java.io.IOException e) { 22205 29052 throw new com.google.protobuf.InvalidProtocolBufferException( 22206 e .getMessage()).setUnfinishedMessage(this);29053 e).setUnfinishedMessage(this); 22207 29054 } finally { 22208 29055 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { … … 22218 29065 } 22219 29066 22220 @Override 22221 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 29067 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 22222 29068 internalGetFieldAccessorTable() { 22223 29069 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable … … 22226 29072 } 22227 29073 22228 public static com.google.protobuf.Parser<EnumValueOptions> PARSER =22229 new com.google.protobuf.AbstractParser<EnumValueOptions>() {22230 @Override22231 public EnumValueOptions parsePartialFrom(22232 com.google.protobuf.CodedInputStream input,22233 com.google.protobuf.ExtensionRegistryLite extensionRegistry)22234 throws com.google.protobuf.InvalidProtocolBufferException {22235 return new EnumValueOptions(input, extensionRegistry);22236 }22237 };22238 22239 @java.lang.Override22240 public com.google.protobuf.Parser<EnumValueOptions> getParserForType() {22241 return PARSER;22242 }22243 22244 29074 private int bitField0_; 22245 29075 public static final int DEPRECATED_FIELD_NUMBER = 1; 22246 29076 private boolean deprecated_; 22247 29077 /** 22248 * <code>optional bool deprecated = 1 [default = false];</code>22249 *22250 29078 * <pre> 22251 29079 * Is this enum value deprecated? … … 22254 29082 * this is a formalization for deprecating enum values. 22255 29083 * </pre> 22256 */ 22257 @Override 22258 public boolean hasDeprecated() { 29084 * 29085 * <code>optional bool deprecated = 1 [default = false];</code> 29086 */ 29087 public boolean hasDeprecated() { 22259 29088 return ((bitField0_ & 0x00000001) == 0x00000001); 22260 29089 } 22261 29090 /** 22262 * <code>optional bool deprecated = 1 [default = false];</code>22263 *22264 29091 * <pre> 22265 29092 * Is this enum value deprecated? … … 22268 29095 * this is a formalization for deprecating enum values. 22269 29096 * </pre> 22270 */ 22271 @Override 22272 public boolean getDeprecated() { 29097 * 29098 * <code>optional bool deprecated = 1 [default = false];</code> 29099 */ 29100 public boolean getDeprecated() { 22273 29101 return deprecated_; 22274 29102 } … … 22277 29105 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 22278 29106 /** 22279 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>22280 *22281 29107 * <pre> 22282 29108 * The parser stores options it doesn't recognize here. See above. 22283 29109 * </pre> 22284 */ 22285 @Override 22286 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 29110 * 29111 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 29112 */ 29113 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 22287 29114 return uninterpretedOption_; 22288 29115 } 22289 29116 /** 22290 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>22291 *22292 29117 * <pre> 22293 29118 * The parser stores options it doesn't recognize here. See above. 22294 29119 * </pre> 22295 */ 22296 @Override 22297 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 29120 * 29121 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 29122 */ 29123 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 22298 29124 getUninterpretedOptionOrBuilderList() { 22299 29125 return uninterpretedOption_; 22300 29126 } 22301 29127 /** 22302 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>22303 *22304 29128 * <pre> 22305 29129 * The parser stores options it doesn't recognize here. See above. 22306 29130 * </pre> 22307 */ 22308 @Override 22309 public int getUninterpretedOptionCount() { 29131 * 29132 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 29133 */ 29134 public int getUninterpretedOptionCount() { 22310 29135 return uninterpretedOption_.size(); 22311 29136 } 22312 29137 /** 22313 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>22314 *22315 29138 * <pre> 22316 29139 * The parser stores options it doesn't recognize here. See above. 22317 29140 * </pre> 22318 */ 22319 @Override 22320 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 29141 * 29142 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 29143 */ 29144 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 22321 29145 return uninterpretedOption_.get(index); 22322 29146 } 22323 29147 /** 22324 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>22325 *22326 29148 * <pre> 22327 29149 * The parser stores options it doesn't recognize here. See above. 22328 29150 * </pre> 22329 */ 22330 @Override 22331 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 29151 * 29152 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 29153 */ 29154 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 22332 29155 int index) { 22333 29156 return uninterpretedOption_.get(index); 22334 29157 } 22335 29158 22336 private void initFields() {22337 deprecated_ = false;22338 uninterpretedOption_ = java.util.Collections.emptyList();22339 }22340 29159 private byte memoizedIsInitialized = -1; 22341 @Override 22342 public final boolean isInitialized() { 29160 public final boolean isInitialized() { 22343 29161 byte isInitialized = memoizedIsInitialized; 22344 29162 if (isInitialized == 1) return true; … … 22359 29177 } 22360 29178 22361 @Override 22362 public void writeTo(com.google.protobuf.CodedOutputStream output) 29179 public void writeTo(com.google.protobuf.CodedOutputStream output) 22363 29180 throws java.io.IOException { 22364 getSerializedSize(); 22365 com.google.protobuf.GeneratedMessage 22366 .ExtendableMessage<com.google.protobuf.DescriptorProtos.EnumValueOptions>.ExtensionWriter extensionWriter = 22367 newExtensionWriter(); 29181 com.google.protobuf.GeneratedMessageV3 29182 .ExtendableMessage<com.google.protobuf.DescriptorProtos.EnumValueOptions>.ExtensionWriter 29183 extensionWriter = newExtensionWriter(); 22368 29184 if (((bitField0_ & 0x00000001) == 0x00000001)) { 22369 29185 output.writeBool(1, deprecated_); … … 22373 29189 } 22374 29190 extensionWriter.writeUntil(536870912, output); 22375 getUnknownFields().writeTo(output); 22376 } 22377 22378 private int memoizedSerializedSize = -1; 22379 @Override 22380 public int getSerializedSize() { 22381 int size = memoizedSerializedSize; 29191 unknownFields.writeTo(output); 29192 } 29193 29194 public int getSerializedSize() { 29195 int size = memoizedSize; 22382 29196 if (size != -1) return size; 22383 29197 … … 22392 29206 } 22393 29207 size += extensionsSerializedSize(); 22394 size += getUnknownFields().getSerializedSize();22395 memoizedS erializedSize = size;29208 size += unknownFields.getSerializedSize(); 29209 memoizedSize = size; 22396 29210 return size; 22397 29211 } 22398 29212 22399 private static final long serialVersionUID = 0L;22400 29213 @java.lang.Override 22401 protected java.lang.Object writeReplace() 22402 throws java.io.ObjectStreamException { 22403 return super.writeReplace(); 22404 } 22405 29214 public boolean equals(final java.lang.Object obj) { 29215 if (obj == this) { 29216 return true; 29217 } 29218 if (!(obj instanceof com.google.protobuf.DescriptorProtos.EnumValueOptions)) { 29219 return super.equals(obj); 29220 } 29221 com.google.protobuf.DescriptorProtos.EnumValueOptions other = (com.google.protobuf.DescriptorProtos.EnumValueOptions) obj; 29222 29223 boolean result = true; 29224 result = result && (hasDeprecated() == other.hasDeprecated()); 29225 if (hasDeprecated()) { 29226 result = result && (getDeprecated() 29227 == other.getDeprecated()); 29228 } 29229 result = result && getUninterpretedOptionList() 29230 .equals(other.getUninterpretedOptionList()); 29231 result = result && unknownFields.equals(other.unknownFields); 29232 result = result && 29233 getExtensionFields().equals(other.getExtensionFields()); 29234 return result; 29235 } 29236 29237 @java.lang.Override 29238 public int hashCode() { 29239 if (memoizedHashCode != 0) { 29240 return memoizedHashCode; 29241 } 29242 int hash = 41; 29243 hash = (19 * hash) + getDescriptor().hashCode(); 29244 if (hasDeprecated()) { 29245 hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; 29246 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 29247 getDeprecated()); 29248 } 29249 if (getUninterpretedOptionCount() > 0) { 29250 hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; 29251 hash = (53 * hash) + getUninterpretedOptionList().hashCode(); 29252 } 29253 hash = hashFields(hash, getExtensionFields()); 29254 hash = (29 * hash) + unknownFields.hashCode(); 29255 memoizedHashCode = hash; 29256 return hash; 29257 } 29258 29259 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( 29260 java.nio.ByteBuffer data) 29261 throws com.google.protobuf.InvalidProtocolBufferException { 29262 return PARSER.parseFrom(data); 29263 } 29264 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( 29265 java.nio.ByteBuffer data, 29266 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 29267 throws com.google.protobuf.InvalidProtocolBufferException { 29268 return PARSER.parseFrom(data, extensionRegistry); 29269 } 22406 29270 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( 22407 29271 com.google.protobuf.ByteString data) … … 22427 29291 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom(java.io.InputStream input) 22428 29292 throws java.io.IOException { 22429 return PARSER.parseFrom(input); 29293 return com.google.protobuf.GeneratedMessageV3 29294 .parseWithIOException(PARSER, input); 22430 29295 } 22431 29296 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( … … 22433 29298 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 22434 29299 throws java.io.IOException { 22435 return PARSER.parseFrom(input, extensionRegistry); 29300 return com.google.protobuf.GeneratedMessageV3 29301 .parseWithIOException(PARSER, input, extensionRegistry); 22436 29302 } 22437 29303 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseDelimitedFrom(java.io.InputStream input) 22438 29304 throws java.io.IOException { 22439 return PARSER.parseDelimitedFrom(input); 29305 return com.google.protobuf.GeneratedMessageV3 29306 .parseDelimitedWithIOException(PARSER, input); 22440 29307 } 22441 29308 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseDelimitedFrom( … … 22443 29310 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 22444 29311 throws java.io.IOException { 22445 return PARSER.parseDelimitedFrom(input, extensionRegistry); 29312 return com.google.protobuf.GeneratedMessageV3 29313 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 22446 29314 } 22447 29315 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( 22448 29316 com.google.protobuf.CodedInputStream input) 22449 29317 throws java.io.IOException { 22450 return PARSER.parseFrom(input); 29318 return com.google.protobuf.GeneratedMessageV3 29319 .parseWithIOException(PARSER, input); 22451 29320 } 22452 29321 public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( … … 22454 29323 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 22455 29324 throws java.io.IOException { 22456 return PARSER.parseFrom(input, extensionRegistry); 22457 } 22458 22459 public static Builder newBuilder() { return Builder.create(); } 22460 @Override 22461 public Builder newBuilderForType() { return newBuilder(); } 29325 return com.google.protobuf.GeneratedMessageV3 29326 .parseWithIOException(PARSER, input, extensionRegistry); 29327 } 29328 29329 public Builder newBuilderForType() { return newBuilder(); } 29330 public static Builder newBuilder() { 29331 return DEFAULT_INSTANCE.toBuilder(); 29332 } 22462 29333 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumValueOptions prototype) { 22463 return newBuilder().mergeFrom(prototype); 22464 } 22465 @Override 22466 public Builder toBuilder() { return newBuilder(this); } 29334 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 29335 } 29336 public Builder toBuilder() { 29337 return this == DEFAULT_INSTANCE 29338 ? new Builder() : new Builder().mergeFrom(this); 29339 } 22467 29340 22468 29341 @java.lang.Override 22469 29342 protected Builder newBuilderForType( 22470 com.google.protobuf.GeneratedMessage .BuilderParent parent) {29343 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 22471 29344 Builder builder = new Builder(parent); 22472 29345 return builder; … … 22476 29349 */ 22477 29350 public static final class Builder extends 22478 com.google.protobuf.GeneratedMessage .ExtendableBuilder<29351 com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< 22479 29352 com.google.protobuf.DescriptorProtos.EnumValueOptions, Builder> implements 22480 29353 // @@protoc_insertion_point(builder_implements:google.protobuf.EnumValueOptions) … … 22485 29358 } 22486 29359 22487 @Override 22488 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 29360 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 22489 29361 internalGetFieldAccessorTable() { 22490 29362 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable … … 22499 29371 22500 29372 private Builder( 22501 com.google.protobuf.GeneratedMessage .BuilderParent parent) {29373 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 22502 29374 super(parent); 22503 29375 maybeForceBuilderInitialization(); 22504 29376 } 22505 29377 private void maybeForceBuilderInitialization() { 22506 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 29378 if (com.google.protobuf.GeneratedMessageV3 29379 .alwaysUseFieldBuilders) { 22507 29380 getUninterpretedOptionFieldBuilder(); 22508 29381 } 22509 29382 } 22510 private static Builder create() { 22511 return new Builder(); 22512 } 22513 22514 @Override 22515 public Builder clear() { 29383 public Builder clear() { 22516 29384 super.clear(); 22517 29385 deprecated_ = false; … … 22526 29394 } 22527 29395 22528 @Override 22529 public Builder clone() { 22530 return create().mergeFrom(buildPartial()); 22531 } 22532 22533 @Override 22534 public com.google.protobuf.Descriptors.Descriptor 29396 public com.google.protobuf.Descriptors.Descriptor 22535 29397 getDescriptorForType() { 22536 29398 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_EnumValueOptions_descriptor; 22537 29399 } 22538 29400 22539 @Override 22540 public com.google.protobuf.DescriptorProtos.EnumValueOptions getDefaultInstanceForType() { 29401 public com.google.protobuf.DescriptorProtos.EnumValueOptions getDefaultInstanceForType() { 22541 29402 return com.google.protobuf.DescriptorProtos.EnumValueOptions.getDefaultInstance(); 22542 29403 } 22543 29404 22544 @Override 22545 public com.google.protobuf.DescriptorProtos.EnumValueOptions build() { 29405 public com.google.protobuf.DescriptorProtos.EnumValueOptions build() { 22546 29406 com.google.protobuf.DescriptorProtos.EnumValueOptions result = buildPartial(); 22547 29407 if (!result.isInitialized()) { … … 22551 29411 } 22552 29412 22553 @Override 22554 public com.google.protobuf.DescriptorProtos.EnumValueOptions buildPartial() { 29413 public com.google.protobuf.DescriptorProtos.EnumValueOptions buildPartial() { 22555 29414 com.google.protobuf.DescriptorProtos.EnumValueOptions result = new com.google.protobuf.DescriptorProtos.EnumValueOptions(this); 22556 29415 int from_bitField0_ = bitField0_; … … 22574 29433 } 22575 29434 22576 @Override 22577 public Builder mergeFrom(com.google.protobuf.Message other) { 29435 public Builder clone() { 29436 return (Builder) super.clone(); 29437 } 29438 public Builder setField( 29439 com.google.protobuf.Descriptors.FieldDescriptor field, 29440 java.lang.Object value) { 29441 return (Builder) super.setField(field, value); 29442 } 29443 public Builder clearField( 29444 com.google.protobuf.Descriptors.FieldDescriptor field) { 29445 return (Builder) super.clearField(field); 29446 } 29447 public Builder clearOneof( 29448 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 29449 return (Builder) super.clearOneof(oneof); 29450 } 29451 public Builder setRepeatedField( 29452 com.google.protobuf.Descriptors.FieldDescriptor field, 29453 int index, java.lang.Object value) { 29454 return (Builder) super.setRepeatedField(field, index, value); 29455 } 29456 public Builder addRepeatedField( 29457 com.google.protobuf.Descriptors.FieldDescriptor field, 29458 java.lang.Object value) { 29459 return (Builder) super.addRepeatedField(field, value); 29460 } 29461 public <Type> Builder setExtension( 29462 com.google.protobuf.GeneratedMessage.GeneratedExtension< 29463 com.google.protobuf.DescriptorProtos.EnumValueOptions, Type> extension, 29464 Type value) { 29465 return (Builder) super.setExtension(extension, value); 29466 } 29467 public <Type> Builder setExtension( 29468 com.google.protobuf.GeneratedMessage.GeneratedExtension< 29469 com.google.protobuf.DescriptorProtos.EnumValueOptions, java.util.List<Type>> extension, 29470 int index, Type value) { 29471 return (Builder) super.setExtension(extension, index, value); 29472 } 29473 public <Type> Builder addExtension( 29474 com.google.protobuf.GeneratedMessage.GeneratedExtension< 29475 com.google.protobuf.DescriptorProtos.EnumValueOptions, java.util.List<Type>> extension, 29476 Type value) { 29477 return (Builder) super.addExtension(extension, value); 29478 } 29479 public <Type> Builder clearExtension( 29480 com.google.protobuf.GeneratedMessage.GeneratedExtension< 29481 com.google.protobuf.DescriptorProtos.EnumValueOptions, ?> extension) { 29482 return (Builder) super.clearExtension(extension); 29483 } 29484 public Builder mergeFrom(com.google.protobuf.Message other) { 22578 29485 if (other instanceof com.google.protobuf.DescriptorProtos.EnumValueOptions) { 22579 29486 return mergeFrom((com.google.protobuf.DescriptorProtos.EnumValueOptions)other); … … 22607 29514 uninterpretedOption_ = other.uninterpretedOption_; 22608 29515 bitField0_ = (bitField0_ & ~0x00000002); 22609 uninterpretedOptionBuilder_ = 22610 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?29516 uninterpretedOptionBuilder_ = 29517 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 22611 29518 getUninterpretedOptionFieldBuilder() : null; 22612 29519 } else { … … 22616 29523 } 22617 29524 this.mergeExtensionFields(other); 22618 this.mergeUnknownFields(other. getUnknownFields());22619 return this;22620 }22621 22622 @Override 22623 29525 this.mergeUnknownFields(other.unknownFields); 29526 onChanged(); 29527 return this; 29528 } 29529 29530 public final boolean isInitialized() { 22624 29531 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 22625 29532 if (!getUninterpretedOption(i).isInitialized()) { 22626 22627 29533 return false; 22628 29534 } 22629 29535 } 22630 29536 if (!extensionsAreInitialized()) { 22631 22632 29537 return false; 22633 29538 } … … 22635 29540 } 22636 29541 22637 @Override 22638 public Builder mergeFrom( 29542 public Builder mergeFrom( 22639 29543 com.google.protobuf.CodedInputStream input, 22640 29544 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 22645 29549 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 22646 29550 parsedMessage = (com.google.protobuf.DescriptorProtos.EnumValueOptions) e.getUnfinishedMessage(); 22647 throw e ;29551 throw e.unwrapIOException(); 22648 29552 } finally { 22649 29553 if (parsedMessage != null) { … … 22657 29561 private boolean deprecated_ ; 22658 29562 /** 22659 * <code>optional bool deprecated = 1 [default = false];</code>22660 *22661 29563 * <pre> 22662 29564 * Is this enum value deprecated? … … 22665 29567 * this is a formalization for deprecating enum values. 22666 29568 * </pre> 22667 */ 22668 @Override 22669 public boolean hasDeprecated() { 29569 * 29570 * <code>optional bool deprecated = 1 [default = false];</code> 29571 */ 29572 public boolean hasDeprecated() { 22670 29573 return ((bitField0_ & 0x00000001) == 0x00000001); 22671 29574 } 22672 29575 /** 22673 * <code>optional bool deprecated = 1 [default = false];</code>22674 *22675 29576 * <pre> 22676 29577 * Is this enum value deprecated? … … 22679 29580 * this is a formalization for deprecating enum values. 22680 29581 * </pre> 22681 */ 22682 @Override 22683 public boolean getDeprecated() { 29582 * 29583 * <code>optional bool deprecated = 1 [default = false];</code> 29584 */ 29585 public boolean getDeprecated() { 22684 29586 return deprecated_; 22685 29587 } 22686 29588 /** 22687 * <code>optional bool deprecated = 1 [default = false];</code>22688 *22689 29589 * <pre> 22690 29590 * Is this enum value deprecated? … … 22693 29593 * this is a formalization for deprecating enum values. 22694 29594 * </pre> 29595 * 29596 * <code>optional bool deprecated = 1 [default = false];</code> 22695 29597 */ 22696 29598 public Builder setDeprecated(boolean value) { … … 22701 29603 } 22702 29604 /** 22703 * <code>optional bool deprecated = 1 [default = false];</code>22704 *22705 29605 * <pre> 22706 29606 * Is this enum value deprecated? … … 22709 29609 * this is a formalization for deprecating enum values. 22710 29610 * </pre> 29611 * 29612 * <code>optional bool deprecated = 1 [default = false];</code> 22711 29613 */ 22712 29614 public Builder clearDeprecated() { … … 22721 29623 private void ensureUninterpretedOptionIsMutable() { 22722 29624 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 22723 uninterpretedOption_ = new java.util.ArrayList< >(uninterpretedOption_);29625 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); 22724 29626 bitField0_ |= 0x00000002; 22725 29627 } 22726 29628 } 22727 29629 22728 private com.google.protobuf.RepeatedFieldBuilder <29630 private com.google.protobuf.RepeatedFieldBuilderV3< 22729 29631 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 22730 29632 22731 29633 /** 29634 * <pre> 29635 * The parser stores options it doesn't recognize here. See above. 29636 * </pre> 29637 * 22732 29638 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22733 * 22734 * <pre> 22735 * The parser stores options it doesn't recognize here. See above. 22736 * </pre> 22737 */ 22738 @Override 22739 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 29639 */ 29640 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 22740 29641 if (uninterpretedOptionBuilder_ == null) { 22741 29642 return java.util.Collections.unmodifiableList(uninterpretedOption_); … … 22745 29646 } 22746 29647 /** 29648 * <pre> 29649 * The parser stores options it doesn't recognize here. See above. 29650 * </pre> 29651 * 22747 29652 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22748 * 22749 * <pre> 22750 * The parser stores options it doesn't recognize here. See above. 22751 * </pre> 22752 */ 22753 @Override 22754 public int getUninterpretedOptionCount() { 29653 */ 29654 public int getUninterpretedOptionCount() { 22755 29655 if (uninterpretedOptionBuilder_ == null) { 22756 29656 return uninterpretedOption_.size(); … … 22760 29660 } 22761 29661 /** 29662 * <pre> 29663 * The parser stores options it doesn't recognize here. See above. 29664 * </pre> 29665 * 22762 29666 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22763 * 22764 * <pre> 22765 * The parser stores options it doesn't recognize here. See above. 22766 * </pre> 22767 */ 22768 @Override 22769 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 29667 */ 29668 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 22770 29669 if (uninterpretedOptionBuilder_ == null) { 22771 29670 return uninterpretedOption_.get(index); … … 22775 29674 } 22776 29675 /** 29676 * <pre> 29677 * The parser stores options it doesn't recognize here. See above. 29678 * </pre> 29679 * 22777 29680 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22778 *22779 * <pre>22780 * The parser stores options it doesn't recognize here. See above.22781 * </pre>22782 29681 */ 22783 29682 public Builder setUninterpretedOption( … … 22796 29695 } 22797 29696 /** 29697 * <pre> 29698 * The parser stores options it doesn't recognize here. See above. 29699 * </pre> 29700 * 22798 29701 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22799 *22800 * <pre>22801 * The parser stores options it doesn't recognize here. See above.22802 * </pre>22803 29702 */ 22804 29703 public Builder setUninterpretedOption( … … 22814 29713 } 22815 29714 /** 29715 * <pre> 29716 * The parser stores options it doesn't recognize here. See above. 29717 * </pre> 29718 * 22816 29719 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22817 *22818 * <pre>22819 * The parser stores options it doesn't recognize here. See above.22820 * </pre>22821 29720 */ 22822 29721 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 22834 29733 } 22835 29734 /** 29735 * <pre> 29736 * The parser stores options it doesn't recognize here. See above. 29737 * </pre> 29738 * 22836 29739 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22837 *22838 * <pre>22839 * The parser stores options it doesn't recognize here. See above.22840 * </pre>22841 29740 */ 22842 29741 public Builder addUninterpretedOption( … … 22855 29754 } 22856 29755 /** 29756 * <pre> 29757 * The parser stores options it doesn't recognize here. See above. 29758 * </pre> 29759 * 22857 29760 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22858 *22859 * <pre>22860 * The parser stores options it doesn't recognize here. See above.22861 * </pre>22862 29761 */ 22863 29762 public Builder addUninterpretedOption( … … 22873 29772 } 22874 29773 /** 29774 * <pre> 29775 * The parser stores options it doesn't recognize here. See above. 29776 * </pre> 29777 * 22875 29778 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22876 *22877 * <pre>22878 * The parser stores options it doesn't recognize here. See above.22879 * </pre>22880 29779 */ 22881 29780 public Builder addUninterpretedOption( … … 22891 29790 } 22892 29791 /** 29792 * <pre> 29793 * The parser stores options it doesn't recognize here. See above. 29794 * </pre> 29795 * 22893 29796 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22894 *22895 * <pre>22896 * The parser stores options it doesn't recognize here. See above.22897 * </pre>22898 29797 */ 22899 29798 public Builder addAllUninterpretedOption( … … 22910 29809 } 22911 29810 /** 29811 * <pre> 29812 * The parser stores options it doesn't recognize here. See above. 29813 * </pre> 29814 * 22912 29815 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22913 *22914 * <pre>22915 * The parser stores options it doesn't recognize here. See above.22916 * </pre>22917 29816 */ 22918 29817 public Builder clearUninterpretedOption() { … … 22927 29826 } 22928 29827 /** 29828 * <pre> 29829 * The parser stores options it doesn't recognize here. See above. 29830 * </pre> 29831 * 22929 29832 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22930 *22931 * <pre>22932 * The parser stores options it doesn't recognize here. See above.22933 * </pre>22934 29833 */ 22935 29834 public Builder removeUninterpretedOption(int index) { … … 22944 29843 } 22945 29844 /** 29845 * <pre> 29846 * The parser stores options it doesn't recognize here. See above. 29847 * </pre> 29848 * 22946 29849 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22947 *22948 * <pre>22949 * The parser stores options it doesn't recognize here. See above.22950 * </pre>22951 29850 */ 22952 29851 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( … … 22955 29854 } 22956 29855 /** 29856 * <pre> 29857 * The parser stores options it doesn't recognize here. See above. 29858 * </pre> 29859 * 22957 29860 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22958 * 22959 * <pre> 22960 * The parser stores options it doesn't recognize here. See above. 22961 * </pre> 22962 */ 22963 @Override 22964 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 29861 */ 29862 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 22965 29863 int index) { 22966 29864 if (uninterpretedOptionBuilder_ == null) { … … 22970 29868 } 22971 29869 /** 29870 * <pre> 29871 * The parser stores options it doesn't recognize here. See above. 29872 * </pre> 29873 * 22972 29874 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22973 * 22974 * <pre> 22975 * The parser stores options it doesn't recognize here. See above. 22976 * </pre> 22977 */ 22978 @Override 22979 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 29875 */ 29876 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 22980 29877 getUninterpretedOptionOrBuilderList() { 22981 29878 if (uninterpretedOptionBuilder_ != null) { … … 22986 29883 } 22987 29884 /** 29885 * <pre> 29886 * The parser stores options it doesn't recognize here. See above. 29887 * </pre> 29888 * 22988 29889 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 22989 *22990 * <pre>22991 * The parser stores options it doesn't recognize here. See above.22992 * </pre>22993 29890 */ 22994 29891 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { … … 22997 29894 } 22998 29895 /** 29896 * <pre> 29897 * The parser stores options it doesn't recognize here. See above. 29898 * </pre> 29899 * 22999 29900 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23000 *23001 * <pre>23002 * The parser stores options it doesn't recognize here. See above.23003 * </pre>23004 29901 */ 23005 29902 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( … … 23009 29906 } 23010 29907 /** 29908 * <pre> 29909 * The parser stores options it doesn't recognize here. See above. 29910 * </pre> 29911 * 23011 29912 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23012 * 23013 * <pre> 23014 * The parser stores options it doesn't recognize here. See above. 23015 * </pre> 23016 */ 23017 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 29913 */ 29914 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 23018 29915 getUninterpretedOptionBuilderList() { 23019 29916 return getUninterpretedOptionFieldBuilder().getBuilderList(); 23020 29917 } 23021 private com.google.protobuf.RepeatedFieldBuilder <23022 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 29918 private com.google.protobuf.RepeatedFieldBuilderV3< 29919 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 23023 29920 getUninterpretedOptionFieldBuilder() { 23024 29921 if (uninterpretedOptionBuilder_ == null) { 23025 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 29922 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 29923 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( 23026 29924 uninterpretedOption_, 23027 29925 ((bitField0_ & 0x00000002) == 0x00000002), … … 23032 29930 return uninterpretedOptionBuilder_; 23033 29931 } 29932 public final Builder setUnknownFields( 29933 final com.google.protobuf.UnknownFieldSet unknownFields) { 29934 return super.setUnknownFields(unknownFields); 29935 } 29936 29937 public final Builder mergeUnknownFields( 29938 final com.google.protobuf.UnknownFieldSet unknownFields) { 29939 return super.mergeUnknownFields(unknownFields); 29940 } 29941 23034 29942 23035 29943 // @@protoc_insertion_point(builder_scope:google.protobuf.EnumValueOptions) 23036 29944 } 23037 29945 29946 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions) 29947 private static final com.google.protobuf.DescriptorProtos.EnumValueOptions DEFAULT_INSTANCE; 23038 29948 static { 23039 defaultInstance = new EnumValueOptions(true); 23040 defaultInstance.initFields(); 23041 } 23042 23043 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions) 29949 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.EnumValueOptions(); 29950 } 29951 29952 public static com.google.protobuf.DescriptorProtos.EnumValueOptions getDefaultInstance() { 29953 return DEFAULT_INSTANCE; 29954 } 29955 29956 @java.lang.Deprecated public static final com.google.protobuf.Parser<EnumValueOptions> 29957 PARSER = new com.google.protobuf.AbstractParser<EnumValueOptions>() { 29958 public EnumValueOptions parsePartialFrom( 29959 com.google.protobuf.CodedInputStream input, 29960 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 29961 throws com.google.protobuf.InvalidProtocolBufferException { 29962 return new EnumValueOptions(input, extensionRegistry); 29963 } 29964 }; 29965 29966 public static com.google.protobuf.Parser<EnumValueOptions> parser() { 29967 return PARSER; 29968 } 29969 29970 @java.lang.Override 29971 public com.google.protobuf.Parser<EnumValueOptions> getParserForType() { 29972 return PARSER; 29973 } 29974 29975 public com.google.protobuf.DescriptorProtos.EnumValueOptions getDefaultInstanceForType() { 29976 return DEFAULT_INSTANCE; 29977 } 29978 23044 29979 } 23045 29980 23046 29981 public interface ServiceOptionsOrBuilder extends 23047 29982 // @@protoc_insertion_point(interface_extends:google.protobuf.ServiceOptions) 23048 com.google.protobuf.GeneratedMessage .29983 com.google.protobuf.GeneratedMessageV3. 23049 29984 ExtendableMessageOrBuilder<ServiceOptions> { 23050 29985 23051 29986 /** 23052 * <code>optional bool deprecated = 33 [default = false];</code>23053 *23054 29987 * <pre> 23055 29988 * Is this service deprecated? … … 23058 29991 * this is a formalization for deprecating services. 23059 29992 * </pre> 29993 * 29994 * <code>optional bool deprecated = 33 [default = false];</code> 23060 29995 */ 23061 29996 boolean hasDeprecated(); 23062 29997 /** 23063 * <code>optional bool deprecated = 33 [default = false];</code>23064 *23065 29998 * <pre> 23066 29999 * Is this service deprecated? … … 23069 30002 * this is a formalization for deprecating services. 23070 30003 * </pre> 30004 * 30005 * <code>optional bool deprecated = 33 [default = false];</code> 23071 30006 */ 23072 30007 boolean getDeprecated(); 23073 30008 23074 30009 /** 23075 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>23076 *23077 30010 * <pre> 23078 30011 * The parser stores options it doesn't recognize here. See above. 23079 30012 * </pre> 23080 */ 23081 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 30013 * 30014 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 30015 */ 30016 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 23082 30017 getUninterpretedOptionList(); 23083 30018 /** 23084 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>23085 *23086 30019 * <pre> 23087 30020 * The parser stores options it doesn't recognize here. See above. 23088 30021 * </pre> 30022 * 30023 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23089 30024 */ 23090 30025 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 23091 30026 /** 23092 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>23093 *23094 30027 * <pre> 23095 30028 * The parser stores options it doesn't recognize here. See above. 23096 30029 * </pre> 30030 * 30031 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23097 30032 */ 23098 30033 int getUninterpretedOptionCount(); 23099 30034 /** 23100 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>23101 *23102 30035 * <pre> 23103 30036 * The parser stores options it doesn't recognize here. See above. 23104 30037 * </pre> 23105 */ 23106 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 30038 * 30039 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 30040 */ 30041 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 23107 30042 getUninterpretedOptionOrBuilderList(); 23108 30043 /** 23109 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>23110 *23111 30044 * <pre> 23112 30045 * The parser stores options it doesn't recognize here. See above. 23113 30046 * </pre> 30047 * 30048 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23114 30049 */ 23115 30050 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( … … 23119 30054 * Protobuf type {@code google.protobuf.ServiceOptions} 23120 30055 */ 23121 public static final class ServiceOptions extends23122 com.google.protobuf.GeneratedMessage .ExtendableMessage<30056 public static final class ServiceOptions extends 30057 com.google.protobuf.GeneratedMessageV3.ExtendableMessage< 23123 30058 ServiceOptions> implements 23124 30059 // @@protoc_insertion_point(message_implements:google.protobuf.ServiceOptions) 23125 30060 ServiceOptionsOrBuilder { 30061 private static final long serialVersionUID = 0L; 23126 30062 // Use ServiceOptions.newBuilder() to construct. 23127 private ServiceOptions(com.google.protobuf.GeneratedMessage .ExtendableBuilder<com.google.protobuf.DescriptorProtos.ServiceOptions, ?> builder) {30063 private ServiceOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.ServiceOptions, ?> builder) { 23128 30064 super(builder); 23129 this.unknownFields = builder.getUnknownFields(); 23130 } 23131 private ServiceOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 23132 23133 private static final ServiceOptions defaultInstance; 23134 public static ServiceOptions getDefaultInstance() { 23135 return defaultInstance; 23136 } 23137 23138 @Override 23139 public ServiceOptions getDefaultInstanceForType() { 23140 return defaultInstance; 23141 } 23142 23143 private final com.google.protobuf.UnknownFieldSet unknownFields; 30065 } 30066 private ServiceOptions() { 30067 deprecated_ = false; 30068 uninterpretedOption_ = java.util.Collections.emptyList(); 30069 } 30070 23144 30071 @java.lang.Override 23145 30072 public final com.google.protobuf.UnknownFieldSet 23146 30073 getUnknownFields() { 23147 30074 return this.unknownFields; 23148 30075 } … … 23151 30078 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 23152 30079 throws com.google.protobuf.InvalidProtocolBufferException { 23153 initFields();30080 this(); 23154 30081 int mutable_bitField0_ = 0; 23155 30082 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 23164 30091 break; 23165 30092 default: { 23166 if (!parseUnknownField( input, unknownFields,23167 30093 if (!parseUnknownField( 30094 input, unknownFields, extensionRegistry, tag)) { 23168 30095 done = true; 23169 30096 } … … 23177 30104 case 7994: { 23178 30105 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 23179 uninterpretedOption_ = new java.util.ArrayList< >();30106 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 23180 30107 mutable_bitField0_ |= 0x00000002; 23181 30108 } 23182 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 30109 uninterpretedOption_.add( 30110 input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 23183 30111 break; 23184 30112 } … … 23189 30117 } catch (java.io.IOException e) { 23190 30118 throw new com.google.protobuf.InvalidProtocolBufferException( 23191 e .getMessage()).setUnfinishedMessage(this);30119 e).setUnfinishedMessage(this); 23192 30120 } finally { 23193 30121 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { … … 23203 30131 } 23204 30132 23205 @Override 23206 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 30133 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 23207 30134 internalGetFieldAccessorTable() { 23208 30135 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_fieldAccessorTable … … 23211 30138 } 23212 30139 23213 public static com.google.protobuf.Parser<ServiceOptions> PARSER =23214 new com.google.protobuf.AbstractParser<ServiceOptions>() {23215 @Override23216 public ServiceOptions parsePartialFrom(23217 com.google.protobuf.CodedInputStream input,23218 com.google.protobuf.ExtensionRegistryLite extensionRegistry)23219 throws com.google.protobuf.InvalidProtocolBufferException {23220 return new ServiceOptions(input, extensionRegistry);23221 }23222 };23223 23224 @java.lang.Override23225 public com.google.protobuf.Parser<ServiceOptions> getParserForType() {23226 return PARSER;23227 }23228 23229 30140 private int bitField0_; 23230 30141 public static final int DEPRECATED_FIELD_NUMBER = 33; 23231 30142 private boolean deprecated_; 23232 30143 /** 23233 * <code>optional bool deprecated = 33 [default = false];</code>23234 *23235 30144 * <pre> 23236 30145 * Is this service deprecated? … … 23239 30148 * this is a formalization for deprecating services. 23240 30149 * </pre> 23241 */ 23242 @Override 23243 public boolean hasDeprecated() { 30150 * 30151 * <code>optional bool deprecated = 33 [default = false];</code> 30152 */ 30153 public boolean hasDeprecated() { 23244 30154 return ((bitField0_ & 0x00000001) == 0x00000001); 23245 30155 } 23246 30156 /** 23247 * <code>optional bool deprecated = 33 [default = false];</code>23248 *23249 30157 * <pre> 23250 30158 * Is this service deprecated? … … 23253 30161 * this is a formalization for deprecating services. 23254 30162 * </pre> 23255 */ 23256 @Override 23257 public boolean getDeprecated() { 30163 * 30164 * <code>optional bool deprecated = 33 [default = false];</code> 30165 */ 30166 public boolean getDeprecated() { 23258 30167 return deprecated_; 23259 30168 } … … 23262 30171 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 23263 30172 /** 23264 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>23265 *23266 30173 * <pre> 23267 30174 * The parser stores options it doesn't recognize here. See above. 23268 30175 * </pre> 23269 */ 23270 @Override 23271 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 30176 * 30177 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 30178 */ 30179 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 23272 30180 return uninterpretedOption_; 23273 30181 } 23274 30182 /** 23275 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>23276 *23277 30183 * <pre> 23278 30184 * The parser stores options it doesn't recognize here. See above. 23279 30185 * </pre> 23280 */ 23281 @Override 23282 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 30186 * 30187 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 30188 */ 30189 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 23283 30190 getUninterpretedOptionOrBuilderList() { 23284 30191 return uninterpretedOption_; 23285 30192 } 23286 30193 /** 23287 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>23288 *23289 30194 * <pre> 23290 30195 * The parser stores options it doesn't recognize here. See above. 23291 30196 * </pre> 23292 */ 23293 @Override 23294 public int getUninterpretedOptionCount() { 30197 * 30198 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 30199 */ 30200 public int getUninterpretedOptionCount() { 23295 30201 return uninterpretedOption_.size(); 23296 30202 } 23297 30203 /** 23298 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>23299 *23300 30204 * <pre> 23301 30205 * The parser stores options it doesn't recognize here. See above. 23302 30206 * </pre> 23303 */ 23304 @Override 23305 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 30207 * 30208 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 30209 */ 30210 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 23306 30211 return uninterpretedOption_.get(index); 23307 30212 } 23308 30213 /** 23309 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>23310 *23311 30214 * <pre> 23312 30215 * The parser stores options it doesn't recognize here. See above. 23313 30216 * </pre> 23314 */ 23315 @Override 23316 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 30217 * 30218 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 30219 */ 30220 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 23317 30221 int index) { 23318 30222 return uninterpretedOption_.get(index); 23319 30223 } 23320 30224 23321 private void initFields() {23322 deprecated_ = false;23323 uninterpretedOption_ = java.util.Collections.emptyList();23324 }23325 30225 private byte memoizedIsInitialized = -1; 23326 @Override 23327 public final boolean isInitialized() { 30226 public final boolean isInitialized() { 23328 30227 byte isInitialized = memoizedIsInitialized; 23329 30228 if (isInitialized == 1) return true; … … 23344 30243 } 23345 30244 23346 @Override 23347 public void writeTo(com.google.protobuf.CodedOutputStream output) 30245 public void writeTo(com.google.protobuf.CodedOutputStream output) 23348 30246 throws java.io.IOException { 23349 getSerializedSize(); 23350 com.google.protobuf.GeneratedMessage 23351 .ExtendableMessage<com.google.protobuf.DescriptorProtos.ServiceOptions>.ExtensionWriter extensionWriter = 23352 newExtensionWriter(); 30247 com.google.protobuf.GeneratedMessageV3 30248 .ExtendableMessage<com.google.protobuf.DescriptorProtos.ServiceOptions>.ExtensionWriter 30249 extensionWriter = newExtensionWriter(); 23353 30250 if (((bitField0_ & 0x00000001) == 0x00000001)) { 23354 30251 output.writeBool(33, deprecated_); … … 23358 30255 } 23359 30256 extensionWriter.writeUntil(536870912, output); 23360 getUnknownFields().writeTo(output); 23361 } 23362 23363 private int memoizedSerializedSize = -1; 23364 @Override 23365 public int getSerializedSize() { 23366 int size = memoizedSerializedSize; 30257 unknownFields.writeTo(output); 30258 } 30259 30260 public int getSerializedSize() { 30261 int size = memoizedSize; 23367 30262 if (size != -1) return size; 23368 30263 … … 23377 30272 } 23378 30273 size += extensionsSerializedSize(); 23379 size += getUnknownFields().getSerializedSize();23380 memoizedS erializedSize = size;30274 size += unknownFields.getSerializedSize(); 30275 memoizedSize = size; 23381 30276 return size; 23382 30277 } 23383 30278 23384 private static final long serialVersionUID = 0L;23385 30279 @java.lang.Override 23386 protected java.lang.Object writeReplace() 23387 throws java.io.ObjectStreamException { 23388 return super.writeReplace(); 23389 } 23390 30280 public boolean equals(final java.lang.Object obj) { 30281 if (obj == this) { 30282 return true; 30283 } 30284 if (!(obj instanceof com.google.protobuf.DescriptorProtos.ServiceOptions)) { 30285 return super.equals(obj); 30286 } 30287 com.google.protobuf.DescriptorProtos.ServiceOptions other = (com.google.protobuf.DescriptorProtos.ServiceOptions) obj; 30288 30289 boolean result = true; 30290 result = result && (hasDeprecated() == other.hasDeprecated()); 30291 if (hasDeprecated()) { 30292 result = result && (getDeprecated() 30293 == other.getDeprecated()); 30294 } 30295 result = result && getUninterpretedOptionList() 30296 .equals(other.getUninterpretedOptionList()); 30297 result = result && unknownFields.equals(other.unknownFields); 30298 result = result && 30299 getExtensionFields().equals(other.getExtensionFields()); 30300 return result; 30301 } 30302 30303 @java.lang.Override 30304 public int hashCode() { 30305 if (memoizedHashCode != 0) { 30306 return memoizedHashCode; 30307 } 30308 int hash = 41; 30309 hash = (19 * hash) + getDescriptor().hashCode(); 30310 if (hasDeprecated()) { 30311 hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; 30312 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 30313 getDeprecated()); 30314 } 30315 if (getUninterpretedOptionCount() > 0) { 30316 hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; 30317 hash = (53 * hash) + getUninterpretedOptionList().hashCode(); 30318 } 30319 hash = hashFields(hash, getExtensionFields()); 30320 hash = (29 * hash) + unknownFields.hashCode(); 30321 memoizedHashCode = hash; 30322 return hash; 30323 } 30324 30325 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( 30326 java.nio.ByteBuffer data) 30327 throws com.google.protobuf.InvalidProtocolBufferException { 30328 return PARSER.parseFrom(data); 30329 } 30330 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( 30331 java.nio.ByteBuffer data, 30332 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 30333 throws com.google.protobuf.InvalidProtocolBufferException { 30334 return PARSER.parseFrom(data, extensionRegistry); 30335 } 23391 30336 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( 23392 30337 com.google.protobuf.ByteString data) … … 23412 30357 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom(java.io.InputStream input) 23413 30358 throws java.io.IOException { 23414 return PARSER.parseFrom(input); 30359 return com.google.protobuf.GeneratedMessageV3 30360 .parseWithIOException(PARSER, input); 23415 30361 } 23416 30362 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( … … 23418 30364 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 23419 30365 throws java.io.IOException { 23420 return PARSER.parseFrom(input, extensionRegistry); 30366 return com.google.protobuf.GeneratedMessageV3 30367 .parseWithIOException(PARSER, input, extensionRegistry); 23421 30368 } 23422 30369 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseDelimitedFrom(java.io.InputStream input) 23423 30370 throws java.io.IOException { 23424 return PARSER.parseDelimitedFrom(input); 30371 return com.google.protobuf.GeneratedMessageV3 30372 .parseDelimitedWithIOException(PARSER, input); 23425 30373 } 23426 30374 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseDelimitedFrom( … … 23428 30376 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 23429 30377 throws java.io.IOException { 23430 return PARSER.parseDelimitedFrom(input, extensionRegistry); 30378 return com.google.protobuf.GeneratedMessageV3 30379 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 23431 30380 } 23432 30381 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( 23433 30382 com.google.protobuf.CodedInputStream input) 23434 30383 throws java.io.IOException { 23435 return PARSER.parseFrom(input); 30384 return com.google.protobuf.GeneratedMessageV3 30385 .parseWithIOException(PARSER, input); 23436 30386 } 23437 30387 public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( … … 23439 30389 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 23440 30390 throws java.io.IOException { 23441 return PARSER.parseFrom(input, extensionRegistry); 23442 } 23443 23444 public static Builder newBuilder() { return Builder.create(); } 23445 @Override 23446 public Builder newBuilderForType() { return newBuilder(); } 30391 return com.google.protobuf.GeneratedMessageV3 30392 .parseWithIOException(PARSER, input, extensionRegistry); 30393 } 30394 30395 public Builder newBuilderForType() { return newBuilder(); } 30396 public static Builder newBuilder() { 30397 return DEFAULT_INSTANCE.toBuilder(); 30398 } 23447 30399 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.ServiceOptions prototype) { 23448 return newBuilder().mergeFrom(prototype); 23449 } 23450 @Override 23451 public Builder toBuilder() { return newBuilder(this); } 30400 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 30401 } 30402 public Builder toBuilder() { 30403 return this == DEFAULT_INSTANCE 30404 ? new Builder() : new Builder().mergeFrom(this); 30405 } 23452 30406 23453 30407 @java.lang.Override 23454 30408 protected Builder newBuilderForType( 23455 com.google.protobuf.GeneratedMessage .BuilderParent parent) {30409 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 23456 30410 Builder builder = new Builder(parent); 23457 30411 return builder; … … 23461 30415 */ 23462 30416 public static final class Builder extends 23463 com.google.protobuf.GeneratedMessage .ExtendableBuilder<30417 com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< 23464 30418 com.google.protobuf.DescriptorProtos.ServiceOptions, Builder> implements 23465 30419 // @@protoc_insertion_point(builder_implements:google.protobuf.ServiceOptions) … … 23470 30424 } 23471 30425 23472 @Override 23473 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 30426 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 23474 30427 internalGetFieldAccessorTable() { 23475 30428 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_fieldAccessorTable … … 23484 30437 23485 30438 private Builder( 23486 com.google.protobuf.GeneratedMessage .BuilderParent parent) {30439 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 23487 30440 super(parent); 23488 30441 maybeForceBuilderInitialization(); 23489 30442 } 23490 30443 private void maybeForceBuilderInitialization() { 23491 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 30444 if (com.google.protobuf.GeneratedMessageV3 30445 .alwaysUseFieldBuilders) { 23492 30446 getUninterpretedOptionFieldBuilder(); 23493 30447 } 23494 30448 } 23495 private static Builder create() { 23496 return new Builder(); 23497 } 23498 23499 @Override 23500 public Builder clear() { 30449 public Builder clear() { 23501 30450 super.clear(); 23502 30451 deprecated_ = false; … … 23511 30460 } 23512 30461 23513 @Override 23514 public Builder clone() { 23515 return create().mergeFrom(buildPartial()); 23516 } 23517 23518 @Override 23519 public com.google.protobuf.Descriptors.Descriptor 30462 public com.google.protobuf.Descriptors.Descriptor 23520 30463 getDescriptorForType() { 23521 30464 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_ServiceOptions_descriptor; 23522 30465 } 23523 30466 23524 @Override 23525 public com.google.protobuf.DescriptorProtos.ServiceOptions getDefaultInstanceForType() { 30467 public com.google.protobuf.DescriptorProtos.ServiceOptions getDefaultInstanceForType() { 23526 30468 return com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance(); 23527 30469 } 23528 30470 23529 @Override 23530 public com.google.protobuf.DescriptorProtos.ServiceOptions build() { 30471 public com.google.protobuf.DescriptorProtos.ServiceOptions build() { 23531 30472 com.google.protobuf.DescriptorProtos.ServiceOptions result = buildPartial(); 23532 30473 if (!result.isInitialized()) { … … 23536 30477 } 23537 30478 23538 @Override 23539 public com.google.protobuf.DescriptorProtos.ServiceOptions buildPartial() { 30479 public com.google.protobuf.DescriptorProtos.ServiceOptions buildPartial() { 23540 30480 com.google.protobuf.DescriptorProtos.ServiceOptions result = new com.google.protobuf.DescriptorProtos.ServiceOptions(this); 23541 30481 int from_bitField0_ = bitField0_; … … 23559 30499 } 23560 30500 23561 @Override 23562 public Builder mergeFrom(com.google.protobuf.Message other) { 30501 public Builder clone() { 30502 return (Builder) super.clone(); 30503 } 30504 public Builder setField( 30505 com.google.protobuf.Descriptors.FieldDescriptor field, 30506 java.lang.Object value) { 30507 return (Builder) super.setField(field, value); 30508 } 30509 public Builder clearField( 30510 com.google.protobuf.Descriptors.FieldDescriptor field) { 30511 return (Builder) super.clearField(field); 30512 } 30513 public Builder clearOneof( 30514 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 30515 return (Builder) super.clearOneof(oneof); 30516 } 30517 public Builder setRepeatedField( 30518 com.google.protobuf.Descriptors.FieldDescriptor field, 30519 int index, java.lang.Object value) { 30520 return (Builder) super.setRepeatedField(field, index, value); 30521 } 30522 public Builder addRepeatedField( 30523 com.google.protobuf.Descriptors.FieldDescriptor field, 30524 java.lang.Object value) { 30525 return (Builder) super.addRepeatedField(field, value); 30526 } 30527 public <Type> Builder setExtension( 30528 com.google.protobuf.GeneratedMessage.GeneratedExtension< 30529 com.google.protobuf.DescriptorProtos.ServiceOptions, Type> extension, 30530 Type value) { 30531 return (Builder) super.setExtension(extension, value); 30532 } 30533 public <Type> Builder setExtension( 30534 com.google.protobuf.GeneratedMessage.GeneratedExtension< 30535 com.google.protobuf.DescriptorProtos.ServiceOptions, java.util.List<Type>> extension, 30536 int index, Type value) { 30537 return (Builder) super.setExtension(extension, index, value); 30538 } 30539 public <Type> Builder addExtension( 30540 com.google.protobuf.GeneratedMessage.GeneratedExtension< 30541 com.google.protobuf.DescriptorProtos.ServiceOptions, java.util.List<Type>> extension, 30542 Type value) { 30543 return (Builder) super.addExtension(extension, value); 30544 } 30545 public <Type> Builder clearExtension( 30546 com.google.protobuf.GeneratedMessage.GeneratedExtension< 30547 com.google.protobuf.DescriptorProtos.ServiceOptions, ?> extension) { 30548 return (Builder) super.clearExtension(extension); 30549 } 30550 public Builder mergeFrom(com.google.protobuf.Message other) { 23563 30551 if (other instanceof com.google.protobuf.DescriptorProtos.ServiceOptions) { 23564 30552 return mergeFrom((com.google.protobuf.DescriptorProtos.ServiceOptions)other); … … 23592 30580 uninterpretedOption_ = other.uninterpretedOption_; 23593 30581 bitField0_ = (bitField0_ & ~0x00000002); 23594 uninterpretedOptionBuilder_ = 23595 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?30582 uninterpretedOptionBuilder_ = 30583 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 23596 30584 getUninterpretedOptionFieldBuilder() : null; 23597 30585 } else { … … 23601 30589 } 23602 30590 this.mergeExtensionFields(other); 23603 this.mergeUnknownFields(other. getUnknownFields());23604 return this;23605 }23606 23607 @Override 23608 30591 this.mergeUnknownFields(other.unknownFields); 30592 onChanged(); 30593 return this; 30594 } 30595 30596 public final boolean isInitialized() { 23609 30597 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 23610 30598 if (!getUninterpretedOption(i).isInitialized()) { 23611 23612 30599 return false; 23613 30600 } 23614 30601 } 23615 30602 if (!extensionsAreInitialized()) { 23616 23617 30603 return false; 23618 30604 } … … 23620 30606 } 23621 30607 23622 @Override 23623 public Builder mergeFrom( 30608 public Builder mergeFrom( 23624 30609 com.google.protobuf.CodedInputStream input, 23625 30610 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 23630 30615 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 23631 30616 parsedMessage = (com.google.protobuf.DescriptorProtos.ServiceOptions) e.getUnfinishedMessage(); 23632 throw e ;30617 throw e.unwrapIOException(); 23633 30618 } finally { 23634 30619 if (parsedMessage != null) { … … 23642 30627 private boolean deprecated_ ; 23643 30628 /** 23644 * <code>optional bool deprecated = 33 [default = false];</code>23645 *23646 30629 * <pre> 23647 30630 * Is this service deprecated? … … 23650 30633 * this is a formalization for deprecating services. 23651 30634 * </pre> 23652 */ 23653 @Override 23654 public boolean hasDeprecated() { 30635 * 30636 * <code>optional bool deprecated = 33 [default = false];</code> 30637 */ 30638 public boolean hasDeprecated() { 23655 30639 return ((bitField0_ & 0x00000001) == 0x00000001); 23656 30640 } 23657 30641 /** 23658 * <code>optional bool deprecated = 33 [default = false];</code>23659 *23660 30642 * <pre> 23661 30643 * Is this service deprecated? … … 23664 30646 * this is a formalization for deprecating services. 23665 30647 * </pre> 23666 */ 23667 @Override 23668 public boolean getDeprecated() { 30648 * 30649 * <code>optional bool deprecated = 33 [default = false];</code> 30650 */ 30651 public boolean getDeprecated() { 23669 30652 return deprecated_; 23670 30653 } 23671 30654 /** 23672 * <code>optional bool deprecated = 33 [default = false];</code>23673 *23674 30655 * <pre> 23675 30656 * Is this service deprecated? … … 23678 30659 * this is a formalization for deprecating services. 23679 30660 * </pre> 30661 * 30662 * <code>optional bool deprecated = 33 [default = false];</code> 23680 30663 */ 23681 30664 public Builder setDeprecated(boolean value) { … … 23686 30669 } 23687 30670 /** 23688 * <code>optional bool deprecated = 33 [default = false];</code>23689 *23690 30671 * <pre> 23691 30672 * Is this service deprecated? … … 23694 30675 * this is a formalization for deprecating services. 23695 30676 * </pre> 30677 * 30678 * <code>optional bool deprecated = 33 [default = false];</code> 23696 30679 */ 23697 30680 public Builder clearDeprecated() { … … 23706 30689 private void ensureUninterpretedOptionIsMutable() { 23707 30690 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 23708 uninterpretedOption_ = new java.util.ArrayList< >(uninterpretedOption_);30691 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); 23709 30692 bitField0_ |= 0x00000002; 23710 30693 } 23711 30694 } 23712 30695 23713 private com.google.protobuf.RepeatedFieldBuilder <30696 private com.google.protobuf.RepeatedFieldBuilderV3< 23714 30697 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 23715 30698 23716 30699 /** 30700 * <pre> 30701 * The parser stores options it doesn't recognize here. See above. 30702 * </pre> 30703 * 23717 30704 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23718 * 23719 * <pre> 23720 * The parser stores options it doesn't recognize here. See above. 23721 * </pre> 23722 */ 23723 @Override 23724 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 30705 */ 30706 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 23725 30707 if (uninterpretedOptionBuilder_ == null) { 23726 30708 return java.util.Collections.unmodifiableList(uninterpretedOption_); … … 23730 30712 } 23731 30713 /** 30714 * <pre> 30715 * The parser stores options it doesn't recognize here. See above. 30716 * </pre> 30717 * 23732 30718 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23733 * 23734 * <pre> 23735 * The parser stores options it doesn't recognize here. See above. 23736 * </pre> 23737 */ 23738 @Override 23739 public int getUninterpretedOptionCount() { 30719 */ 30720 public int getUninterpretedOptionCount() { 23740 30721 if (uninterpretedOptionBuilder_ == null) { 23741 30722 return uninterpretedOption_.size(); … … 23745 30726 } 23746 30727 /** 30728 * <pre> 30729 * The parser stores options it doesn't recognize here. See above. 30730 * </pre> 30731 * 23747 30732 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23748 * 23749 * <pre> 23750 * The parser stores options it doesn't recognize here. See above. 23751 * </pre> 23752 */ 23753 @Override 23754 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 30733 */ 30734 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 23755 30735 if (uninterpretedOptionBuilder_ == null) { 23756 30736 return uninterpretedOption_.get(index); … … 23760 30740 } 23761 30741 /** 30742 * <pre> 30743 * The parser stores options it doesn't recognize here. See above. 30744 * </pre> 30745 * 23762 30746 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23763 *23764 * <pre>23765 * The parser stores options it doesn't recognize here. See above.23766 * </pre>23767 30747 */ 23768 30748 public Builder setUninterpretedOption( … … 23781 30761 } 23782 30762 /** 30763 * <pre> 30764 * The parser stores options it doesn't recognize here. See above. 30765 * </pre> 30766 * 23783 30767 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23784 *23785 * <pre>23786 * The parser stores options it doesn't recognize here. See above.23787 * </pre>23788 30768 */ 23789 30769 public Builder setUninterpretedOption( … … 23799 30779 } 23800 30780 /** 30781 * <pre> 30782 * The parser stores options it doesn't recognize here. See above. 30783 * </pre> 30784 * 23801 30785 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23802 *23803 * <pre>23804 * The parser stores options it doesn't recognize here. See above.23805 * </pre>23806 30786 */ 23807 30787 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 23819 30799 } 23820 30800 /** 30801 * <pre> 30802 * The parser stores options it doesn't recognize here. See above. 30803 * </pre> 30804 * 23821 30805 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23822 *23823 * <pre>23824 * The parser stores options it doesn't recognize here. See above.23825 * </pre>23826 30806 */ 23827 30807 public Builder addUninterpretedOption( … … 23840 30820 } 23841 30821 /** 30822 * <pre> 30823 * The parser stores options it doesn't recognize here. See above. 30824 * </pre> 30825 * 23842 30826 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23843 *23844 * <pre>23845 * The parser stores options it doesn't recognize here. See above.23846 * </pre>23847 30827 */ 23848 30828 public Builder addUninterpretedOption( … … 23858 30838 } 23859 30839 /** 30840 * <pre> 30841 * The parser stores options it doesn't recognize here. See above. 30842 * </pre> 30843 * 23860 30844 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23861 *23862 * <pre>23863 * The parser stores options it doesn't recognize here. See above.23864 * </pre>23865 30845 */ 23866 30846 public Builder addUninterpretedOption( … … 23876 30856 } 23877 30857 /** 30858 * <pre> 30859 * The parser stores options it doesn't recognize here. See above. 30860 * </pre> 30861 * 23878 30862 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23879 *23880 * <pre>23881 * The parser stores options it doesn't recognize here. See above.23882 * </pre>23883 30863 */ 23884 30864 public Builder addAllUninterpretedOption( … … 23895 30875 } 23896 30876 /** 30877 * <pre> 30878 * The parser stores options it doesn't recognize here. See above. 30879 * </pre> 30880 * 23897 30881 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23898 *23899 * <pre>23900 * The parser stores options it doesn't recognize here. See above.23901 * </pre>23902 30882 */ 23903 30883 public Builder clearUninterpretedOption() { … … 23912 30892 } 23913 30893 /** 30894 * <pre> 30895 * The parser stores options it doesn't recognize here. See above. 30896 * </pre> 30897 * 23914 30898 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23915 *23916 * <pre>23917 * The parser stores options it doesn't recognize here. See above.23918 * </pre>23919 30899 */ 23920 30900 public Builder removeUninterpretedOption(int index) { … … 23929 30909 } 23930 30910 /** 30911 * <pre> 30912 * The parser stores options it doesn't recognize here. See above. 30913 * </pre> 30914 * 23931 30915 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23932 *23933 * <pre>23934 * The parser stores options it doesn't recognize here. See above.23935 * </pre>23936 30916 */ 23937 30917 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( … … 23940 30920 } 23941 30921 /** 30922 * <pre> 30923 * The parser stores options it doesn't recognize here. See above. 30924 * </pre> 30925 * 23942 30926 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23943 * 23944 * <pre> 23945 * The parser stores options it doesn't recognize here. See above. 23946 * </pre> 23947 */ 23948 @Override 23949 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 30927 */ 30928 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 23950 30929 int index) { 23951 30930 if (uninterpretedOptionBuilder_ == null) { … … 23955 30934 } 23956 30935 /** 30936 * <pre> 30937 * The parser stores options it doesn't recognize here. See above. 30938 * </pre> 30939 * 23957 30940 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23958 * 23959 * <pre> 23960 * The parser stores options it doesn't recognize here. See above. 23961 * </pre> 23962 */ 23963 @Override 23964 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 30941 */ 30942 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 23965 30943 getUninterpretedOptionOrBuilderList() { 23966 30944 if (uninterpretedOptionBuilder_ != null) { … … 23971 30949 } 23972 30950 /** 30951 * <pre> 30952 * The parser stores options it doesn't recognize here. See above. 30953 * </pre> 30954 * 23973 30955 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23974 *23975 * <pre>23976 * The parser stores options it doesn't recognize here. See above.23977 * </pre>23978 30956 */ 23979 30957 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { … … 23982 30960 } 23983 30961 /** 30962 * <pre> 30963 * The parser stores options it doesn't recognize here. See above. 30964 * </pre> 30965 * 23984 30966 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23985 *23986 * <pre>23987 * The parser stores options it doesn't recognize here. See above.23988 * </pre>23989 30967 */ 23990 30968 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( … … 23994 30972 } 23995 30973 /** 30974 * <pre> 30975 * The parser stores options it doesn't recognize here. See above. 30976 * </pre> 30977 * 23996 30978 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 23997 * 23998 * <pre> 23999 * The parser stores options it doesn't recognize here. See above. 24000 * </pre> 24001 */ 24002 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 30979 */ 30980 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 24003 30981 getUninterpretedOptionBuilderList() { 24004 30982 return getUninterpretedOptionFieldBuilder().getBuilderList(); 24005 30983 } 24006 private com.google.protobuf.RepeatedFieldBuilder <24007 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 30984 private com.google.protobuf.RepeatedFieldBuilderV3< 30985 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 24008 30986 getUninterpretedOptionFieldBuilder() { 24009 30987 if (uninterpretedOptionBuilder_ == null) { 24010 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 30988 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 30989 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( 24011 30990 uninterpretedOption_, 24012 30991 ((bitField0_ & 0x00000002) == 0x00000002), … … 24017 30996 return uninterpretedOptionBuilder_; 24018 30997 } 30998 public final Builder setUnknownFields( 30999 final com.google.protobuf.UnknownFieldSet unknownFields) { 31000 return super.setUnknownFields(unknownFields); 31001 } 31002 31003 public final Builder mergeUnknownFields( 31004 final com.google.protobuf.UnknownFieldSet unknownFields) { 31005 return super.mergeUnknownFields(unknownFields); 31006 } 31007 24019 31008 24020 31009 // @@protoc_insertion_point(builder_scope:google.protobuf.ServiceOptions) 24021 31010 } 24022 31011 31012 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions) 31013 private static final com.google.protobuf.DescriptorProtos.ServiceOptions DEFAULT_INSTANCE; 24023 31014 static { 24024 defaultInstance = new ServiceOptions(true); 24025 defaultInstance.initFields(); 24026 } 24027 24028 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions) 31015 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.ServiceOptions(); 31016 } 31017 31018 public static com.google.protobuf.DescriptorProtos.ServiceOptions getDefaultInstance() { 31019 return DEFAULT_INSTANCE; 31020 } 31021 31022 @java.lang.Deprecated public static final com.google.protobuf.Parser<ServiceOptions> 31023 PARSER = new com.google.protobuf.AbstractParser<ServiceOptions>() { 31024 public ServiceOptions parsePartialFrom( 31025 com.google.protobuf.CodedInputStream input, 31026 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 31027 throws com.google.protobuf.InvalidProtocolBufferException { 31028 return new ServiceOptions(input, extensionRegistry); 31029 } 31030 }; 31031 31032 public static com.google.protobuf.Parser<ServiceOptions> parser() { 31033 return PARSER; 31034 } 31035 31036 @java.lang.Override 31037 public com.google.protobuf.Parser<ServiceOptions> getParserForType() { 31038 return PARSER; 31039 } 31040 31041 public com.google.protobuf.DescriptorProtos.ServiceOptions getDefaultInstanceForType() { 31042 return DEFAULT_INSTANCE; 31043 } 31044 24029 31045 } 24030 31046 24031 31047 public interface MethodOptionsOrBuilder extends 24032 31048 // @@protoc_insertion_point(interface_extends:google.protobuf.MethodOptions) 24033 com.google.protobuf.GeneratedMessage .31049 com.google.protobuf.GeneratedMessageV3. 24034 31050 ExtendableMessageOrBuilder<MethodOptions> { 24035 31051 24036 31052 /** 24037 * <code>optional bool deprecated = 33 [default = false];</code>24038 *24039 31053 * <pre> 24040 31054 * Is this method deprecated? … … 24043 31057 * this is a formalization for deprecating methods. 24044 31058 * </pre> 31059 * 31060 * <code>optional bool deprecated = 33 [default = false];</code> 24045 31061 */ 24046 31062 boolean hasDeprecated(); 24047 31063 /** 24048 * <code>optional bool deprecated = 33 [default = false];</code>24049 *24050 31064 * <pre> 24051 31065 * Is this method deprecated? … … 24054 31068 * this is a formalization for deprecating methods. 24055 31069 * </pre> 31070 * 31071 * <code>optional bool deprecated = 33 [default = false];</code> 24056 31072 */ 24057 31073 boolean getDeprecated(); 24058 31074 24059 31075 /** 24060 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24061 * 31076 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 31077 */ 31078 boolean hasIdempotencyLevel(); 31079 /** 31080 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 31081 */ 31082 com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel getIdempotencyLevel(); 31083 31084 /** 24062 31085 * <pre> 24063 31086 * The parser stores options it doesn't recognize here. See above. 24064 31087 * </pre> 24065 */ 24066 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 31088 * 31089 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 31090 */ 31091 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> 24067 31092 getUninterpretedOptionList(); 24068 31093 /** 24069 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>24070 *24071 31094 * <pre> 24072 31095 * The parser stores options it doesn't recognize here. See above. 24073 31096 * </pre> 31097 * 31098 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24074 31099 */ 24075 31100 com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); 24076 31101 /** 24077 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>24078 *24079 31102 * <pre> 24080 31103 * The parser stores options it doesn't recognize here. See above. 24081 31104 * </pre> 31105 * 31106 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24082 31107 */ 24083 31108 int getUninterpretedOptionCount(); 24084 31109 /** 24085 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>24086 *24087 31110 * <pre> 24088 31111 * The parser stores options it doesn't recognize here. See above. 24089 31112 * </pre> 24090 */ 24091 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 31113 * 31114 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 31115 */ 31116 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 24092 31117 getUninterpretedOptionOrBuilderList(); 24093 31118 /** 24094 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>24095 *24096 31119 * <pre> 24097 31120 * The parser stores options it doesn't recognize here. See above. 24098 31121 * </pre> 31122 * 31123 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24099 31124 */ 24100 31125 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( … … 24104 31129 * Protobuf type {@code google.protobuf.MethodOptions} 24105 31130 */ 24106 public static final class MethodOptions extends24107 com.google.protobuf.GeneratedMessage .ExtendableMessage<31131 public static final class MethodOptions extends 31132 com.google.protobuf.GeneratedMessageV3.ExtendableMessage< 24108 31133 MethodOptions> implements 24109 31134 // @@protoc_insertion_point(message_implements:google.protobuf.MethodOptions) 24110 31135 MethodOptionsOrBuilder { 31136 private static final long serialVersionUID = 0L; 24111 31137 // Use MethodOptions.newBuilder() to construct. 24112 private MethodOptions(com.google.protobuf.GeneratedMessage .ExtendableBuilder<com.google.protobuf.DescriptorProtos.MethodOptions, ?> builder) {31138 private MethodOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.google.protobuf.DescriptorProtos.MethodOptions, ?> builder) { 24113 31139 super(builder); 24114 this.unknownFields = builder.getUnknownFields(); 24115 } 24116 private MethodOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 24117 24118 private static final MethodOptions defaultInstance; 24119 public static MethodOptions getDefaultInstance() { 24120 return defaultInstance; 24121 } 24122 24123 @Override 24124 public MethodOptions getDefaultInstanceForType() { 24125 return defaultInstance; 24126 } 24127 24128 private final com.google.protobuf.UnknownFieldSet unknownFields; 31140 } 31141 private MethodOptions() { 31142 deprecated_ = false; 31143 idempotencyLevel_ = 0; 31144 uninterpretedOption_ = java.util.Collections.emptyList(); 31145 } 31146 24129 31147 @java.lang.Override 24130 31148 public final com.google.protobuf.UnknownFieldSet 24131 31149 getUnknownFields() { 24132 31150 return this.unknownFields; 24133 31151 } … … 24136 31154 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 24137 31155 throws com.google.protobuf.InvalidProtocolBufferException { 24138 initFields();31156 this(); 24139 31157 int mutable_bitField0_ = 0; 24140 31158 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 24149 31167 break; 24150 31168 default: { 24151 if (!parseUnknownField( input, unknownFields,24152 31169 if (!parseUnknownField( 31170 input, unknownFields, extensionRegistry, tag)) { 24153 31171 done = true; 24154 31172 } … … 24160 31178 break; 24161 31179 } 31180 case 272: { 31181 int rawValue = input.readEnum(); 31182 com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel value = com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.valueOf(rawValue); 31183 if (value == null) { 31184 unknownFields.mergeVarintField(34, rawValue); 31185 } else { 31186 bitField0_ |= 0x00000002; 31187 idempotencyLevel_ = rawValue; 31188 } 31189 break; 31190 } 24162 31191 case 7994: { 24163 if (!((mutable_bitField0_ & 0x0000000 2) == 0x00000002)) {24164 uninterpretedOption_ = new java.util.ArrayList< >();24165 mutable_bitField0_ |= 0x0000000 2;31192 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 31193 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); 31194 mutable_bitField0_ |= 0x00000004; 24166 31195 } 24167 uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 31196 uninterpretedOption_.add( 31197 input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); 24168 31198 break; 24169 31199 } … … 24174 31204 } catch (java.io.IOException e) { 24175 31205 throw new com.google.protobuf.InvalidProtocolBufferException( 24176 e .getMessage()).setUnfinishedMessage(this);31206 e).setUnfinishedMessage(this); 24177 31207 } finally { 24178 if (((mutable_bitField0_ & 0x0000000 2) == 0x00000002)) {31208 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 24179 31209 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 24180 31210 } … … 24188 31218 } 24189 31219 24190 @Override 24191 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 31220 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 24192 31221 internalGetFieldAccessorTable() { 24193 31222 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_fieldAccessorTable … … 24196 31225 } 24197 31226 24198 public static com.google.protobuf.Parser<MethodOptions> PARSER = 24199 new com.google.protobuf.AbstractParser<MethodOptions>() { 24200 @Override 24201 public MethodOptions parsePartialFrom( 24202 com.google.protobuf.CodedInputStream input, 24203 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 24204 throws com.google.protobuf.InvalidProtocolBufferException { 24205 return new MethodOptions(input, extensionRegistry); 24206 } 24207 }; 24208 24209 @java.lang.Override 24210 public com.google.protobuf.Parser<MethodOptions> getParserForType() { 24211 return PARSER; 31227 /** 31228 * <pre> 31229 * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, 31230 * or neither? HTTP based RPC implementation may choose GET verb for safe 31231 * methods, and PUT verb for idempotent methods instead of the default POST. 31232 * </pre> 31233 * 31234 * Protobuf enum {@code google.protobuf.MethodOptions.IdempotencyLevel} 31235 */ 31236 public enum IdempotencyLevel 31237 implements com.google.protobuf.ProtocolMessageEnum { 31238 /** 31239 * <code>IDEMPOTENCY_UNKNOWN = 0;</code> 31240 */ 31241 IDEMPOTENCY_UNKNOWN(0), 31242 /** 31243 * <pre> 31244 * implies idempotent 31245 * </pre> 31246 * 31247 * <code>NO_SIDE_EFFECTS = 1;</code> 31248 */ 31249 NO_SIDE_EFFECTS(1), 31250 /** 31251 * <pre> 31252 * idempotent, but may have side effects 31253 * </pre> 31254 * 31255 * <code>IDEMPOTENT = 2;</code> 31256 */ 31257 IDEMPOTENT(2), 31258 ; 31259 31260 /** 31261 * <code>IDEMPOTENCY_UNKNOWN = 0;</code> 31262 */ 31263 public static final int IDEMPOTENCY_UNKNOWN_VALUE = 0; 31264 /** 31265 * <pre> 31266 * implies idempotent 31267 * </pre> 31268 * 31269 * <code>NO_SIDE_EFFECTS = 1;</code> 31270 */ 31271 public static final int NO_SIDE_EFFECTS_VALUE = 1; 31272 /** 31273 * <pre> 31274 * idempotent, but may have side effects 31275 * </pre> 31276 * 31277 * <code>IDEMPOTENT = 2;</code> 31278 */ 31279 public static final int IDEMPOTENT_VALUE = 2; 31280 31281 31282 public final int getNumber() { 31283 return value; 31284 } 31285 31286 /** 31287 * @deprecated Use {@link #forNumber(int)} instead. 31288 */ 31289 @java.lang.Deprecated 31290 public static IdempotencyLevel valueOf(int value) { 31291 return forNumber(value); 31292 } 31293 31294 public static IdempotencyLevel forNumber(int value) { 31295 switch (value) { 31296 case 0: return IDEMPOTENCY_UNKNOWN; 31297 case 1: return NO_SIDE_EFFECTS; 31298 case 2: return IDEMPOTENT; 31299 default: return null; 31300 } 31301 } 31302 31303 public static com.google.protobuf.Internal.EnumLiteMap<IdempotencyLevel> 31304 internalGetValueMap() { 31305 return internalValueMap; 31306 } 31307 private static final com.google.protobuf.Internal.EnumLiteMap< 31308 IdempotencyLevel> internalValueMap = 31309 new com.google.protobuf.Internal.EnumLiteMap<IdempotencyLevel>() { 31310 public IdempotencyLevel findValueByNumber(int number) { 31311 return IdempotencyLevel.forNumber(number); 31312 } 31313 }; 31314 31315 public final com.google.protobuf.Descriptors.EnumValueDescriptor 31316 getValueDescriptor() { 31317 return getDescriptor().getValues().get(ordinal()); 31318 } 31319 public final com.google.protobuf.Descriptors.EnumDescriptor 31320 getDescriptorForType() { 31321 return getDescriptor(); 31322 } 31323 public static final com.google.protobuf.Descriptors.EnumDescriptor 31324 getDescriptor() { 31325 return com.google.protobuf.DescriptorProtos.MethodOptions.getDescriptor().getEnumTypes().get(0); 31326 } 31327 31328 private static final IdempotencyLevel[] VALUES = values(); 31329 31330 public static IdempotencyLevel valueOf( 31331 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 31332 if (desc.getType() != getDescriptor()) { 31333 throw new java.lang.IllegalArgumentException( 31334 "EnumValueDescriptor is not for this type."); 31335 } 31336 return VALUES[desc.getIndex()]; 31337 } 31338 31339 private final int value; 31340 31341 private IdempotencyLevel(int value) { 31342 this.value = value; 31343 } 31344 31345 // @@protoc_insertion_point(enum_scope:google.protobuf.MethodOptions.IdempotencyLevel) 24212 31346 } 24213 31347 … … 24216 31350 private boolean deprecated_; 24217 31351 /** 24218 * <code>optional bool deprecated = 33 [default = false];</code>24219 *24220 31352 * <pre> 24221 31353 * Is this method deprecated? … … 24224 31356 * this is a formalization for deprecating methods. 24225 31357 * </pre> 24226 */ 24227 @Override 24228 public boolean hasDeprecated() { 31358 * 31359 * <code>optional bool deprecated = 33 [default = false];</code> 31360 */ 31361 public boolean hasDeprecated() { 24229 31362 return ((bitField0_ & 0x00000001) == 0x00000001); 24230 31363 } 24231 31364 /** 24232 * <code>optional bool deprecated = 33 [default = false];</code>24233 *24234 31365 * <pre> 24235 31366 * Is this method deprecated? … … 24238 31369 * this is a formalization for deprecating methods. 24239 31370 * </pre> 24240 */ 24241 @Override 24242 public boolean getDeprecated() { 31371 * 31372 * <code>optional bool deprecated = 33 [default = false];</code> 31373 */ 31374 public boolean getDeprecated() { 24243 31375 return deprecated_; 31376 } 31377 31378 public static final int IDEMPOTENCY_LEVEL_FIELD_NUMBER = 34; 31379 private int idempotencyLevel_; 31380 /** 31381 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 31382 */ 31383 public boolean hasIdempotencyLevel() { 31384 return ((bitField0_ & 0x00000002) == 0x00000002); 31385 } 31386 /** 31387 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 31388 */ 31389 public com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel getIdempotencyLevel() { 31390 com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel result = com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.valueOf(idempotencyLevel_); 31391 return result == null ? com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN : result; 24244 31392 } 24245 31393 … … 24247 31395 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; 24248 31396 /** 24249 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>24250 *24251 31397 * <pre> 24252 31398 * The parser stores options it doesn't recognize here. See above. 24253 31399 * </pre> 24254 */ 24255 @Override 24256 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 31400 * 31401 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 31402 */ 31403 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 24257 31404 return uninterpretedOption_; 24258 31405 } 24259 31406 /** 24260 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>24261 *24262 31407 * <pre> 24263 31408 * The parser stores options it doesn't recognize here. See above. 24264 31409 * </pre> 24265 */ 24266 @Override 24267 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 31410 * 31411 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 31412 */ 31413 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 24268 31414 getUninterpretedOptionOrBuilderList() { 24269 31415 return uninterpretedOption_; 24270 31416 } 24271 31417 /** 24272 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>24273 *24274 31418 * <pre> 24275 31419 * The parser stores options it doesn't recognize here. See above. 24276 31420 * </pre> 24277 */ 24278 @Override 24279 public int getUninterpretedOptionCount() { 31421 * 31422 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 31423 */ 31424 public int getUninterpretedOptionCount() { 24280 31425 return uninterpretedOption_.size(); 24281 31426 } 24282 31427 /** 24283 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>24284 *24285 31428 * <pre> 24286 31429 * The parser stores options it doesn't recognize here. See above. 24287 31430 * </pre> 24288 */ 24289 @Override 24290 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 31431 * 31432 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 31433 */ 31434 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 24291 31435 return uninterpretedOption_.get(index); 24292 31436 } 24293 31437 /** 24294 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>24295 *24296 31438 * <pre> 24297 31439 * The parser stores options it doesn't recognize here. See above. 24298 31440 * </pre> 24299 */ 24300 @Override 24301 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 31441 * 31442 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 31443 */ 31444 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 24302 31445 int index) { 24303 31446 return uninterpretedOption_.get(index); 24304 31447 } 24305 31448 24306 private void initFields() {24307 deprecated_ = false;24308 uninterpretedOption_ = java.util.Collections.emptyList();24309 }24310 31449 private byte memoizedIsInitialized = -1; 24311 @Override 24312 public final boolean isInitialized() { 31450 public final boolean isInitialized() { 24313 31451 byte isInitialized = memoizedIsInitialized; 24314 31452 if (isInitialized == 1) return true; … … 24329 31467 } 24330 31468 24331 @Override 24332 public void writeTo(com.google.protobuf.CodedOutputStream output) 31469 public void writeTo(com.google.protobuf.CodedOutputStream output) 24333 31470 throws java.io.IOException { 24334 getSerializedSize(); 24335 com.google.protobuf.GeneratedMessage 24336 .ExtendableMessage<com.google.protobuf.DescriptorProtos.MethodOptions>.ExtensionWriter extensionWriter = 24337 newExtensionWriter(); 31471 com.google.protobuf.GeneratedMessageV3 31472 .ExtendableMessage<com.google.protobuf.DescriptorProtos.MethodOptions>.ExtensionWriter 31473 extensionWriter = newExtensionWriter(); 24338 31474 if (((bitField0_ & 0x00000001) == 0x00000001)) { 24339 31475 output.writeBool(33, deprecated_); 24340 31476 } 31477 if (((bitField0_ & 0x00000002) == 0x00000002)) { 31478 output.writeEnum(34, idempotencyLevel_); 31479 } 24341 31480 for (int i = 0; i < uninterpretedOption_.size(); i++) { 24342 31481 output.writeMessage(999, uninterpretedOption_.get(i)); 24343 31482 } 24344 31483 extensionWriter.writeUntil(536870912, output); 24345 getUnknownFields().writeTo(output); 24346 } 24347 24348 private int memoizedSerializedSize = -1; 24349 @Override 24350 public int getSerializedSize() { 24351 int size = memoizedSerializedSize; 31484 unknownFields.writeTo(output); 31485 } 31486 31487 public int getSerializedSize() { 31488 int size = memoizedSize; 24352 31489 if (size != -1) return size; 24353 31490 … … 24357 31494 .computeBoolSize(33, deprecated_); 24358 31495 } 31496 if (((bitField0_ & 0x00000002) == 0x00000002)) { 31497 size += com.google.protobuf.CodedOutputStream 31498 .computeEnumSize(34, idempotencyLevel_); 31499 } 24359 31500 for (int i = 0; i < uninterpretedOption_.size(); i++) { 24360 31501 size += com.google.protobuf.CodedOutputStream … … 24362 31503 } 24363 31504 size += extensionsSerializedSize(); 24364 size += getUnknownFields().getSerializedSize();24365 memoizedS erializedSize = size;31505 size += unknownFields.getSerializedSize(); 31506 memoizedSize = size; 24366 31507 return size; 24367 31508 } 24368 31509 24369 private static final long serialVersionUID = 0L;24370 31510 @java.lang.Override 24371 protected java.lang.Object writeReplace() 24372 throws java.io.ObjectStreamException { 24373 return super.writeReplace(); 24374 } 24375 31511 public boolean equals(final java.lang.Object obj) { 31512 if (obj == this) { 31513 return true; 31514 } 31515 if (!(obj instanceof com.google.protobuf.DescriptorProtos.MethodOptions)) { 31516 return super.equals(obj); 31517 } 31518 com.google.protobuf.DescriptorProtos.MethodOptions other = (com.google.protobuf.DescriptorProtos.MethodOptions) obj; 31519 31520 boolean result = true; 31521 result = result && (hasDeprecated() == other.hasDeprecated()); 31522 if (hasDeprecated()) { 31523 result = result && (getDeprecated() 31524 == other.getDeprecated()); 31525 } 31526 result = result && (hasIdempotencyLevel() == other.hasIdempotencyLevel()); 31527 if (hasIdempotencyLevel()) { 31528 result = result && idempotencyLevel_ == other.idempotencyLevel_; 31529 } 31530 result = result && getUninterpretedOptionList() 31531 .equals(other.getUninterpretedOptionList()); 31532 result = result && unknownFields.equals(other.unknownFields); 31533 result = result && 31534 getExtensionFields().equals(other.getExtensionFields()); 31535 return result; 31536 } 31537 31538 @java.lang.Override 31539 public int hashCode() { 31540 if (memoizedHashCode != 0) { 31541 return memoizedHashCode; 31542 } 31543 int hash = 41; 31544 hash = (19 * hash) + getDescriptor().hashCode(); 31545 if (hasDeprecated()) { 31546 hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; 31547 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 31548 getDeprecated()); 31549 } 31550 if (hasIdempotencyLevel()) { 31551 hash = (37 * hash) + IDEMPOTENCY_LEVEL_FIELD_NUMBER; 31552 hash = (53 * hash) + idempotencyLevel_; 31553 } 31554 if (getUninterpretedOptionCount() > 0) { 31555 hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; 31556 hash = (53 * hash) + getUninterpretedOptionList().hashCode(); 31557 } 31558 hash = hashFields(hash, getExtensionFields()); 31559 hash = (29 * hash) + unknownFields.hashCode(); 31560 memoizedHashCode = hash; 31561 return hash; 31562 } 31563 31564 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( 31565 java.nio.ByteBuffer data) 31566 throws com.google.protobuf.InvalidProtocolBufferException { 31567 return PARSER.parseFrom(data); 31568 } 31569 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( 31570 java.nio.ByteBuffer data, 31571 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 31572 throws com.google.protobuf.InvalidProtocolBufferException { 31573 return PARSER.parseFrom(data, extensionRegistry); 31574 } 24376 31575 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( 24377 31576 com.google.protobuf.ByteString data) … … 24397 31596 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom(java.io.InputStream input) 24398 31597 throws java.io.IOException { 24399 return PARSER.parseFrom(input); 31598 return com.google.protobuf.GeneratedMessageV3 31599 .parseWithIOException(PARSER, input); 24400 31600 } 24401 31601 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( … … 24403 31603 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 24404 31604 throws java.io.IOException { 24405 return PARSER.parseFrom(input, extensionRegistry); 31605 return com.google.protobuf.GeneratedMessageV3 31606 .parseWithIOException(PARSER, input, extensionRegistry); 24406 31607 } 24407 31608 public static com.google.protobuf.DescriptorProtos.MethodOptions parseDelimitedFrom(java.io.InputStream input) 24408 31609 throws java.io.IOException { 24409 return PARSER.parseDelimitedFrom(input); 31610 return com.google.protobuf.GeneratedMessageV3 31611 .parseDelimitedWithIOException(PARSER, input); 24410 31612 } 24411 31613 public static com.google.protobuf.DescriptorProtos.MethodOptions parseDelimitedFrom( … … 24413 31615 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 24414 31616 throws java.io.IOException { 24415 return PARSER.parseDelimitedFrom(input, extensionRegistry); 31617 return com.google.protobuf.GeneratedMessageV3 31618 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 24416 31619 } 24417 31620 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( 24418 31621 com.google.protobuf.CodedInputStream input) 24419 31622 throws java.io.IOException { 24420 return PARSER.parseFrom(input); 31623 return com.google.protobuf.GeneratedMessageV3 31624 .parseWithIOException(PARSER, input); 24421 31625 } 24422 31626 public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( … … 24424 31628 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 24425 31629 throws java.io.IOException { 24426 return PARSER.parseFrom(input, extensionRegistry); 24427 } 24428 24429 public static Builder newBuilder() { return Builder.create(); } 24430 @Override 24431 public Builder newBuilderForType() { return newBuilder(); } 31630 return com.google.protobuf.GeneratedMessageV3 31631 .parseWithIOException(PARSER, input, extensionRegistry); 31632 } 31633 31634 public Builder newBuilderForType() { return newBuilder(); } 31635 public static Builder newBuilder() { 31636 return DEFAULT_INSTANCE.toBuilder(); 31637 } 24432 31638 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MethodOptions prototype) { 24433 return newBuilder().mergeFrom(prototype); 24434 } 24435 @Override 24436 public Builder toBuilder() { return newBuilder(this); } 31639 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 31640 } 31641 public Builder toBuilder() { 31642 return this == DEFAULT_INSTANCE 31643 ? new Builder() : new Builder().mergeFrom(this); 31644 } 24437 31645 24438 31646 @java.lang.Override 24439 31647 protected Builder newBuilderForType( 24440 com.google.protobuf.GeneratedMessage .BuilderParent parent) {31648 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 24441 31649 Builder builder = new Builder(parent); 24442 31650 return builder; … … 24446 31654 */ 24447 31655 public static final class Builder extends 24448 com.google.protobuf.GeneratedMessage .ExtendableBuilder<31656 com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< 24449 31657 com.google.protobuf.DescriptorProtos.MethodOptions, Builder> implements 24450 31658 // @@protoc_insertion_point(builder_implements:google.protobuf.MethodOptions) … … 24455 31663 } 24456 31664 24457 @Override 24458 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 31665 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 24459 31666 internalGetFieldAccessorTable() { 24460 31667 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_fieldAccessorTable … … 24469 31676 24470 31677 private Builder( 24471 com.google.protobuf.GeneratedMessage .BuilderParent parent) {31678 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 24472 31679 super(parent); 24473 31680 maybeForceBuilderInitialization(); 24474 31681 } 24475 31682 private void maybeForceBuilderInitialization() { 24476 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 31683 if (com.google.protobuf.GeneratedMessageV3 31684 .alwaysUseFieldBuilders) { 24477 31685 getUninterpretedOptionFieldBuilder(); 24478 31686 } 24479 31687 } 24480 private static Builder create() { 24481 return new Builder(); 24482 } 24483 24484 @Override 24485 public Builder clear() { 31688 public Builder clear() { 24486 31689 super.clear(); 24487 31690 deprecated_ = false; 24488 31691 bitField0_ = (bitField0_ & ~0x00000001); 31692 idempotencyLevel_ = 0; 31693 bitField0_ = (bitField0_ & ~0x00000002); 24489 31694 if (uninterpretedOptionBuilder_ == null) { 24490 31695 uninterpretedOption_ = java.util.Collections.emptyList(); 24491 bitField0_ = (bitField0_ & ~0x0000000 2);31696 bitField0_ = (bitField0_ & ~0x00000004); 24492 31697 } else { 24493 31698 uninterpretedOptionBuilder_.clear(); … … 24496 31701 } 24497 31702 24498 @Override 24499 public Builder clone() { 24500 return create().mergeFrom(buildPartial()); 24501 } 24502 24503 @Override 24504 public com.google.protobuf.Descriptors.Descriptor 31703 public com.google.protobuf.Descriptors.Descriptor 24505 31704 getDescriptorForType() { 24506 31705 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_MethodOptions_descriptor; 24507 31706 } 24508 31707 24509 @Override 24510 public com.google.protobuf.DescriptorProtos.MethodOptions getDefaultInstanceForType() { 31708 public com.google.protobuf.DescriptorProtos.MethodOptions getDefaultInstanceForType() { 24511 31709 return com.google.protobuf.DescriptorProtos.MethodOptions.getDefaultInstance(); 24512 31710 } 24513 31711 24514 @Override 24515 public com.google.protobuf.DescriptorProtos.MethodOptions build() { 31712 public com.google.protobuf.DescriptorProtos.MethodOptions build() { 24516 31713 com.google.protobuf.DescriptorProtos.MethodOptions result = buildPartial(); 24517 31714 if (!result.isInitialized()) { … … 24521 31718 } 24522 31719 24523 @Override 24524 public com.google.protobuf.DescriptorProtos.MethodOptions buildPartial() { 31720 public com.google.protobuf.DescriptorProtos.MethodOptions buildPartial() { 24525 31721 com.google.protobuf.DescriptorProtos.MethodOptions result = new com.google.protobuf.DescriptorProtos.MethodOptions(this); 24526 31722 int from_bitField0_ = bitField0_; … … 24530 31726 } 24531 31727 result.deprecated_ = deprecated_; 31728 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 31729 to_bitField0_ |= 0x00000002; 31730 } 31731 result.idempotencyLevel_ = idempotencyLevel_; 24532 31732 if (uninterpretedOptionBuilder_ == null) { 24533 if (((bitField0_ & 0x0000000 2) == 0x00000002)) {31733 if (((bitField0_ & 0x00000004) == 0x00000004)) { 24534 31734 uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); 24535 bitField0_ = (bitField0_ & ~0x0000000 2);31735 bitField0_ = (bitField0_ & ~0x00000004); 24536 31736 } 24537 31737 result.uninterpretedOption_ = uninterpretedOption_; … … 24544 31744 } 24545 31745 24546 @Override 24547 public Builder mergeFrom(com.google.protobuf.Message other) { 31746 public Builder clone() { 31747 return (Builder) super.clone(); 31748 } 31749 public Builder setField( 31750 com.google.protobuf.Descriptors.FieldDescriptor field, 31751 java.lang.Object value) { 31752 return (Builder) super.setField(field, value); 31753 } 31754 public Builder clearField( 31755 com.google.protobuf.Descriptors.FieldDescriptor field) { 31756 return (Builder) super.clearField(field); 31757 } 31758 public Builder clearOneof( 31759 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 31760 return (Builder) super.clearOneof(oneof); 31761 } 31762 public Builder setRepeatedField( 31763 com.google.protobuf.Descriptors.FieldDescriptor field, 31764 int index, java.lang.Object value) { 31765 return (Builder) super.setRepeatedField(field, index, value); 31766 } 31767 public Builder addRepeatedField( 31768 com.google.protobuf.Descriptors.FieldDescriptor field, 31769 java.lang.Object value) { 31770 return (Builder) super.addRepeatedField(field, value); 31771 } 31772 public <Type> Builder setExtension( 31773 com.google.protobuf.GeneratedMessage.GeneratedExtension< 31774 com.google.protobuf.DescriptorProtos.MethodOptions, Type> extension, 31775 Type value) { 31776 return (Builder) super.setExtension(extension, value); 31777 } 31778 public <Type> Builder setExtension( 31779 com.google.protobuf.GeneratedMessage.GeneratedExtension< 31780 com.google.protobuf.DescriptorProtos.MethodOptions, java.util.List<Type>> extension, 31781 int index, Type value) { 31782 return (Builder) super.setExtension(extension, index, value); 31783 } 31784 public <Type> Builder addExtension( 31785 com.google.protobuf.GeneratedMessage.GeneratedExtension< 31786 com.google.protobuf.DescriptorProtos.MethodOptions, java.util.List<Type>> extension, 31787 Type value) { 31788 return (Builder) super.addExtension(extension, value); 31789 } 31790 public <Type> Builder clearExtension( 31791 com.google.protobuf.GeneratedMessage.GeneratedExtension< 31792 com.google.protobuf.DescriptorProtos.MethodOptions, ?> extension) { 31793 return (Builder) super.clearExtension(extension); 31794 } 31795 public Builder mergeFrom(com.google.protobuf.Message other) { 24548 31796 if (other instanceof com.google.protobuf.DescriptorProtos.MethodOptions) { 24549 31797 return mergeFrom((com.google.protobuf.DescriptorProtos.MethodOptions)other); … … 24559 31807 setDeprecated(other.getDeprecated()); 24560 31808 } 31809 if (other.hasIdempotencyLevel()) { 31810 setIdempotencyLevel(other.getIdempotencyLevel()); 31811 } 24561 31812 if (uninterpretedOptionBuilder_ == null) { 24562 31813 if (!other.uninterpretedOption_.isEmpty()) { 24563 31814 if (uninterpretedOption_.isEmpty()) { 24564 31815 uninterpretedOption_ = other.uninterpretedOption_; 24565 bitField0_ = (bitField0_ & ~0x0000000 2);31816 bitField0_ = (bitField0_ & ~0x00000004); 24566 31817 } else { 24567 31818 ensureUninterpretedOptionIsMutable(); … … 24576 31827 uninterpretedOptionBuilder_ = null; 24577 31828 uninterpretedOption_ = other.uninterpretedOption_; 24578 bitField0_ = (bitField0_ & ~0x0000000 2);24579 uninterpretedOptionBuilder_ = 24580 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?31829 bitField0_ = (bitField0_ & ~0x00000004); 31830 uninterpretedOptionBuilder_ = 31831 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 24581 31832 getUninterpretedOptionFieldBuilder() : null; 24582 31833 } else { … … 24586 31837 } 24587 31838 this.mergeExtensionFields(other); 24588 this.mergeUnknownFields(other. getUnknownFields());24589 return this;24590 }24591 24592 @Override 24593 31839 this.mergeUnknownFields(other.unknownFields); 31840 onChanged(); 31841 return this; 31842 } 31843 31844 public final boolean isInitialized() { 24594 31845 for (int i = 0; i < getUninterpretedOptionCount(); i++) { 24595 31846 if (!getUninterpretedOption(i).isInitialized()) { 24596 24597 31847 return false; 24598 31848 } 24599 31849 } 24600 31850 if (!extensionsAreInitialized()) { 24601 24602 31851 return false; 24603 31852 } … … 24605 31854 } 24606 31855 24607 @Override 24608 public Builder mergeFrom( 31856 public Builder mergeFrom( 24609 31857 com.google.protobuf.CodedInputStream input, 24610 31858 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 24615 31863 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 24616 31864 parsedMessage = (com.google.protobuf.DescriptorProtos.MethodOptions) e.getUnfinishedMessage(); 24617 throw e ;31865 throw e.unwrapIOException(); 24618 31866 } finally { 24619 31867 if (parsedMessage != null) { … … 24627 31875 private boolean deprecated_ ; 24628 31876 /** 24629 * <code>optional bool deprecated = 33 [default = false];</code>24630 *24631 31877 * <pre> 24632 31878 * Is this method deprecated? … … 24635 31881 * this is a formalization for deprecating methods. 24636 31882 * </pre> 24637 */ 24638 @Override 24639 public boolean hasDeprecated() { 31883 * 31884 * <code>optional bool deprecated = 33 [default = false];</code> 31885 */ 31886 public boolean hasDeprecated() { 24640 31887 return ((bitField0_ & 0x00000001) == 0x00000001); 24641 31888 } 24642 31889 /** 24643 * <code>optional bool deprecated = 33 [default = false];</code>24644 *24645 31890 * <pre> 24646 31891 * Is this method deprecated? … … 24649 31894 * this is a formalization for deprecating methods. 24650 31895 * </pre> 24651 */ 24652 @Override 24653 public boolean getDeprecated() { 31896 * 31897 * <code>optional bool deprecated = 33 [default = false];</code> 31898 */ 31899 public boolean getDeprecated() { 24654 31900 return deprecated_; 24655 31901 } 24656 31902 /** 24657 * <code>optional bool deprecated = 33 [default = false];</code>24658 *24659 31903 * <pre> 24660 31904 * Is this method deprecated? … … 24663 31907 * this is a formalization for deprecating methods. 24664 31908 * </pre> 31909 * 31910 * <code>optional bool deprecated = 33 [default = false];</code> 24665 31911 */ 24666 31912 public Builder setDeprecated(boolean value) { … … 24671 31917 } 24672 31918 /** 24673 * <code>optional bool deprecated = 33 [default = false];</code>24674 *24675 31919 * <pre> 24676 31920 * Is this method deprecated? … … 24679 31923 * this is a formalization for deprecating methods. 24680 31924 * </pre> 31925 * 31926 * <code>optional bool deprecated = 33 [default = false];</code> 24681 31927 */ 24682 31928 public Builder clearDeprecated() { … … 24687 31933 } 24688 31934 31935 private int idempotencyLevel_ = 0; 31936 /** 31937 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 31938 */ 31939 public boolean hasIdempotencyLevel() { 31940 return ((bitField0_ & 0x00000002) == 0x00000002); 31941 } 31942 /** 31943 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 31944 */ 31945 public com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel getIdempotencyLevel() { 31946 com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel result = com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.valueOf(idempotencyLevel_); 31947 return result == null ? com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN : result; 31948 } 31949 /** 31950 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 31951 */ 31952 public Builder setIdempotencyLevel(com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel value) { 31953 if (value == null) { 31954 throw new NullPointerException(); 31955 } 31956 bitField0_ |= 0x00000002; 31957 idempotencyLevel_ = value.getNumber(); 31958 onChanged(); 31959 return this; 31960 } 31961 /** 31962 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> 31963 */ 31964 public Builder clearIdempotencyLevel() { 31965 bitField0_ = (bitField0_ & ~0x00000002); 31966 idempotencyLevel_ = 0; 31967 onChanged(); 31968 return this; 31969 } 31970 24689 31971 private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = 24690 31972 java.util.Collections.emptyList(); 24691 31973 private void ensureUninterpretedOptionIsMutable() { 24692 if (!((bitField0_ & 0x0000000 2) == 0x00000002)) {24693 uninterpretedOption_ = new java.util.ArrayList< >(uninterpretedOption_);24694 bitField0_ |= 0x0000000 2;31974 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 31975 uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); 31976 bitField0_ |= 0x00000004; 24695 31977 } 24696 31978 } 24697 31979 24698 private com.google.protobuf.RepeatedFieldBuilder <31980 private com.google.protobuf.RepeatedFieldBuilderV3< 24699 31981 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; 24700 31982 24701 31983 /** 31984 * <pre> 31985 * The parser stores options it doesn't recognize here. See above. 31986 * </pre> 31987 * 24702 31988 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24703 * 24704 * <pre> 24705 * The parser stores options it doesn't recognize here. See above. 24706 * </pre> 24707 */ 24708 @Override 24709 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 31989 */ 31990 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { 24710 31991 if (uninterpretedOptionBuilder_ == null) { 24711 31992 return java.util.Collections.unmodifiableList(uninterpretedOption_); … … 24715 31996 } 24716 31997 /** 31998 * <pre> 31999 * The parser stores options it doesn't recognize here. See above. 32000 * </pre> 32001 * 24717 32002 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24718 * 24719 * <pre> 24720 * The parser stores options it doesn't recognize here. See above. 24721 * </pre> 24722 */ 24723 @Override 24724 public int getUninterpretedOptionCount() { 32003 */ 32004 public int getUninterpretedOptionCount() { 24725 32005 if (uninterpretedOptionBuilder_ == null) { 24726 32006 return uninterpretedOption_.size(); … … 24730 32010 } 24731 32011 /** 32012 * <pre> 32013 * The parser stores options it doesn't recognize here. See above. 32014 * </pre> 32015 * 24732 32016 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24733 * 24734 * <pre> 24735 * The parser stores options it doesn't recognize here. See above. 24736 * </pre> 24737 */ 24738 @Override 24739 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 32017 */ 32018 public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { 24740 32019 if (uninterpretedOptionBuilder_ == null) { 24741 32020 return uninterpretedOption_.get(index); … … 24745 32024 } 24746 32025 /** 32026 * <pre> 32027 * The parser stores options it doesn't recognize here. See above. 32028 * </pre> 32029 * 24747 32030 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24748 *24749 * <pre>24750 * The parser stores options it doesn't recognize here. See above.24751 * </pre>24752 32031 */ 24753 32032 public Builder setUninterpretedOption( … … 24766 32045 } 24767 32046 /** 32047 * <pre> 32048 * The parser stores options it doesn't recognize here. See above. 32049 * </pre> 32050 * 24768 32051 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24769 *24770 * <pre>24771 * The parser stores options it doesn't recognize here. See above.24772 * </pre>24773 32052 */ 24774 32053 public Builder setUninterpretedOption( … … 24784 32063 } 24785 32064 /** 32065 * <pre> 32066 * The parser stores options it doesn't recognize here. See above. 32067 * </pre> 32068 * 24786 32069 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24787 *24788 * <pre>24789 * The parser stores options it doesn't recognize here. See above.24790 * </pre>24791 32070 */ 24792 32071 public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { … … 24804 32083 } 24805 32084 /** 32085 * <pre> 32086 * The parser stores options it doesn't recognize here. See above. 32087 * </pre> 32088 * 24806 32089 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24807 *24808 * <pre>24809 * The parser stores options it doesn't recognize here. See above.24810 * </pre>24811 32090 */ 24812 32091 public Builder addUninterpretedOption( … … 24825 32104 } 24826 32105 /** 32106 * <pre> 32107 * The parser stores options it doesn't recognize here. See above. 32108 * </pre> 32109 * 24827 32110 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24828 *24829 * <pre>24830 * The parser stores options it doesn't recognize here. See above.24831 * </pre>24832 32111 */ 24833 32112 public Builder addUninterpretedOption( … … 24843 32122 } 24844 32123 /** 32124 * <pre> 32125 * The parser stores options it doesn't recognize here. See above. 32126 * </pre> 32127 * 24845 32128 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24846 *24847 * <pre>24848 * The parser stores options it doesn't recognize here. See above.24849 * </pre>24850 32129 */ 24851 32130 public Builder addUninterpretedOption( … … 24861 32140 } 24862 32141 /** 32142 * <pre> 32143 * The parser stores options it doesn't recognize here. See above. 32144 * </pre> 32145 * 24863 32146 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24864 *24865 * <pre>24866 * The parser stores options it doesn't recognize here. See above.24867 * </pre>24868 32147 */ 24869 32148 public Builder addAllUninterpretedOption( … … 24880 32159 } 24881 32160 /** 32161 * <pre> 32162 * The parser stores options it doesn't recognize here. See above. 32163 * </pre> 32164 * 24882 32165 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24883 *24884 * <pre>24885 * The parser stores options it doesn't recognize here. See above.24886 * </pre>24887 32166 */ 24888 32167 public Builder clearUninterpretedOption() { 24889 32168 if (uninterpretedOptionBuilder_ == null) { 24890 32169 uninterpretedOption_ = java.util.Collections.emptyList(); 24891 bitField0_ = (bitField0_ & ~0x0000000 2);32170 bitField0_ = (bitField0_ & ~0x00000004); 24892 32171 onChanged(); 24893 32172 } else { … … 24897 32176 } 24898 32177 /** 32178 * <pre> 32179 * The parser stores options it doesn't recognize here. See above. 32180 * </pre> 32181 * 24899 32182 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24900 *24901 * <pre>24902 * The parser stores options it doesn't recognize here. See above.24903 * </pre>24904 32183 */ 24905 32184 public Builder removeUninterpretedOption(int index) { … … 24914 32193 } 24915 32194 /** 32195 * <pre> 32196 * The parser stores options it doesn't recognize here. See above. 32197 * </pre> 32198 * 24916 32199 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24917 *24918 * <pre>24919 * The parser stores options it doesn't recognize here. See above.24920 * </pre>24921 32200 */ 24922 32201 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( … … 24925 32204 } 24926 32205 /** 32206 * <pre> 32207 * The parser stores options it doesn't recognize here. See above. 32208 * </pre> 32209 * 24927 32210 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24928 * 24929 * <pre> 24930 * The parser stores options it doesn't recognize here. See above. 24931 * </pre> 24932 */ 24933 @Override 24934 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 32211 */ 32212 public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( 24935 32213 int index) { 24936 32214 if (uninterpretedOptionBuilder_ == null) { … … 24940 32218 } 24941 32219 /** 32220 * <pre> 32221 * The parser stores options it doesn't recognize here. See above. 32222 * </pre> 32223 * 24942 32224 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24943 * 24944 * <pre> 24945 * The parser stores options it doesn't recognize here. See above. 24946 * </pre> 24947 */ 24948 @Override 24949 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 32225 */ 32226 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 24950 32227 getUninterpretedOptionOrBuilderList() { 24951 32228 if (uninterpretedOptionBuilder_ != null) { … … 24956 32233 } 24957 32234 /** 32235 * <pre> 32236 * The parser stores options it doesn't recognize here. See above. 32237 * </pre> 32238 * 24958 32239 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24959 *24960 * <pre>24961 * The parser stores options it doesn't recognize here. See above.24962 * </pre>24963 32240 */ 24964 32241 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { … … 24967 32244 } 24968 32245 /** 32246 * <pre> 32247 * The parser stores options it doesn't recognize here. See above. 32248 * </pre> 32249 * 24969 32250 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24970 *24971 * <pre>24972 * The parser stores options it doesn't recognize here. See above.24973 * </pre>24974 32251 */ 24975 32252 public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( … … 24979 32256 } 24980 32257 /** 32258 * <pre> 32259 * The parser stores options it doesn't recognize here. See above. 32260 * </pre> 32261 * 24981 32262 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 24982 * 24983 * <pre> 24984 * The parser stores options it doesn't recognize here. See above. 24985 * </pre> 24986 */ 24987 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 32263 */ 32264 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> 24988 32265 getUninterpretedOptionBuilderList() { 24989 32266 return getUninterpretedOptionFieldBuilder().getBuilderList(); 24990 32267 } 24991 private com.google.protobuf.RepeatedFieldBuilder <24992 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 32268 private com.google.protobuf.RepeatedFieldBuilderV3< 32269 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> 24993 32270 getUninterpretedOptionFieldBuilder() { 24994 32271 if (uninterpretedOptionBuilder_ == null) { 24995 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 32272 uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 32273 com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( 24996 32274 uninterpretedOption_, 24997 ((bitField0_ & 0x0000000 2) == 0x00000002),32275 ((bitField0_ & 0x00000004) == 0x00000004), 24998 32276 getParentForChildren(), 24999 32277 isClean()); … … 25002 32280 return uninterpretedOptionBuilder_; 25003 32281 } 32282 public final Builder setUnknownFields( 32283 final com.google.protobuf.UnknownFieldSet unknownFields) { 32284 return super.setUnknownFields(unknownFields); 32285 } 32286 32287 public final Builder mergeUnknownFields( 32288 final com.google.protobuf.UnknownFieldSet unknownFields) { 32289 return super.mergeUnknownFields(unknownFields); 32290 } 32291 25004 32292 25005 32293 // @@protoc_insertion_point(builder_scope:google.protobuf.MethodOptions) 25006 32294 } 25007 32295 32296 // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions) 32297 private static final com.google.protobuf.DescriptorProtos.MethodOptions DEFAULT_INSTANCE; 25008 32298 static { 25009 defaultInstance = new MethodOptions(true); 25010 defaultInstance.initFields(); 25011 } 25012 25013 // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions) 32299 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.MethodOptions(); 32300 } 32301 32302 public static com.google.protobuf.DescriptorProtos.MethodOptions getDefaultInstance() { 32303 return DEFAULT_INSTANCE; 32304 } 32305 32306 @java.lang.Deprecated public static final com.google.protobuf.Parser<MethodOptions> 32307 PARSER = new com.google.protobuf.AbstractParser<MethodOptions>() { 32308 public MethodOptions parsePartialFrom( 32309 com.google.protobuf.CodedInputStream input, 32310 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 32311 throws com.google.protobuf.InvalidProtocolBufferException { 32312 return new MethodOptions(input, extensionRegistry); 32313 } 32314 }; 32315 32316 public static com.google.protobuf.Parser<MethodOptions> parser() { 32317 return PARSER; 32318 } 32319 32320 @java.lang.Override 32321 public com.google.protobuf.Parser<MethodOptions> getParserForType() { 32322 return PARSER; 32323 } 32324 32325 public com.google.protobuf.DescriptorProtos.MethodOptions getDefaultInstanceForType() { 32326 return DEFAULT_INSTANCE; 32327 } 32328 25014 32329 } 25015 32330 … … 25021 32336 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 25022 32337 */ 25023 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> 32338 java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> 25024 32339 getNameList(); 25025 32340 /** … … 25034 32349 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 25035 32350 */ 25036 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 32351 java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 25037 32352 getNameOrBuilderList(); 25038 32353 /** … … 25043 32358 25044 32359 /** 25045 * <code>optional string identifier_value = 3;</code>25046 *25047 32360 * <pre> 25048 32361 * The value of the uninterpreted option, in whatever type the tokenizer 25049 32362 * identified it as during parsing. Exactly one of these should be set. 25050 32363 * </pre> 32364 * 32365 * <code>optional string identifier_value = 3;</code> 25051 32366 */ 25052 32367 boolean hasIdentifierValue(); 25053 32368 /** 25054 * <code>optional string identifier_value = 3;</code>25055 *25056 32369 * <pre> 25057 32370 * The value of the uninterpreted option, in whatever type the tokenizer 25058 32371 * identified it as during parsing. Exactly one of these should be set. 25059 32372 * </pre> 32373 * 32374 * <code>optional string identifier_value = 3;</code> 25060 32375 */ 25061 32376 java.lang.String getIdentifierValue(); 25062 32377 /** 25063 * <code>optional string identifier_value = 3;</code>25064 *25065 32378 * <pre> 25066 32379 * The value of the uninterpreted option, in whatever type the tokenizer 25067 32380 * identified it as during parsing. Exactly one of these should be set. 25068 32381 * </pre> 32382 * 32383 * <code>optional string identifier_value = 3;</code> 25069 32384 */ 25070 32385 com.google.protobuf.ByteString … … 25122 32437 } 25123 32438 /** 25124 * Protobuf type {@code google.protobuf.UninterpretedOption}25125 *25126 32439 * <pre> 25127 32440 * A message representing a option the parser does not recognize. This only … … 25132 32445 * in them. 25133 32446 * </pre> 32447 * 32448 * Protobuf type {@code google.protobuf.UninterpretedOption} 25134 32449 */ 25135 public static final class UninterpretedOption extends25136 com.google.protobuf.GeneratedMessage implements32450 public static final class UninterpretedOption extends 32451 com.google.protobuf.GeneratedMessageV3 implements 25137 32452 // @@protoc_insertion_point(message_implements:google.protobuf.UninterpretedOption) 25138 32453 UninterpretedOptionOrBuilder { 32454 private static final long serialVersionUID = 0L; 25139 32455 // Use UninterpretedOption.newBuilder() to construct. 25140 private UninterpretedOption(com.google.protobuf.GeneratedMessage .Builder<?> builder) {32456 private UninterpretedOption(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 25141 32457 super(builder); 25142 this.unknownFields = builder.getUnknownFields(); 25143 } 25144 private UninterpretedOption(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 25145 25146 private static final UninterpretedOption defaultInstance; 25147 public static UninterpretedOption getDefaultInstance() { 25148 return defaultInstance; 25149 } 25150 25151 @Override 25152 public UninterpretedOption getDefaultInstanceForType() { 25153 return defaultInstance; 25154 } 25155 25156 private final com.google.protobuf.UnknownFieldSet unknownFields; 32458 } 32459 private UninterpretedOption() { 32460 name_ = java.util.Collections.emptyList(); 32461 identifierValue_ = ""; 32462 positiveIntValue_ = 0L; 32463 negativeIntValue_ = 0L; 32464 doubleValue_ = 0D; 32465 stringValue_ = com.google.protobuf.ByteString.EMPTY; 32466 aggregateValue_ = ""; 32467 } 32468 25157 32469 @java.lang.Override 25158 32470 public final com.google.protobuf.UnknownFieldSet 25159 32471 getUnknownFields() { 25160 32472 return this.unknownFields; 25161 32473 } … … 25164 32476 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 25165 32477 throws com.google.protobuf.InvalidProtocolBufferException { 25166 initFields();32478 this(); 25167 32479 int mutable_bitField0_ = 0; 25168 32480 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 25177 32489 break; 25178 32490 default: { 25179 if (!parseUnknownField( input, unknownFields,25180 32491 if (!parseUnknownField( 32492 input, unknownFields, extensionRegistry, tag)) { 25181 32493 done = true; 25182 32494 } … … 25185 32497 case 18: { 25186 32498 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 25187 name_ = new java.util.ArrayList< >();32499 name_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart>(); 25188 32500 mutable_bitField0_ |= 0x00000001; 25189 32501 } 25190 name_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.PARSER, extensionRegistry)); 32502 name_.add( 32503 input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.PARSER, extensionRegistry)); 25191 32504 break; 25192 32505 } … … 25229 32542 } catch (java.io.IOException e) { 25230 32543 throw new com.google.protobuf.InvalidProtocolBufferException( 25231 e .getMessage()).setUnfinishedMessage(this);32544 e).setUnfinishedMessage(this); 25232 32545 } finally { 25233 32546 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { … … 25243 32556 } 25244 32557 25245 @Override 25246 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 32558 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 25247 32559 internalGetFieldAccessorTable() { 25248 32560 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable … … 25251 32563 } 25252 32564 25253 public static com.google.protobuf.Parser<UninterpretedOption> PARSER =25254 new com.google.protobuf.AbstractParser<UninterpretedOption>() {25255 @Override25256 public UninterpretedOption parsePartialFrom(25257 com.google.protobuf.CodedInputStream input,25258 com.google.protobuf.ExtensionRegistryLite extensionRegistry)25259 throws com.google.protobuf.InvalidProtocolBufferException {25260 return new UninterpretedOption(input, extensionRegistry);25261 }25262 };25263 25264 @java.lang.Override25265 public com.google.protobuf.Parser<UninterpretedOption> getParserForType() {25266 return PARSER;25267 }25268 25269 32565 public interface NamePartOrBuilder extends 25270 32566 // @@protoc_insertion_point(interface_extends:google.protobuf.UninterpretedOption.NamePart) … … 25295 32591 } 25296 32592 /** 25297 * Protobuf type {@code google.protobuf.UninterpretedOption.NamePart}25298 *25299 32593 * <pre> 25300 32594 * The name of the uninterpreted option. Each string represents a segment in … … 25304 32598 * "foo.(bar.baz).qux". 25305 32599 * </pre> 25306 */ 25307 public static final class NamePart extends 25308 com.google.protobuf.GeneratedMessage implements 32600 * 32601 * Protobuf type {@code google.protobuf.UninterpretedOption.NamePart} 32602 */ 32603 public static final class NamePart extends 32604 com.google.protobuf.GeneratedMessageV3 implements 25309 32605 // @@protoc_insertion_point(message_implements:google.protobuf.UninterpretedOption.NamePart) 25310 32606 NamePartOrBuilder { 32607 private static final long serialVersionUID = 0L; 25311 32608 // Use NamePart.newBuilder() to construct. 25312 private NamePart(com.google.protobuf.GeneratedMessage .Builder<?> builder) {32609 private NamePart(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 25313 32610 super(builder); 25314 this.unknownFields = builder.getUnknownFields(); 25315 } 25316 private NamePart(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 25317 25318 private static final NamePart defaultInstance; 25319 public static NamePart getDefaultInstance() { 25320 return defaultInstance; 25321 } 25322 25323 @Override 25324 public NamePart getDefaultInstanceForType() { 25325 return defaultInstance; 25326 } 25327 25328 private final com.google.protobuf.UnknownFieldSet unknownFields; 32611 } 32612 private NamePart() { 32613 namePart_ = ""; 32614 isExtension_ = false; 32615 } 32616 25329 32617 @java.lang.Override 25330 32618 public final com.google.protobuf.UnknownFieldSet 25331 32619 getUnknownFields() { 25332 32620 return this.unknownFields; 25333 32621 } … … 25336 32624 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 25337 32625 throws com.google.protobuf.InvalidProtocolBufferException { 25338 initFields();32626 this(); 25339 32627 int mutable_bitField0_ = 0; 25340 32628 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 25349 32637 break; 25350 32638 default: { 25351 if (!parseUnknownField( input, unknownFields,25352 32639 if (!parseUnknownField( 32640 input, unknownFields, extensionRegistry, tag)) { 25353 32641 done = true; 25354 32642 } … … 25372 32660 } catch (java.io.IOException e) { 25373 32661 throw new com.google.protobuf.InvalidProtocolBufferException( 25374 e .getMessage()).setUnfinishedMessage(this);32662 e).setUnfinishedMessage(this); 25375 32663 } finally { 25376 32664 this.unknownFields = unknownFields.build(); … … 25383 32671 } 25384 32672 25385 @Override 25386 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 32673 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 25387 32674 internalGetFieldAccessorTable() { 25388 32675 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable … … 25391 32678 } 25392 32679 25393 public static com.google.protobuf.Parser<NamePart> PARSER =25394 new com.google.protobuf.AbstractParser<NamePart>() {25395 @Override25396 public NamePart parsePartialFrom(25397 com.google.protobuf.CodedInputStream input,25398 com.google.protobuf.ExtensionRegistryLite extensionRegistry)25399 throws com.google.protobuf.InvalidProtocolBufferException {25400 return new NamePart(input, extensionRegistry);25401 }25402 };25403 25404 @java.lang.Override25405 public com.google.protobuf.Parser<NamePart> getParserForType() {25406 return PARSER;25407 }25408 25409 32680 private int bitField0_; 25410 32681 public static final int NAME_PART_FIELD_NUMBER = 1; 25411 private java.lang.Object namePart_;32682 private volatile java.lang.Object namePart_; 25412 32683 /** 25413 32684 * <code>required string name_part = 1;</code> 25414 32685 */ 25415 @Override 25416 public boolean hasNamePart() { 32686 public boolean hasNamePart() { 25417 32687 return ((bitField0_ & 0x00000001) == 0x00000001); 25418 32688 } … … 25420 32690 * <code>required string name_part = 1;</code> 25421 32691 */ 25422 @Override 25423 public java.lang.String getNamePart() { 32692 public java.lang.String getNamePart() { 25424 32693 java.lang.Object ref = namePart_; 25425 32694 if (ref instanceof java.lang.String) { 25426 32695 return (java.lang.String) ref; 25427 32696 } else { 25428 com.google.protobuf.ByteString bs = 32697 com.google.protobuf.ByteString bs = 25429 32698 (com.google.protobuf.ByteString) ref; 25430 32699 java.lang.String s = bs.toStringUtf8(); … … 25438 32707 * <code>required string name_part = 1;</code> 25439 32708 */ 25440 @Override 25441 public com.google.protobuf.ByteString 32709 public com.google.protobuf.ByteString 25442 32710 getNamePartBytes() { 25443 32711 java.lang.Object ref = namePart_; 25444 32712 if (ref instanceof java.lang.String) { 25445 com.google.protobuf.ByteString b = 32713 com.google.protobuf.ByteString b = 25446 32714 com.google.protobuf.ByteString.copyFromUtf8( 25447 32715 (java.lang.String) ref); … … 25458 32726 * <code>required bool is_extension = 2;</code> 25459 32727 */ 25460 @Override 25461 public boolean hasIsExtension() { 32728 public boolean hasIsExtension() { 25462 32729 return ((bitField0_ & 0x00000002) == 0x00000002); 25463 32730 } … … 25465 32732 * <code>required bool is_extension = 2;</code> 25466 32733 */ 25467 @Override 25468 public boolean getIsExtension() { 32734 public boolean getIsExtension() { 25469 32735 return isExtension_; 25470 32736 } 25471 32737 25472 private void initFields() {25473 namePart_ = "";25474 isExtension_ = false;25475 }25476 32738 private byte memoizedIsInitialized = -1; 25477 @Override 25478 public final boolean isInitialized() { 32739 public final boolean isInitialized() { 25479 32740 byte isInitialized = memoizedIsInitialized; 25480 32741 if (isInitialized == 1) return true; … … 25493 32754 } 25494 32755 25495 @Override 25496 public void writeTo(com.google.protobuf.CodedOutputStream output) 32756 public void writeTo(com.google.protobuf.CodedOutputStream output) 25497 32757 throws java.io.IOException { 25498 getSerializedSize();25499 32758 if (((bitField0_ & 0x00000001) == 0x00000001)) { 25500 output.writeBytes(1, getNamePartBytes());32759 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namePart_); 25501 32760 } 25502 32761 if (((bitField0_ & 0x00000002) == 0x00000002)) { 25503 32762 output.writeBool(2, isExtension_); 25504 32763 } 25505 getUnknownFields().writeTo(output); 25506 } 25507 25508 private int memoizedSerializedSize = -1; 25509 @Override 25510 public int getSerializedSize() { 25511 int size = memoizedSerializedSize; 32764 unknownFields.writeTo(output); 32765 } 32766 32767 public int getSerializedSize() { 32768 int size = memoizedSize; 25512 32769 if (size != -1) return size; 25513 32770 25514 32771 size = 0; 25515 32772 if (((bitField0_ & 0x00000001) == 0x00000001)) { 25516 size += com.google.protobuf.CodedOutputStream 25517 .computeBytesSize(1, getNamePartBytes()); 32773 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namePart_); 25518 32774 } 25519 32775 if (((bitField0_ & 0x00000002) == 0x00000002)) { … … 25521 32777 .computeBoolSize(2, isExtension_); 25522 32778 } 25523 size += getUnknownFields().getSerializedSize();25524 memoizedS erializedSize = size;32779 size += unknownFields.getSerializedSize(); 32780 memoizedSize = size; 25525 32781 return size; 25526 32782 } 25527 32783 25528 private static final long serialVersionUID = 0L;25529 32784 @java.lang.Override 25530 protected java.lang.Object writeReplace() 25531 throws java.io.ObjectStreamException { 25532 return super.writeReplace(); 25533 } 25534 32785 public boolean equals(final java.lang.Object obj) { 32786 if (obj == this) { 32787 return true; 32788 } 32789 if (!(obj instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart)) { 32790 return super.equals(obj); 32791 } 32792 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart other = (com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) obj; 32793 32794 boolean result = true; 32795 result = result && (hasNamePart() == other.hasNamePart()); 32796 if (hasNamePart()) { 32797 result = result && getNamePart() 32798 .equals(other.getNamePart()); 32799 } 32800 result = result && (hasIsExtension() == other.hasIsExtension()); 32801 if (hasIsExtension()) { 32802 result = result && (getIsExtension() 32803 == other.getIsExtension()); 32804 } 32805 result = result && unknownFields.equals(other.unknownFields); 32806 return result; 32807 } 32808 32809 @java.lang.Override 32810 public int hashCode() { 32811 if (memoizedHashCode != 0) { 32812 return memoizedHashCode; 32813 } 32814 int hash = 41; 32815 hash = (19 * hash) + getDescriptor().hashCode(); 32816 if (hasNamePart()) { 32817 hash = (37 * hash) + NAME_PART_FIELD_NUMBER; 32818 hash = (53 * hash) + getNamePart().hashCode(); 32819 } 32820 if (hasIsExtension()) { 32821 hash = (37 * hash) + IS_EXTENSION_FIELD_NUMBER; 32822 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( 32823 getIsExtension()); 32824 } 32825 hash = (29 * hash) + unknownFields.hashCode(); 32826 memoizedHashCode = hash; 32827 return hash; 32828 } 32829 32830 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( 32831 java.nio.ByteBuffer data) 32832 throws com.google.protobuf.InvalidProtocolBufferException { 32833 return PARSER.parseFrom(data); 32834 } 32835 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( 32836 java.nio.ByteBuffer data, 32837 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 32838 throws com.google.protobuf.InvalidProtocolBufferException { 32839 return PARSER.parseFrom(data, extensionRegistry); 32840 } 25535 32841 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( 25536 32842 com.google.protobuf.ByteString data) … … 25556 32862 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom(java.io.InputStream input) 25557 32863 throws java.io.IOException { 25558 return PARSER.parseFrom(input); 32864 return com.google.protobuf.GeneratedMessageV3 32865 .parseWithIOException(PARSER, input); 25559 32866 } 25560 32867 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( … … 25562 32869 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 25563 32870 throws java.io.IOException { 25564 return PARSER.parseFrom(input, extensionRegistry); 32871 return com.google.protobuf.GeneratedMessageV3 32872 .parseWithIOException(PARSER, input, extensionRegistry); 25565 32873 } 25566 32874 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseDelimitedFrom(java.io.InputStream input) 25567 32875 throws java.io.IOException { 25568 return PARSER.parseDelimitedFrom(input); 32876 return com.google.protobuf.GeneratedMessageV3 32877 .parseDelimitedWithIOException(PARSER, input); 25569 32878 } 25570 32879 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseDelimitedFrom( … … 25572 32881 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 25573 32882 throws java.io.IOException { 25574 return PARSER.parseDelimitedFrom(input, extensionRegistry); 32883 return com.google.protobuf.GeneratedMessageV3 32884 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 25575 32885 } 25576 32886 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( 25577 32887 com.google.protobuf.CodedInputStream input) 25578 32888 throws java.io.IOException { 25579 return PARSER.parseFrom(input); 32889 return com.google.protobuf.GeneratedMessageV3 32890 .parseWithIOException(PARSER, input); 25580 32891 } 25581 32892 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( … … 25583 32894 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 25584 32895 throws java.io.IOException { 25585 return PARSER.parseFrom(input, extensionRegistry); 25586 } 25587 25588 public static Builder newBuilder() { return Builder.create(); } 25589 @Override 25590 public Builder newBuilderForType() { return newBuilder(); } 32896 return com.google.protobuf.GeneratedMessageV3 32897 .parseWithIOException(PARSER, input, extensionRegistry); 32898 } 32899 32900 public Builder newBuilderForType() { return newBuilder(); } 32901 public static Builder newBuilder() { 32902 return DEFAULT_INSTANCE.toBuilder(); 32903 } 25591 32904 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart prototype) { 25592 return newBuilder().mergeFrom(prototype); 25593 } 25594 @Override 25595 public Builder toBuilder() { return newBuilder(this); } 32905 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 32906 } 32907 public Builder toBuilder() { 32908 return this == DEFAULT_INSTANCE 32909 ? new Builder() : new Builder().mergeFrom(this); 32910 } 25596 32911 25597 32912 @java.lang.Override 25598 32913 protected Builder newBuilderForType( 25599 com.google.protobuf.GeneratedMessage .BuilderParent parent) {32914 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 25600 32915 Builder builder = new Builder(parent); 25601 32916 return builder; 25602 32917 } 25603 32918 /** 25604 * Protobuf type {@code google.protobuf.UninterpretedOption.NamePart}25605 *25606 32919 * <pre> 25607 32920 * The name of the uninterpreted option. Each string represents a segment in … … 25611 32924 * "foo.(bar.baz).qux". 25612 32925 * </pre> 32926 * 32927 * Protobuf type {@code google.protobuf.UninterpretedOption.NamePart} 25613 32928 */ 25614 32929 public static final class Builder extends 25615 com.google.protobuf.GeneratedMessage .Builder<Builder> implements32930 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 25616 32931 // @@protoc_insertion_point(builder_implements:google.protobuf.UninterpretedOption.NamePart) 25617 32932 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder { … … 25621 32936 } 25622 32937 25623 @Override 25624 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 32938 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 25625 32939 internalGetFieldAccessorTable() { 25626 32940 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable … … 25635 32949 25636 32950 private Builder( 25637 com.google.protobuf.GeneratedMessage .BuilderParent parent) {32951 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 25638 32952 super(parent); 25639 32953 maybeForceBuilderInitialization(); 25640 32954 } 25641 32955 private void maybeForceBuilderInitialization() { 25642 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 32956 if (com.google.protobuf.GeneratedMessageV3 32957 .alwaysUseFieldBuilders) { 25643 32958 } 25644 32959 } 25645 private static Builder create() { 25646 return new Builder(); 25647 } 25648 25649 @Override 25650 public Builder clear() { 32960 public Builder clear() { 25651 32961 super.clear(); 25652 32962 namePart_ = ""; … … 25657 32967 } 25658 32968 25659 @Override 25660 public Builder clone() { 25661 return create().mergeFrom(buildPartial()); 25662 } 25663 25664 @Override 25665 public com.google.protobuf.Descriptors.Descriptor 32969 public com.google.protobuf.Descriptors.Descriptor 25666 32970 getDescriptorForType() { 25667 32971 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; 25668 32972 } 25669 32973 25670 @Override 25671 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getDefaultInstanceForType() { 32974 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getDefaultInstanceForType() { 25672 32975 return com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance(); 25673 32976 } 25674 32977 25675 @Override 25676 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart build() { 32978 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart build() { 25677 32979 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart result = buildPartial(); 25678 32980 if (!result.isInitialized()) { … … 25682 32984 } 25683 32985 25684 @Override 25685 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart buildPartial() { 32986 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart buildPartial() { 25686 32987 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart result = new com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart(this); 25687 32988 int from_bitField0_ = bitField0_; … … 25700 33001 } 25701 33002 25702 @Override 25703 public Builder mergeFrom(com.google.protobuf.Message other) { 33003 public Builder clone() { 33004 return (Builder) super.clone(); 33005 } 33006 public Builder setField( 33007 com.google.protobuf.Descriptors.FieldDescriptor field, 33008 java.lang.Object value) { 33009 return (Builder) super.setField(field, value); 33010 } 33011 public Builder clearField( 33012 com.google.protobuf.Descriptors.FieldDescriptor field) { 33013 return (Builder) super.clearField(field); 33014 } 33015 public Builder clearOneof( 33016 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 33017 return (Builder) super.clearOneof(oneof); 33018 } 33019 public Builder setRepeatedField( 33020 com.google.protobuf.Descriptors.FieldDescriptor field, 33021 int index, java.lang.Object value) { 33022 return (Builder) super.setRepeatedField(field, index, value); 33023 } 33024 public Builder addRepeatedField( 33025 com.google.protobuf.Descriptors.FieldDescriptor field, 33026 java.lang.Object value) { 33027 return (Builder) super.addRepeatedField(field, value); 33028 } 33029 public Builder mergeFrom(com.google.protobuf.Message other) { 25704 33030 if (other instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) { 25705 33031 return mergeFrom((com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart)other); … … 25720 33046 setIsExtension(other.getIsExtension()); 25721 33047 } 25722 this.mergeUnknownFields(other.getUnknownFields()); 33048 this.mergeUnknownFields(other.unknownFields); 33049 onChanged(); 25723 33050 return this; 25724 33051 } 25725 33052 25726 @Override 25727 public final boolean isInitialized() { 33053 public final boolean isInitialized() { 25728 33054 if (!hasNamePart()) { 25729 25730 33055 return false; 25731 33056 } 25732 33057 if (!hasIsExtension()) { 25733 25734 33058 return false; 25735 33059 } … … 25737 33061 } 25738 33062 25739 @Override 25740 public Builder mergeFrom( 33063 public Builder mergeFrom( 25741 33064 com.google.protobuf.CodedInputStream input, 25742 33065 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 25747 33070 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 25748 33071 parsedMessage = (com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) e.getUnfinishedMessage(); 25749 throw e ;33072 throw e.unwrapIOException(); 25750 33073 } finally { 25751 33074 if (parsedMessage != null) { … … 25761 33084 * <code>required string name_part = 1;</code> 25762 33085 */ 25763 @Override 25764 public boolean hasNamePart() { 33086 public boolean hasNamePart() { 25765 33087 return ((bitField0_ & 0x00000001) == 0x00000001); 25766 33088 } … … 25768 33090 * <code>required string name_part = 1;</code> 25769 33091 */ 25770 @Override 25771 public java.lang.String getNamePart() { 33092 public java.lang.String getNamePart() { 25772 33093 java.lang.Object ref = namePart_; 25773 33094 if (!(ref instanceof java.lang.String)) { … … 25786 33107 * <code>required string name_part = 1;</code> 25787 33108 */ 25788 @Override 25789 public com.google.protobuf.ByteString 33109 public com.google.protobuf.ByteString 25790 33110 getNamePartBytes() { 25791 33111 java.lang.Object ref = namePart_; 25792 33112 if (ref instanceof String) { 25793 com.google.protobuf.ByteString b = 33113 com.google.protobuf.ByteString b = 25794 33114 com.google.protobuf.ByteString.copyFromUtf8( 25795 33115 (java.lang.String) ref); … … 25840 33160 * <code>required bool is_extension = 2;</code> 25841 33161 */ 25842 @Override 25843 public boolean hasIsExtension() { 33162 public boolean hasIsExtension() { 25844 33163 return ((bitField0_ & 0x00000002) == 0x00000002); 25845 33164 } … … 25847 33166 * <code>required bool is_extension = 2;</code> 25848 33167 */ 25849 @Override 25850 public boolean getIsExtension() { 33168 public boolean getIsExtension() { 25851 33169 return isExtension_; 25852 33170 } … … 25869 33187 return this; 25870 33188 } 33189 public final Builder setUnknownFields( 33190 final com.google.protobuf.UnknownFieldSet unknownFields) { 33191 return super.setUnknownFields(unknownFields); 33192 } 33193 33194 public final Builder mergeUnknownFields( 33195 final com.google.protobuf.UnknownFieldSet unknownFields) { 33196 return super.mergeUnknownFields(unknownFields); 33197 } 33198 25871 33199 25872 33200 // @@protoc_insertion_point(builder_scope:google.protobuf.UninterpretedOption.NamePart) 25873 33201 } 25874 33202 33203 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart) 33204 private static final com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart DEFAULT_INSTANCE; 25875 33205 static { 25876 defaultInstance = new NamePart(true); 25877 defaultInstance.initFields(); 25878 } 25879 25880 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart) 33206 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart(); 33207 } 33208 33209 public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getDefaultInstance() { 33210 return DEFAULT_INSTANCE; 33211 } 33212 33213 @java.lang.Deprecated public static final com.google.protobuf.Parser<NamePart> 33214 PARSER = new com.google.protobuf.AbstractParser<NamePart>() { 33215 public NamePart parsePartialFrom( 33216 com.google.protobuf.CodedInputStream input, 33217 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 33218 throws com.google.protobuf.InvalidProtocolBufferException { 33219 return new NamePart(input, extensionRegistry); 33220 } 33221 }; 33222 33223 public static com.google.protobuf.Parser<NamePart> parser() { 33224 return PARSER; 33225 } 33226 33227 @java.lang.Override 33228 public com.google.protobuf.Parser<NamePart> getParserForType() { 33229 return PARSER; 33230 } 33231 33232 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getDefaultInstanceForType() { 33233 return DEFAULT_INSTANCE; 33234 } 33235 25881 33236 } 25882 33237 … … 25887 33242 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 25888 33243 */ 25889 @Override 25890 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { 33244 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { 25891 33245 return name_; 25892 33246 } … … 25894 33248 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 25895 33249 */ 25896 @Override 25897 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 33250 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 25898 33251 getNameOrBuilderList() { 25899 33252 return name_; … … 25902 33255 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 25903 33256 */ 25904 @Override 25905 public int getNameCount() { 33257 public int getNameCount() { 25906 33258 return name_.size(); 25907 33259 } … … 25909 33261 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 25910 33262 */ 25911 @Override 25912 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { 33263 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { 25913 33264 return name_.get(index); 25914 33265 } … … 25916 33267 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 25917 33268 */ 25918 @Override 25919 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( 33269 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( 25920 33270 int index) { 25921 33271 return name_.get(index); … … 25923 33273 25924 33274 public static final int IDENTIFIER_VALUE_FIELD_NUMBER = 3; 25925 private java.lang.Object identifierValue_; 25926 /** 25927 * <code>optional string identifier_value = 3;</code> 25928 * 33275 private volatile java.lang.Object identifierValue_; 33276 /** 25929 33277 * <pre> 25930 33278 * The value of the uninterpreted option, in whatever type the tokenizer 25931 33279 * identified it as during parsing. Exactly one of these should be set. 25932 33280 * </pre> 25933 */ 25934 @Override 25935 public boolean hasIdentifierValue() { 33281 * 33282 * <code>optional string identifier_value = 3;</code> 33283 */ 33284 public boolean hasIdentifierValue() { 25936 33285 return ((bitField0_ & 0x00000001) == 0x00000001); 25937 33286 } 25938 33287 /** 25939 * <code>optional string identifier_value = 3;</code>25940 *25941 33288 * <pre> 25942 33289 * The value of the uninterpreted option, in whatever type the tokenizer 25943 33290 * identified it as during parsing. Exactly one of these should be set. 25944 33291 * </pre> 25945 */ 25946 @Override 25947 public java.lang.String getIdentifierValue() { 33292 * 33293 * <code>optional string identifier_value = 3;</code> 33294 */ 33295 public java.lang.String getIdentifierValue() { 25948 33296 java.lang.Object ref = identifierValue_; 25949 33297 if (ref instanceof java.lang.String) { 25950 33298 return (java.lang.String) ref; 25951 33299 } else { 25952 com.google.protobuf.ByteString bs = 33300 com.google.protobuf.ByteString bs = 25953 33301 (com.google.protobuf.ByteString) ref; 25954 33302 java.lang.String s = bs.toStringUtf8(); … … 25960 33308 } 25961 33309 /** 25962 * <code>optional string identifier_value = 3;</code>25963 *25964 33310 * <pre> 25965 33311 * The value of the uninterpreted option, in whatever type the tokenizer 25966 33312 * identified it as during parsing. Exactly one of these should be set. 25967 33313 * </pre> 25968 */ 25969 @Override 25970 public com.google.protobuf.ByteString 33314 * 33315 * <code>optional string identifier_value = 3;</code> 33316 */ 33317 public com.google.protobuf.ByteString 25971 33318 getIdentifierValueBytes() { 25972 33319 java.lang.Object ref = identifierValue_; 25973 33320 if (ref instanceof java.lang.String) { 25974 com.google.protobuf.ByteString b = 33321 com.google.protobuf.ByteString b = 25975 33322 com.google.protobuf.ByteString.copyFromUtf8( 25976 33323 (java.lang.String) ref); … … 25987 33334 * <code>optional uint64 positive_int_value = 4;</code> 25988 33335 */ 25989 @Override 25990 public boolean hasPositiveIntValue() { 33336 public boolean hasPositiveIntValue() { 25991 33337 return ((bitField0_ & 0x00000002) == 0x00000002); 25992 33338 } … … 25994 33340 * <code>optional uint64 positive_int_value = 4;</code> 25995 33341 */ 25996 @Override 25997 public long getPositiveIntValue() { 33342 public long getPositiveIntValue() { 25998 33343 return positiveIntValue_; 25999 33344 } … … 26004 33349 * <code>optional int64 negative_int_value = 5;</code> 26005 33350 */ 26006 @Override 26007 public boolean hasNegativeIntValue() { 33351 public boolean hasNegativeIntValue() { 26008 33352 return ((bitField0_ & 0x00000004) == 0x00000004); 26009 33353 } … … 26011 33355 * <code>optional int64 negative_int_value = 5;</code> 26012 33356 */ 26013 @Override 26014 public long getNegativeIntValue() { 33357 public long getNegativeIntValue() { 26015 33358 return negativeIntValue_; 26016 33359 } … … 26021 33364 * <code>optional double double_value = 6;</code> 26022 33365 */ 26023 @Override 26024 public boolean hasDoubleValue() { 33366 public boolean hasDoubleValue() { 26025 33367 return ((bitField0_ & 0x00000008) == 0x00000008); 26026 33368 } … … 26028 33370 * <code>optional double double_value = 6;</code> 26029 33371 */ 26030 @Override 26031 public double getDoubleValue() { 33372 public double getDoubleValue() { 26032 33373 return doubleValue_; 26033 33374 } … … 26038 33379 * <code>optional bytes string_value = 7;</code> 26039 33380 */ 26040 @Override 26041 public boolean hasStringValue() { 33381 public boolean hasStringValue() { 26042 33382 return ((bitField0_ & 0x00000010) == 0x00000010); 26043 33383 } … … 26045 33385 * <code>optional bytes string_value = 7;</code> 26046 33386 */ 26047 @Override 26048 public com.google.protobuf.ByteString getStringValue() { 33387 public com.google.protobuf.ByteString getStringValue() { 26049 33388 return stringValue_; 26050 33389 } 26051 33390 26052 33391 public static final int AGGREGATE_VALUE_FIELD_NUMBER = 8; 26053 private java.lang.Object aggregateValue_;33392 private volatile java.lang.Object aggregateValue_; 26054 33393 /** 26055 33394 * <code>optional string aggregate_value = 8;</code> 26056 33395 */ 26057 @Override 26058 public boolean hasAggregateValue() { 33396 public boolean hasAggregateValue() { 26059 33397 return ((bitField0_ & 0x00000020) == 0x00000020); 26060 33398 } … … 26062 33400 * <code>optional string aggregate_value = 8;</code> 26063 33401 */ 26064 @Override 26065 public java.lang.String getAggregateValue() { 33402 public java.lang.String getAggregateValue() { 26066 33403 java.lang.Object ref = aggregateValue_; 26067 33404 if (ref instanceof java.lang.String) { 26068 33405 return (java.lang.String) ref; 26069 33406 } else { 26070 com.google.protobuf.ByteString bs = 33407 com.google.protobuf.ByteString bs = 26071 33408 (com.google.protobuf.ByteString) ref; 26072 33409 java.lang.String s = bs.toStringUtf8(); … … 26080 33417 * <code>optional string aggregate_value = 8;</code> 26081 33418 */ 26082 @Override 26083 public com.google.protobuf.ByteString 33419 public com.google.protobuf.ByteString 26084 33420 getAggregateValueBytes() { 26085 33421 java.lang.Object ref = aggregateValue_; 26086 33422 if (ref instanceof java.lang.String) { 26087 com.google.protobuf.ByteString b = 33423 com.google.protobuf.ByteString b = 26088 33424 com.google.protobuf.ByteString.copyFromUtf8( 26089 33425 (java.lang.String) ref); … … 26095 33431 } 26096 33432 26097 private void initFields() {26098 name_ = java.util.Collections.emptyList();26099 identifierValue_ = "";26100 positiveIntValue_ = 0L;26101 negativeIntValue_ = 0L;26102 doubleValue_ = 0D;26103 stringValue_ = com.google.protobuf.ByteString.EMPTY;26104 aggregateValue_ = "";26105 }26106 33433 private byte memoizedIsInitialized = -1; 26107 @Override 26108 public final boolean isInitialized() { 33434 public final boolean isInitialized() { 26109 33435 byte isInitialized = memoizedIsInitialized; 26110 33436 if (isInitialized == 1) return true; … … 26121 33447 } 26122 33448 26123 @Override 26124 public void writeTo(com.google.protobuf.CodedOutputStream output) 33449 public void writeTo(com.google.protobuf.CodedOutputStream output) 26125 33450 throws java.io.IOException { 26126 getSerializedSize();26127 33451 for (int i = 0; i < name_.size(); i++) { 26128 33452 output.writeMessage(2, name_.get(i)); 26129 33453 } 26130 33454 if (((bitField0_ & 0x00000001) == 0x00000001)) { 26131 output.writeBytes(3, getIdentifierValueBytes());33455 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identifierValue_); 26132 33456 } 26133 33457 if (((bitField0_ & 0x00000002) == 0x00000002)) { … … 26144 33468 } 26145 33469 if (((bitField0_ & 0x00000020) == 0x00000020)) { 26146 output.writeBytes(8, getAggregateValueBytes()); 26147 } 26148 getUnknownFields().writeTo(output); 26149 } 26150 26151 private int memoizedSerializedSize = -1; 26152 @Override 26153 public int getSerializedSize() { 26154 int size = memoizedSerializedSize; 33470 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, aggregateValue_); 33471 } 33472 unknownFields.writeTo(output); 33473 } 33474 33475 public int getSerializedSize() { 33476 int size = memoizedSize; 26155 33477 if (size != -1) return size; 26156 33478 … … 26161 33483 } 26162 33484 if (((bitField0_ & 0x00000001) == 0x00000001)) { 26163 size += com.google.protobuf.CodedOutputStream 26164 .computeBytesSize(3, getIdentifierValueBytes()); 33485 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identifierValue_); 26165 33486 } 26166 33487 if (((bitField0_ & 0x00000002) == 0x00000002)) { … … 26181 33502 } 26182 33503 if (((bitField0_ & 0x00000020) == 0x00000020)) { 26183 size += com.google.protobuf.CodedOutputStream 26184 .computeBytesSize(8, getAggregateValueBytes()); 26185 } 26186 size += getUnknownFields().getSerializedSize(); 26187 memoizedSerializedSize = size; 33504 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, aggregateValue_); 33505 } 33506 size += unknownFields.getSerializedSize(); 33507 memoizedSize = size; 26188 33508 return size; 26189 33509 } 26190 33510 26191 private static final long serialVersionUID = 0L;26192 33511 @java.lang.Override 26193 protected java.lang.Object writeReplace() 26194 throws java.io.ObjectStreamException { 26195 return super.writeReplace(); 26196 } 26197 33512 public boolean equals(final java.lang.Object obj) { 33513 if (obj == this) { 33514 return true; 33515 } 33516 if (!(obj instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption)) { 33517 return super.equals(obj); 33518 } 33519 com.google.protobuf.DescriptorProtos.UninterpretedOption other = (com.google.protobuf.DescriptorProtos.UninterpretedOption) obj; 33520 33521 boolean result = true; 33522 result = result && getNameList() 33523 .equals(other.getNameList()); 33524 result = result && (hasIdentifierValue() == other.hasIdentifierValue()); 33525 if (hasIdentifierValue()) { 33526 result = result && getIdentifierValue() 33527 .equals(other.getIdentifierValue()); 33528 } 33529 result = result && (hasPositiveIntValue() == other.hasPositiveIntValue()); 33530 if (hasPositiveIntValue()) { 33531 result = result && (getPositiveIntValue() 33532 == other.getPositiveIntValue()); 33533 } 33534 result = result && (hasNegativeIntValue() == other.hasNegativeIntValue()); 33535 if (hasNegativeIntValue()) { 33536 result = result && (getNegativeIntValue() 33537 == other.getNegativeIntValue()); 33538 } 33539 result = result && (hasDoubleValue() == other.hasDoubleValue()); 33540 if (hasDoubleValue()) { 33541 result = result && ( 33542 java.lang.Double.doubleToLongBits(getDoubleValue()) 33543 == java.lang.Double.doubleToLongBits( 33544 other.getDoubleValue())); 33545 } 33546 result = result && (hasStringValue() == other.hasStringValue()); 33547 if (hasStringValue()) { 33548 result = result && getStringValue() 33549 .equals(other.getStringValue()); 33550 } 33551 result = result && (hasAggregateValue() == other.hasAggregateValue()); 33552 if (hasAggregateValue()) { 33553 result = result && getAggregateValue() 33554 .equals(other.getAggregateValue()); 33555 } 33556 result = result && unknownFields.equals(other.unknownFields); 33557 return result; 33558 } 33559 33560 @java.lang.Override 33561 public int hashCode() { 33562 if (memoizedHashCode != 0) { 33563 return memoizedHashCode; 33564 } 33565 int hash = 41; 33566 hash = (19 * hash) + getDescriptor().hashCode(); 33567 if (getNameCount() > 0) { 33568 hash = (37 * hash) + NAME_FIELD_NUMBER; 33569 hash = (53 * hash) + getNameList().hashCode(); 33570 } 33571 if (hasIdentifierValue()) { 33572 hash = (37 * hash) + IDENTIFIER_VALUE_FIELD_NUMBER; 33573 hash = (53 * hash) + getIdentifierValue().hashCode(); 33574 } 33575 if (hasPositiveIntValue()) { 33576 hash = (37 * hash) + POSITIVE_INT_VALUE_FIELD_NUMBER; 33577 hash = (53 * hash) + com.google.protobuf.Internal.hashLong( 33578 getPositiveIntValue()); 33579 } 33580 if (hasNegativeIntValue()) { 33581 hash = (37 * hash) + NEGATIVE_INT_VALUE_FIELD_NUMBER; 33582 hash = (53 * hash) + com.google.protobuf.Internal.hashLong( 33583 getNegativeIntValue()); 33584 } 33585 if (hasDoubleValue()) { 33586 hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; 33587 hash = (53 * hash) + com.google.protobuf.Internal.hashLong( 33588 java.lang.Double.doubleToLongBits(getDoubleValue())); 33589 } 33590 if (hasStringValue()) { 33591 hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; 33592 hash = (53 * hash) + getStringValue().hashCode(); 33593 } 33594 if (hasAggregateValue()) { 33595 hash = (37 * hash) + AGGREGATE_VALUE_FIELD_NUMBER; 33596 hash = (53 * hash) + getAggregateValue().hashCode(); 33597 } 33598 hash = (29 * hash) + unknownFields.hashCode(); 33599 memoizedHashCode = hash; 33600 return hash; 33601 } 33602 33603 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( 33604 java.nio.ByteBuffer data) 33605 throws com.google.protobuf.InvalidProtocolBufferException { 33606 return PARSER.parseFrom(data); 33607 } 33608 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( 33609 java.nio.ByteBuffer data, 33610 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 33611 throws com.google.protobuf.InvalidProtocolBufferException { 33612 return PARSER.parseFrom(data, extensionRegistry); 33613 } 26198 33614 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( 26199 33615 com.google.protobuf.ByteString data) … … 26219 33635 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom(java.io.InputStream input) 26220 33636 throws java.io.IOException { 26221 return PARSER.parseFrom(input); 33637 return com.google.protobuf.GeneratedMessageV3 33638 .parseWithIOException(PARSER, input); 26222 33639 } 26223 33640 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( … … 26225 33642 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 26226 33643 throws java.io.IOException { 26227 return PARSER.parseFrom(input, extensionRegistry); 33644 return com.google.protobuf.GeneratedMessageV3 33645 .parseWithIOException(PARSER, input, extensionRegistry); 26228 33646 } 26229 33647 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseDelimitedFrom(java.io.InputStream input) 26230 33648 throws java.io.IOException { 26231 return PARSER.parseDelimitedFrom(input); 33649 return com.google.protobuf.GeneratedMessageV3 33650 .parseDelimitedWithIOException(PARSER, input); 26232 33651 } 26233 33652 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseDelimitedFrom( … … 26235 33654 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 26236 33655 throws java.io.IOException { 26237 return PARSER.parseDelimitedFrom(input, extensionRegistry); 33656 return com.google.protobuf.GeneratedMessageV3 33657 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 26238 33658 } 26239 33659 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( 26240 33660 com.google.protobuf.CodedInputStream input) 26241 33661 throws java.io.IOException { 26242 return PARSER.parseFrom(input); 33662 return com.google.protobuf.GeneratedMessageV3 33663 .parseWithIOException(PARSER, input); 26243 33664 } 26244 33665 public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( … … 26246 33667 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 26247 33668 throws java.io.IOException { 26248 return PARSER.parseFrom(input, extensionRegistry); 26249 } 26250 26251 public static Builder newBuilder() { return Builder.create(); } 26252 @Override 26253 public Builder newBuilderForType() { return newBuilder(); } 33669 return com.google.protobuf.GeneratedMessageV3 33670 .parseWithIOException(PARSER, input, extensionRegistry); 33671 } 33672 33673 public Builder newBuilderForType() { return newBuilder(); } 33674 public static Builder newBuilder() { 33675 return DEFAULT_INSTANCE.toBuilder(); 33676 } 26254 33677 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.UninterpretedOption prototype) { 26255 return newBuilder().mergeFrom(prototype); 26256 } 26257 @Override 26258 public Builder toBuilder() { return newBuilder(this); } 33678 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 33679 } 33680 public Builder toBuilder() { 33681 return this == DEFAULT_INSTANCE 33682 ? new Builder() : new Builder().mergeFrom(this); 33683 } 26259 33684 26260 33685 @java.lang.Override 26261 33686 protected Builder newBuilderForType( 26262 com.google.protobuf.GeneratedMessage .BuilderParent parent) {33687 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 26263 33688 Builder builder = new Builder(parent); 26264 33689 return builder; 26265 33690 } 26266 33691 /** 26267 * Protobuf type {@code google.protobuf.UninterpretedOption}26268 *26269 33692 * <pre> 26270 33693 * A message representing a option the parser does not recognize. This only … … 26275 33698 * in them. 26276 33699 * </pre> 33700 * 33701 * Protobuf type {@code google.protobuf.UninterpretedOption} 26277 33702 */ 26278 33703 public static final class Builder extends 26279 com.google.protobuf.GeneratedMessage .Builder<Builder> implements33704 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 26280 33705 // @@protoc_insertion_point(builder_implements:google.protobuf.UninterpretedOption) 26281 33706 com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder { … … 26285 33710 } 26286 33711 26287 @Override 26288 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 33712 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 26289 33713 internalGetFieldAccessorTable() { 26290 33714 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable … … 26299 33723 26300 33724 private Builder( 26301 com.google.protobuf.GeneratedMessage .BuilderParent parent) {33725 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 26302 33726 super(parent); 26303 33727 maybeForceBuilderInitialization(); 26304 33728 } 26305 33729 private void maybeForceBuilderInitialization() { 26306 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 33730 if (com.google.protobuf.GeneratedMessageV3 33731 .alwaysUseFieldBuilders) { 26307 33732 getNameFieldBuilder(); 26308 33733 } 26309 33734 } 26310 private static Builder create() { 26311 return new Builder(); 26312 } 26313 26314 @Override 26315 public Builder clear() { 33735 public Builder clear() { 26316 33736 super.clear(); 26317 33737 if (nameBuilder_ == null) { … … 26336 33756 } 26337 33757 26338 @Override 26339 public Builder clone() { 26340 return create().mergeFrom(buildPartial()); 26341 } 26342 26343 @Override 26344 public com.google.protobuf.Descriptors.Descriptor 33758 public com.google.protobuf.Descriptors.Descriptor 26345 33759 getDescriptorForType() { 26346 33760 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_UninterpretedOption_descriptor; 26347 33761 } 26348 33762 26349 @Override 26350 public com.google.protobuf.DescriptorProtos.UninterpretedOption getDefaultInstanceForType() { 33763 public com.google.protobuf.DescriptorProtos.UninterpretedOption getDefaultInstanceForType() { 26351 33764 return com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance(); 26352 33765 } 26353 33766 26354 @Override 26355 public com.google.protobuf.DescriptorProtos.UninterpretedOption build() { 33767 public com.google.protobuf.DescriptorProtos.UninterpretedOption build() { 26356 33768 com.google.protobuf.DescriptorProtos.UninterpretedOption result = buildPartial(); 26357 33769 if (!result.isInitialized()) { … … 26361 33773 } 26362 33774 26363 @Override 26364 public com.google.protobuf.DescriptorProtos.UninterpretedOption buildPartial() { 33775 public com.google.protobuf.DescriptorProtos.UninterpretedOption buildPartial() { 26365 33776 com.google.protobuf.DescriptorProtos.UninterpretedOption result = new com.google.protobuf.DescriptorProtos.UninterpretedOption(this); 26366 33777 int from_bitField0_ = bitField0_; … … 26404 33815 } 26405 33816 26406 @Override 26407 public Builder mergeFrom(com.google.protobuf.Message other) { 33817 public Builder clone() { 33818 return (Builder) super.clone(); 33819 } 33820 public Builder setField( 33821 com.google.protobuf.Descriptors.FieldDescriptor field, 33822 java.lang.Object value) { 33823 return (Builder) super.setField(field, value); 33824 } 33825 public Builder clearField( 33826 com.google.protobuf.Descriptors.FieldDescriptor field) { 33827 return (Builder) super.clearField(field); 33828 } 33829 public Builder clearOneof( 33830 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 33831 return (Builder) super.clearOneof(oneof); 33832 } 33833 public Builder setRepeatedField( 33834 com.google.protobuf.Descriptors.FieldDescriptor field, 33835 int index, java.lang.Object value) { 33836 return (Builder) super.setRepeatedField(field, index, value); 33837 } 33838 public Builder addRepeatedField( 33839 com.google.protobuf.Descriptors.FieldDescriptor field, 33840 java.lang.Object value) { 33841 return (Builder) super.addRepeatedField(field, value); 33842 } 33843 public Builder mergeFrom(com.google.protobuf.Message other) { 26408 33844 if (other instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption) { 26409 33845 return mergeFrom((com.google.protobuf.DescriptorProtos.UninterpretedOption)other); … … 26434 33870 name_ = other.name_; 26435 33871 bitField0_ = (bitField0_ & ~0x00000001); 26436 nameBuilder_ = 26437 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?33872 nameBuilder_ = 33873 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 26438 33874 getNameFieldBuilder() : null; 26439 33875 } else { … … 26464 33900 onChanged(); 26465 33901 } 26466 this.mergeUnknownFields(other. getUnknownFields());26467 return this;26468 }26469 26470 @Override 26471 33902 this.mergeUnknownFields(other.unknownFields); 33903 onChanged(); 33904 return this; 33905 } 33906 33907 public final boolean isInitialized() { 26472 33908 for (int i = 0; i < getNameCount(); i++) { 26473 33909 if (!getName(i).isInitialized()) { 26474 26475 33910 return false; 26476 33911 } … … 26479 33914 } 26480 33915 26481 @Override 26482 public Builder mergeFrom( 33916 public Builder mergeFrom( 26483 33917 com.google.protobuf.CodedInputStream input, 26484 33918 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 26489 33923 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 26490 33924 parsedMessage = (com.google.protobuf.DescriptorProtos.UninterpretedOption) e.getUnfinishedMessage(); 26491 throw e ;33925 throw e.unwrapIOException(); 26492 33926 } finally { 26493 33927 if (parsedMessage != null) { … … 26503 33937 private void ensureNameIsMutable() { 26504 33938 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 26505 name_ = new java.util.ArrayList< >(name_);33939 name_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart>(name_); 26506 33940 bitField0_ |= 0x00000001; 26507 33941 } 26508 33942 } 26509 33943 26510 private com.google.protobuf.RepeatedFieldBuilder <33944 private com.google.protobuf.RepeatedFieldBuilderV3< 26511 33945 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> nameBuilder_; 26512 33946 … … 26514 33948 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 26515 33949 */ 26516 @Override 26517 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { 33950 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { 26518 33951 if (nameBuilder_ == null) { 26519 33952 return java.util.Collections.unmodifiableList(name_); … … 26525 33958 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 26526 33959 */ 26527 @Override 26528 public int getNameCount() { 33960 public int getNameCount() { 26529 33961 if (nameBuilder_ == null) { 26530 33962 return name_.size(); … … 26536 33968 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 26537 33969 */ 26538 @Override 26539 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { 33970 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { 26540 33971 if (nameBuilder_ == null) { 26541 33972 return name_.get(index); … … 26687 34118 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 26688 34119 */ 26689 @Override 26690 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( 34120 public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( 26691 34121 int index) { 26692 34122 if (nameBuilder_ == null) { … … 26698 34128 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 26699 34129 */ 26700 @Override 26701 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 34130 public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 26702 34131 getNameOrBuilderList() { 26703 34132 if (nameBuilder_ != null) { … … 26725 34154 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> 26726 34155 */ 26727 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder> 34156 public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder> 26728 34157 getNameBuilderList() { 26729 34158 return getNameFieldBuilder().getBuilderList(); 26730 34159 } 26731 private com.google.protobuf.RepeatedFieldBuilder <26732 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 34160 private com.google.protobuf.RepeatedFieldBuilderV3< 34161 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> 26733 34162 getNameFieldBuilder() { 26734 34163 if (nameBuilder_ == null) { 26735 nameBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 34164 nameBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 34165 com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder>( 26736 34166 name_, 26737 34167 ((bitField0_ & 0x00000001) == 0x00000001), … … 26745 34175 private java.lang.Object identifierValue_ = ""; 26746 34176 /** 26747 * <code>optional string identifier_value = 3;</code>26748 *26749 34177 * <pre> 26750 34178 * The value of the uninterpreted option, in whatever type the tokenizer 26751 34179 * identified it as during parsing. Exactly one of these should be set. 26752 34180 * </pre> 26753 */ 26754 @Override 26755 public boolean hasIdentifierValue() { 34181 * 34182 * <code>optional string identifier_value = 3;</code> 34183 */ 34184 public boolean hasIdentifierValue() { 26756 34185 return ((bitField0_ & 0x00000002) == 0x00000002); 26757 34186 } 26758 34187 /** 26759 * <code>optional string identifier_value = 3;</code>26760 *26761 34188 * <pre> 26762 34189 * The value of the uninterpreted option, in whatever type the tokenizer 26763 34190 * identified it as during parsing. Exactly one of these should be set. 26764 34191 * </pre> 26765 */ 26766 @Override 26767 public java.lang.String getIdentifierValue() { 34192 * 34193 * <code>optional string identifier_value = 3;</code> 34194 */ 34195 public java.lang.String getIdentifierValue() { 26768 34196 java.lang.Object ref = identifierValue_; 26769 34197 if (!(ref instanceof java.lang.String)) { … … 26780 34208 } 26781 34209 /** 26782 * <code>optional string identifier_value = 3;</code>26783 *26784 34210 * <pre> 26785 34211 * The value of the uninterpreted option, in whatever type the tokenizer 26786 34212 * identified it as during parsing. Exactly one of these should be set. 26787 34213 * </pre> 26788 */ 26789 @Override 26790 public com.google.protobuf.ByteString 34214 * 34215 * <code>optional string identifier_value = 3;</code> 34216 */ 34217 public com.google.protobuf.ByteString 26791 34218 getIdentifierValueBytes() { 26792 34219 java.lang.Object ref = identifierValue_; 26793 34220 if (ref instanceof String) { 26794 com.google.protobuf.ByteString b = 34221 com.google.protobuf.ByteString b = 26795 34222 com.google.protobuf.ByteString.copyFromUtf8( 26796 34223 (java.lang.String) ref); … … 26802 34229 } 26803 34230 /** 26804 * <code>optional string identifier_value = 3;</code>26805 *26806 34231 * <pre> 26807 34232 * The value of the uninterpreted option, in whatever type the tokenizer 26808 34233 * identified it as during parsing. Exactly one of these should be set. 26809 34234 * </pre> 34235 * 34236 * <code>optional string identifier_value = 3;</code> 26810 34237 */ 26811 34238 public Builder setIdentifierValue( … … 26820 34247 } 26821 34248 /** 26822 * <code>optional string identifier_value = 3;</code>26823 *26824 34249 * <pre> 26825 34250 * The value of the uninterpreted option, in whatever type the tokenizer 26826 34251 * identified it as during parsing. Exactly one of these should be set. 26827 34252 * </pre> 34253 * 34254 * <code>optional string identifier_value = 3;</code> 26828 34255 */ 26829 34256 public Builder clearIdentifierValue() { … … 26834 34261 } 26835 34262 /** 26836 * <code>optional string identifier_value = 3;</code>26837 *26838 34263 * <pre> 26839 34264 * The value of the uninterpreted option, in whatever type the tokenizer 26840 34265 * identified it as during parsing. Exactly one of these should be set. 26841 34266 * </pre> 34267 * 34268 * <code>optional string identifier_value = 3;</code> 26842 34269 */ 26843 34270 public Builder setIdentifierValueBytes( … … 26856 34283 * <code>optional uint64 positive_int_value = 4;</code> 26857 34284 */ 26858 @Override 26859 public boolean hasPositiveIntValue() { 34285 public boolean hasPositiveIntValue() { 26860 34286 return ((bitField0_ & 0x00000004) == 0x00000004); 26861 34287 } … … 26863 34289 * <code>optional uint64 positive_int_value = 4;</code> 26864 34290 */ 26865 @Override 26866 public long getPositiveIntValue() { 34291 public long getPositiveIntValue() { 26867 34292 return positiveIntValue_; 26868 34293 } … … 26890 34315 * <code>optional int64 negative_int_value = 5;</code> 26891 34316 */ 26892 @Override 26893 public boolean hasNegativeIntValue() { 34317 public boolean hasNegativeIntValue() { 26894 34318 return ((bitField0_ & 0x00000008) == 0x00000008); 26895 34319 } … … 26897 34321 * <code>optional int64 negative_int_value = 5;</code> 26898 34322 */ 26899 @Override 26900 public long getNegativeIntValue() { 34323 public long getNegativeIntValue() { 26901 34324 return negativeIntValue_; 26902 34325 } … … 26924 34347 * <code>optional double double_value = 6;</code> 26925 34348 */ 26926 @Override 26927 public boolean hasDoubleValue() { 34349 public boolean hasDoubleValue() { 26928 34350 return ((bitField0_ & 0x00000010) == 0x00000010); 26929 34351 } … … 26931 34353 * <code>optional double double_value = 6;</code> 26932 34354 */ 26933 @Override 26934 public double getDoubleValue() { 34355 public double getDoubleValue() { 26935 34356 return doubleValue_; 26936 34357 } … … 26958 34379 * <code>optional bytes string_value = 7;</code> 26959 34380 */ 26960 @Override 26961 public boolean hasStringValue() { 34381 public boolean hasStringValue() { 26962 34382 return ((bitField0_ & 0x00000020) == 0x00000020); 26963 34383 } … … 26965 34385 * <code>optional bytes string_value = 7;</code> 26966 34386 */ 26967 @Override 26968 public com.google.protobuf.ByteString getStringValue() { 34387 public com.google.protobuf.ByteString getStringValue() { 26969 34388 return stringValue_; 26970 34389 } … … 26995 34414 * <code>optional string aggregate_value = 8;</code> 26996 34415 */ 26997 @Override 26998 public boolean hasAggregateValue() { 34416 public boolean hasAggregateValue() { 26999 34417 return ((bitField0_ & 0x00000040) == 0x00000040); 27000 34418 } … … 27002 34420 * <code>optional string aggregate_value = 8;</code> 27003 34421 */ 27004 @Override 27005 public java.lang.String getAggregateValue() { 34422 public java.lang.String getAggregateValue() { 27006 34423 java.lang.Object ref = aggregateValue_; 27007 34424 if (!(ref instanceof java.lang.String)) { … … 27020 34437 * <code>optional string aggregate_value = 8;</code> 27021 34438 */ 27022 @Override 27023 public com.google.protobuf.ByteString 34439 public com.google.protobuf.ByteString 27024 34440 getAggregateValueBytes() { 27025 34441 java.lang.Object ref = aggregateValue_; 27026 34442 if (ref instanceof String) { 27027 com.google.protobuf.ByteString b = 34443 com.google.protobuf.ByteString b = 27028 34444 com.google.protobuf.ByteString.copyFromUtf8( 27029 34445 (java.lang.String) ref); … … 27069 34485 return this; 27070 34486 } 34487 public final Builder setUnknownFields( 34488 final com.google.protobuf.UnknownFieldSet unknownFields) { 34489 return super.setUnknownFields(unknownFields); 34490 } 34491 34492 public final Builder mergeUnknownFields( 34493 final com.google.protobuf.UnknownFieldSet unknownFields) { 34494 return super.mergeUnknownFields(unknownFields); 34495 } 34496 27071 34497 27072 34498 // @@protoc_insertion_point(builder_scope:google.protobuf.UninterpretedOption) 27073 34499 } 27074 34500 34501 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption) 34502 private static final com.google.protobuf.DescriptorProtos.UninterpretedOption DEFAULT_INSTANCE; 27075 34503 static { 27076 defaultInstance = new UninterpretedOption(true); 27077 defaultInstance.initFields(); 27078 } 27079 27080 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption) 34504 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.UninterpretedOption(); 34505 } 34506 34507 public static com.google.protobuf.DescriptorProtos.UninterpretedOption getDefaultInstance() { 34508 return DEFAULT_INSTANCE; 34509 } 34510 34511 @java.lang.Deprecated public static final com.google.protobuf.Parser<UninterpretedOption> 34512 PARSER = new com.google.protobuf.AbstractParser<UninterpretedOption>() { 34513 public UninterpretedOption parsePartialFrom( 34514 com.google.protobuf.CodedInputStream input, 34515 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 34516 throws com.google.protobuf.InvalidProtocolBufferException { 34517 return new UninterpretedOption(input, extensionRegistry); 34518 } 34519 }; 34520 34521 public static com.google.protobuf.Parser<UninterpretedOption> parser() { 34522 return PARSER; 34523 } 34524 34525 @java.lang.Override 34526 public com.google.protobuf.Parser<UninterpretedOption> getParserForType() { 34527 return PARSER; 34528 } 34529 34530 public com.google.protobuf.DescriptorProtos.UninterpretedOption getDefaultInstanceForType() { 34531 return DEFAULT_INSTANCE; 34532 } 34533 27081 34534 } 27082 34535 … … 27086 34539 27087 34540 /** 27088 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>27089 *27090 34541 * <pre> 27091 34542 * A Location identifies a piece of source code in a .proto file which … … 27131 34582 * be recorded in the future. 27132 34583 * </pre> 27133 */ 27134 java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> 34584 * 34585 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 34586 */ 34587 java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> 27135 34588 getLocationList(); 27136 34589 /** 27137 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>27138 *27139 34590 * <pre> 27140 34591 * A Location identifies a piece of source code in a .proto file which … … 27180 34631 * be recorded in the future. 27181 34632 * </pre> 34633 * 34634 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27182 34635 */ 27183 34636 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index); 27184 34637 /** 27185 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>27186 *27187 34638 * <pre> 27188 34639 * A Location identifies a piece of source code in a .proto file which … … 27228 34679 * be recorded in the future. 27229 34680 * </pre> 34681 * 34682 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27230 34683 */ 27231 34684 int getLocationCount(); 27232 34685 /** 27233 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>27234 *27235 34686 * <pre> 27236 34687 * A Location identifies a piece of source code in a .proto file which … … 27276 34727 * be recorded in the future. 27277 34728 * </pre> 27278 */ 27279 java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 34729 * 34730 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 34731 */ 34732 java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 27280 34733 getLocationOrBuilderList(); 27281 34734 /** 27282 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>27283 *27284 34735 * <pre> 27285 34736 * A Location identifies a piece of source code in a .proto file which … … 27325 34776 * be recorded in the future. 27326 34777 * </pre> 34778 * 34779 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 27327 34780 */ 27328 34781 com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( … … 27330 34783 } 27331 34784 /** 27332 * Protobuf type {@code google.protobuf.SourceCodeInfo}27333 *27334 34785 * <pre> 27335 34786 * Encapsulates information about the original source file from which a 27336 34787 * FileDescriptorProto was generated. 27337 34788 * </pre> 34789 * 34790 * Protobuf type {@code google.protobuf.SourceCodeInfo} 27338 34791 */ 27339 public static final class SourceCodeInfo extends27340 com.google.protobuf.GeneratedMessage implements34792 public static final class SourceCodeInfo extends 34793 com.google.protobuf.GeneratedMessageV3 implements 27341 34794 // @@protoc_insertion_point(message_implements:google.protobuf.SourceCodeInfo) 27342 34795 SourceCodeInfoOrBuilder { 34796 private static final long serialVersionUID = 0L; 27343 34797 // Use SourceCodeInfo.newBuilder() to construct. 27344 private SourceCodeInfo(com.google.protobuf.GeneratedMessage .Builder<?> builder) {34798 private SourceCodeInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 27345 34799 super(builder); 27346 this.unknownFields = builder.getUnknownFields(); 27347 } 27348 private SourceCodeInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 27349 27350 private static final SourceCodeInfo defaultInstance; 27351 public static SourceCodeInfo getDefaultInstance() { 27352 return defaultInstance; 27353 } 27354 27355 @Override 27356 public SourceCodeInfo getDefaultInstanceForType() { 27357 return defaultInstance; 27358 } 27359 27360 private final com.google.protobuf.UnknownFieldSet unknownFields; 34800 } 34801 private SourceCodeInfo() { 34802 location_ = java.util.Collections.emptyList(); 34803 } 34804 27361 34805 @java.lang.Override 27362 34806 public final com.google.protobuf.UnknownFieldSet 27363 34807 getUnknownFields() { 27364 34808 return this.unknownFields; 27365 34809 } … … 27368 34812 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27369 34813 throws com.google.protobuf.InvalidProtocolBufferException { 27370 initFields();34814 this(); 27371 34815 int mutable_bitField0_ = 0; 27372 34816 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 27381 34825 break; 27382 34826 default: { 27383 if (!parseUnknownField( input, unknownFields,27384 34827 if (!parseUnknownField( 34828 input, unknownFields, extensionRegistry, tag)) { 27385 34829 done = true; 27386 34830 } … … 27389 34833 case 10: { 27390 34834 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 27391 location_ = new java.util.ArrayList< >();34835 location_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location>(); 27392 34836 mutable_bitField0_ |= 0x00000001; 27393 34837 } 27394 location_.add(input.readMessage(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.PARSER, extensionRegistry)); 34838 location_.add( 34839 input.readMessage(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.PARSER, extensionRegistry)); 27395 34840 break; 27396 34841 } … … 27401 34846 } catch (java.io.IOException e) { 27402 34847 throw new com.google.protobuf.InvalidProtocolBufferException( 27403 e .getMessage()).setUnfinishedMessage(this);34848 e).setUnfinishedMessage(this); 27404 34849 } finally { 27405 34850 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { … … 27415 34860 } 27416 34861 27417 @Override 27418 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 34862 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 27419 34863 internalGetFieldAccessorTable() { 27420 34864 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable … … 27423 34867 } 27424 34868 27425 public static com.google.protobuf.Parser<SourceCodeInfo> PARSER =27426 new com.google.protobuf.AbstractParser<SourceCodeInfo>() {27427 @Override27428 public SourceCodeInfo parsePartialFrom(27429 com.google.protobuf.CodedInputStream input,27430 com.google.protobuf.ExtensionRegistryLite extensionRegistry)27431 throws com.google.protobuf.InvalidProtocolBufferException {27432 return new SourceCodeInfo(input, extensionRegistry);27433 }27434 };27435 27436 @java.lang.Override27437 public com.google.protobuf.Parser<SourceCodeInfo> getParserForType() {27438 return PARSER;27439 }27440 27441 34869 public interface LocationOrBuilder extends 27442 34870 // @@protoc_insertion_point(interface_extends:google.protobuf.SourceCodeInfo.Location) … … 27444 34872 27445 34873 /** 27446 * <code>repeated int32 path = 1 [packed = true];</code>27447 *27448 34874 * <pre> 27449 34875 * Identifies which part of the FileDescriptorProto was defined at this … … 27469 34895 * of the label to the terminating semicolon). 27470 34896 * </pre> 34897 * 34898 * <code>repeated int32 path = 1 [packed = true];</code> 27471 34899 */ 27472 34900 java.util.List<java.lang.Integer> getPathList(); 27473 34901 /** 27474 * <code>repeated int32 path = 1 [packed = true];</code>27475 *27476 34902 * <pre> 27477 34903 * Identifies which part of the FileDescriptorProto was defined at this … … 27497 34923 * of the label to the terminating semicolon). 27498 34924 * </pre> 34925 * 34926 * <code>repeated int32 path = 1 [packed = true];</code> 27499 34927 */ 27500 34928 int getPathCount(); 27501 34929 /** 27502 * <code>repeated int32 path = 1 [packed = true];</code>27503 *27504 34930 * <pre> 27505 34931 * Identifies which part of the FileDescriptorProto was defined at this … … 27525 34951 * of the label to the terminating semicolon). 27526 34952 * </pre> 34953 * 34954 * <code>repeated int32 path = 1 [packed = true];</code> 27527 34955 */ 27528 34956 int getPath(int index); 27529 34957 27530 34958 /** 27531 * <code>repeated int32 span = 2 [packed = true];</code>27532 *27533 34959 * <pre> 27534 34960 * Always has exactly three or four elements: start line, start column, … … 27538 34964 * 1 to each before displaying to a user. 27539 34965 * </pre> 34966 * 34967 * <code>repeated int32 span = 2 [packed = true];</code> 27540 34968 */ 27541 34969 java.util.List<java.lang.Integer> getSpanList(); 27542 34970 /** 27543 * <code>repeated int32 span = 2 [packed = true];</code>27544 *27545 34971 * <pre> 27546 34972 * Always has exactly three or four elements: start line, start column, … … 27550 34976 * 1 to each before displaying to a user. 27551 34977 * </pre> 34978 * 34979 * <code>repeated int32 span = 2 [packed = true];</code> 27552 34980 */ 27553 34981 int getSpanCount(); 27554 34982 /** 27555 * <code>repeated int32 span = 2 [packed = true];</code>27556 *27557 34983 * <pre> 27558 34984 * Always has exactly three or four elements: start line, start column, … … 27562 34988 * 1 to each before displaying to a user. 27563 34989 * </pre> 34990 * 34991 * <code>repeated int32 span = 2 [packed = true];</code> 27564 34992 */ 27565 34993 int getSpan(int index); 27566 34994 27567 34995 /** 27568 * <code>optional string leading_comments = 3;</code>27569 *27570 34996 * <pre> 27571 34997 * If this SourceCodeInfo represents a complete declaration, these are any … … 27574 35000 * A series of line comments appearing on consecutive lines, with no other 27575 35001 * tokens appearing on those lines, will be treated as a single comment. 35002 * leading_detached_comments will keep paragraphs of comments that appear 35003 * before (but not connected to) the current element. Each paragraph, 35004 * separated by empty lines, will be one comment element in the repeated 35005 * field. 27576 35006 * Only the comment content is provided; comment markers (e.g. //) are 27577 35007 * stripped out. For block comments, leading whitespace and an asterisk … … 27589 35019 * // Another line attached to qux. 27590 35020 * optional double qux = 4; 35021 * // Detached comment for corge. This is not leading or trailing comments 35022 * // to qux or corge because there are blank lines separating it from 35023 * // both. 35024 * // Detached comment for corge paragraph 2. 27591 35025 * optional string corge = 5; 27592 35026 * /* Block comment attached … … 27596 35030 * * grault. */ 27597 35031 * optional int32 grault = 6; 27598 * </pre> 35032 * // ignored detached comments. 35033 * </pre> 35034 * 35035 * <code>optional string leading_comments = 3;</code> 27599 35036 */ 27600 35037 boolean hasLeadingComments(); 27601 35038 /** 27602 * <code>optional string leading_comments = 3;</code>27603 *27604 35039 * <pre> 27605 35040 * If this SourceCodeInfo represents a complete declaration, these are any … … 27608 35043 * A series of line comments appearing on consecutive lines, with no other 27609 35044 * tokens appearing on those lines, will be treated as a single comment. 35045 * leading_detached_comments will keep paragraphs of comments that appear 35046 * before (but not connected to) the current element. Each paragraph, 35047 * separated by empty lines, will be one comment element in the repeated 35048 * field. 27610 35049 * Only the comment content is provided; comment markers (e.g. //) are 27611 35050 * stripped out. For block comments, leading whitespace and an asterisk … … 27623 35062 * // Another line attached to qux. 27624 35063 * optional double qux = 4; 35064 * // Detached comment for corge. This is not leading or trailing comments 35065 * // to qux or corge because there are blank lines separating it from 35066 * // both. 35067 * // Detached comment for corge paragraph 2. 27625 35068 * optional string corge = 5; 27626 35069 * /* Block comment attached … … 27630 35073 * * grault. */ 27631 35074 * optional int32 grault = 6; 27632 * </pre> 35075 * // ignored detached comments. 35076 * </pre> 35077 * 35078 * <code>optional string leading_comments = 3;</code> 27633 35079 */ 27634 35080 java.lang.String getLeadingComments(); 27635 35081 /** 27636 * <code>optional string leading_comments = 3;</code>27637 *27638 35082 * <pre> 27639 35083 * If this SourceCodeInfo represents a complete declaration, these are any … … 27642 35086 * A series of line comments appearing on consecutive lines, with no other 27643 35087 * tokens appearing on those lines, will be treated as a single comment. 35088 * leading_detached_comments will keep paragraphs of comments that appear 35089 * before (but not connected to) the current element. Each paragraph, 35090 * separated by empty lines, will be one comment element in the repeated 35091 * field. 27644 35092 * Only the comment content is provided; comment markers (e.g. //) are 27645 35093 * stripped out. For block comments, leading whitespace and an asterisk … … 27657 35105 * // Another line attached to qux. 27658 35106 * optional double qux = 4; 35107 * // Detached comment for corge. This is not leading or trailing comments 35108 * // to qux or corge because there are blank lines separating it from 35109 * // both. 35110 * // Detached comment for corge paragraph 2. 27659 35111 * optional string corge = 5; 27660 35112 * /* Block comment attached … … 27664 35116 * * grault. */ 27665 35117 * optional int32 grault = 6; 27666 * </pre> 35118 * // ignored detached comments. 35119 * </pre> 35120 * 35121 * <code>optional string leading_comments = 3;</code> 27667 35122 */ 27668 35123 com.google.protobuf.ByteString … … 27682 35137 com.google.protobuf.ByteString 27683 35138 getTrailingCommentsBytes(); 35139 35140 /** 35141 * <code>repeated string leading_detached_comments = 6;</code> 35142 */ 35143 java.util.List<java.lang.String> 35144 getLeadingDetachedCommentsList(); 35145 /** 35146 * <code>repeated string leading_detached_comments = 6;</code> 35147 */ 35148 int getLeadingDetachedCommentsCount(); 35149 /** 35150 * <code>repeated string leading_detached_comments = 6;</code> 35151 */ 35152 java.lang.String getLeadingDetachedComments(int index); 35153 /** 35154 * <code>repeated string leading_detached_comments = 6;</code> 35155 */ 35156 com.google.protobuf.ByteString 35157 getLeadingDetachedCommentsBytes(int index); 27684 35158 } 27685 35159 /** 27686 35160 * Protobuf type {@code google.protobuf.SourceCodeInfo.Location} 27687 35161 */ 27688 public static final class Location extends27689 com.google.protobuf.GeneratedMessage implements35162 public static final class Location extends 35163 com.google.protobuf.GeneratedMessageV3 implements 27690 35164 // @@protoc_insertion_point(message_implements:google.protobuf.SourceCodeInfo.Location) 27691 35165 LocationOrBuilder { 35166 private static final long serialVersionUID = 0L; 27692 35167 // Use Location.newBuilder() to construct. 27693 private Location(com.google.protobuf.GeneratedMessage .Builder<?> builder) {35168 private Location(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 27694 35169 super(builder); 27695 this.unknownFields = builder.getUnknownFields(); 27696 } 27697 private Location(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 27698 27699 private static final Location defaultInstance; 27700 public static Location getDefaultInstance() { 27701 return defaultInstance; 27702 } 27703 27704 @Override 27705 public Location getDefaultInstanceForType() { 27706 return defaultInstance; 27707 } 27708 27709 private final com.google.protobuf.UnknownFieldSet unknownFields; 35170 } 35171 private Location() { 35172 path_ = java.util.Collections.emptyList(); 35173 span_ = java.util.Collections.emptyList(); 35174 leadingComments_ = ""; 35175 trailingComments_ = ""; 35176 leadingDetachedComments_ = com.google.protobuf.LazyStringArrayList.EMPTY; 35177 } 35178 27710 35179 @java.lang.Override 27711 35180 public final com.google.protobuf.UnknownFieldSet 27712 35181 getUnknownFields() { 27713 35182 return this.unknownFields; 27714 35183 } … … 27717 35186 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 27718 35187 throws com.google.protobuf.InvalidProtocolBufferException { 27719 initFields();35188 this(); 27720 35189 int mutable_bitField0_ = 0; 27721 35190 com.google.protobuf.UnknownFieldSet.Builder unknownFields = … … 27730 35199 break; 27731 35200 default: { 27732 if (!parseUnknownField( input, unknownFields,27733 35201 if (!parseUnknownField( 35202 input, unknownFields, extensionRegistry, tag)) { 27734 35203 done = true; 27735 35204 } … … 27738 35207 case 8: { 27739 35208 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 27740 path_ = new java.util.ArrayList< >();35209 path_ = new java.util.ArrayList<java.lang.Integer>(); 27741 35210 mutable_bitField0_ |= 0x00000001; 27742 35211 } … … 27748 35217 int limit = input.pushLimit(length); 27749 35218 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { 27750 path_ = new java.util.ArrayList< >();35219 path_ = new java.util.ArrayList<java.lang.Integer>(); 27751 35220 mutable_bitField0_ |= 0x00000001; 27752 35221 } … … 27759 35228 case 16: { 27760 35229 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 27761 span_ = new java.util.ArrayList< >();35230 span_ = new java.util.ArrayList<java.lang.Integer>(); 27762 35231 mutable_bitField0_ |= 0x00000002; 27763 35232 } … … 27769 35238 int limit = input.pushLimit(length); 27770 35239 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 27771 span_ = new java.util.ArrayList< >();35240 span_ = new java.util.ArrayList<java.lang.Integer>(); 27772 35241 mutable_bitField0_ |= 0x00000002; 27773 35242 } … … 27790 35259 break; 27791 35260 } 35261 case 50: { 35262 com.google.protobuf.ByteString bs = input.readBytes(); 35263 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 35264 leadingDetachedComments_ = new com.google.protobuf.LazyStringArrayList(); 35265 mutable_bitField0_ |= 0x00000010; 35266 } 35267 leadingDetachedComments_.add(bs); 35268 break; 35269 } 27792 35270 } 27793 35271 } … … 27796 35274 } catch (java.io.IOException e) { 27797 35275 throw new com.google.protobuf.InvalidProtocolBufferException( 27798 e .getMessage()).setUnfinishedMessage(this);35276 e).setUnfinishedMessage(this); 27799 35277 } finally { 27800 35278 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { … … 27804 35282 span_ = java.util.Collections.unmodifiableList(span_); 27805 35283 } 35284 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 35285 leadingDetachedComments_ = leadingDetachedComments_.getUnmodifiableView(); 35286 } 27806 35287 this.unknownFields = unknownFields.build(); 27807 35288 makeExtensionsImmutable(); … … 27813 35294 } 27814 35295 27815 @Override 27816 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 35296 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 27817 35297 internalGetFieldAccessorTable() { 27818 35298 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable … … 27821 35301 } 27822 35302 27823 public static com.google.protobuf.Parser<Location> PARSER =27824 new com.google.protobuf.AbstractParser<Location>() {27825 @Override27826 public Location parsePartialFrom(27827 com.google.protobuf.CodedInputStream input,27828 com.google.protobuf.ExtensionRegistryLite extensionRegistry)27829 throws com.google.protobuf.InvalidProtocolBufferException {27830 return new Location(input, extensionRegistry);27831 }27832 };27833 27834 @java.lang.Override27835 public com.google.protobuf.Parser<Location> getParserForType() {27836 return PARSER;27837 }27838 27839 35303 private int bitField0_; 27840 35304 public static final int PATH_FIELD_NUMBER = 1; 27841 35305 private java.util.List<java.lang.Integer> path_; 27842 35306 /** 27843 * <code>repeated int32 path = 1 [packed = true];</code>27844 *27845 35307 * <pre> 27846 35308 * Identifies which part of the FileDescriptorProto was defined at this … … 27866 35328 * of the label to the terminating semicolon). 27867 35329 * </pre> 27868 */ 27869 @Override 27870 public java.util.List<java.lang.Integer> 35330 * 35331 * <code>repeated int32 path = 1 [packed = true];</code> 35332 */ 35333 public java.util.List<java.lang.Integer> 27871 35334 getPathList() { 27872 35335 return path_; 27873 35336 } 27874 35337 /** 27875 * <code>repeated int32 path = 1 [packed = true];</code>27876 *27877 35338 * <pre> 27878 35339 * Identifies which part of the FileDescriptorProto was defined at this … … 27898 35359 * of the label to the terminating semicolon). 27899 35360 * </pre> 27900 */ 27901 @Override 27902 public int getPathCount() { 35361 * 35362 * <code>repeated int32 path = 1 [packed = true];</code> 35363 */ 35364 public int getPathCount() { 27903 35365 return path_.size(); 27904 35366 } 27905 35367 /** 27906 * <code>repeated int32 path = 1 [packed = true];</code>27907 *27908 35368 * <pre> 27909 35369 * Identifies which part of the FileDescriptorProto was defined at this … … 27929 35389 * of the label to the terminating semicolon). 27930 35390 * </pre> 27931 */ 27932 @Override 27933 public int getPath(int index) { 35391 * 35392 * <code>repeated int32 path = 1 [packed = true];</code> 35393 */ 35394 public int getPath(int index) { 27934 35395 return path_.get(index); 27935 35396 } … … 27939 35400 private java.util.List<java.lang.Integer> span_; 27940 35401 /** 27941 * <code>repeated int32 span = 2 [packed = true];</code>27942 *27943 35402 * <pre> 27944 35403 * Always has exactly three or four elements: start line, start column, … … 27948 35407 * 1 to each before displaying to a user. 27949 35408 * </pre> 27950 */ 27951 @Override 27952 public java.util.List<java.lang.Integer> 35409 * 35410 * <code>repeated int32 span = 2 [packed = true];</code> 35411 */ 35412 public java.util.List<java.lang.Integer> 27953 35413 getSpanList() { 27954 35414 return span_; 27955 35415 } 27956 35416 /** 27957 * <code>repeated int32 span = 2 [packed = true];</code>27958 *27959 35417 * <pre> 27960 35418 * Always has exactly three or four elements: start line, start column, … … 27964 35422 * 1 to each before displaying to a user. 27965 35423 * </pre> 27966 */ 27967 @Override 27968 public int getSpanCount() { 35424 * 35425 * <code>repeated int32 span = 2 [packed = true];</code> 35426 */ 35427 public int getSpanCount() { 27969 35428 return span_.size(); 27970 35429 } 27971 35430 /** 27972 * <code>repeated int32 span = 2 [packed = true];</code>27973 *27974 35431 * <pre> 27975 35432 * Always has exactly three or four elements: start line, start column, … … 27979 35436 * 1 to each before displaying to a user. 27980 35437 * </pre> 27981 */ 27982 @Override 27983 public int getSpan(int index) { 35438 * 35439 * <code>repeated int32 span = 2 [packed = true];</code> 35440 */ 35441 public int getSpan(int index) { 27984 35442 return span_.get(index); 27985 35443 } … … 27987 35445 27988 35446 public static final int LEADING_COMMENTS_FIELD_NUMBER = 3; 27989 private java.lang.Object leadingComments_; 27990 /** 27991 * <code>optional string leading_comments = 3;</code> 27992 * 35447 private volatile java.lang.Object leadingComments_; 35448 /** 27993 35449 * <pre> 27994 35450 * If this SourceCodeInfo represents a complete declaration, these are any … … 27997 35453 * A series of line comments appearing on consecutive lines, with no other 27998 35454 * tokens appearing on those lines, will be treated as a single comment. 35455 * leading_detached_comments will keep paragraphs of comments that appear 35456 * before (but not connected to) the current element. Each paragraph, 35457 * separated by empty lines, will be one comment element in the repeated 35458 * field. 27999 35459 * Only the comment content is provided; comment markers (e.g. //) are 28000 35460 * stripped out. For block comments, leading whitespace and an asterisk … … 28012 35472 * // Another line attached to qux. 28013 35473 * optional double qux = 4; 35474 * // Detached comment for corge. This is not leading or trailing comments 35475 * // to qux or corge because there are blank lines separating it from 35476 * // both. 35477 * // Detached comment for corge paragraph 2. 28014 35478 * optional string corge = 5; 28015 35479 * /* Block comment attached … … 28019 35483 * * grault. */ 28020 35484 * optional int32 grault = 6; 28021 * </pre> 28022 */ 28023 @Override 28024 public boolean hasLeadingComments() { 35485 * // ignored detached comments. 35486 * </pre> 35487 * 35488 * <code>optional string leading_comments = 3;</code> 35489 */ 35490 public boolean hasLeadingComments() { 28025 35491 return ((bitField0_ & 0x00000001) == 0x00000001); 28026 35492 } 28027 35493 /** 28028 * <code>optional string leading_comments = 3;</code>28029 *28030 35494 * <pre> 28031 35495 * If this SourceCodeInfo represents a complete declaration, these are any … … 28034 35498 * A series of line comments appearing on consecutive lines, with no other 28035 35499 * tokens appearing on those lines, will be treated as a single comment. 35500 * leading_detached_comments will keep paragraphs of comments that appear 35501 * before (but not connected to) the current element. Each paragraph, 35502 * separated by empty lines, will be one comment element in the repeated 35503 * field. 28036 35504 * Only the comment content is provided; comment markers (e.g. //) are 28037 35505 * stripped out. For block comments, leading whitespace and an asterisk … … 28049 35517 * // Another line attached to qux. 28050 35518 * optional double qux = 4; 35519 * // Detached comment for corge. This is not leading or trailing comments 35520 * // to qux or corge because there are blank lines separating it from 35521 * // both. 35522 * // Detached comment for corge paragraph 2. 28051 35523 * optional string corge = 5; 28052 35524 * /* Block comment attached … … 28056 35528 * * grault. */ 28057 35529 * optional int32 grault = 6; 28058 * </pre> 28059 */ 28060 @Override 28061 public java.lang.String getLeadingComments() { 35530 * // ignored detached comments. 35531 * </pre> 35532 * 35533 * <code>optional string leading_comments = 3;</code> 35534 */ 35535 public java.lang.String getLeadingComments() { 28062 35536 java.lang.Object ref = leadingComments_; 28063 35537 if (ref instanceof java.lang.String) { 28064 35538 return (java.lang.String) ref; 28065 35539 } else { 28066 com.google.protobuf.ByteString bs = 35540 com.google.protobuf.ByteString bs = 28067 35541 (com.google.protobuf.ByteString) ref; 28068 35542 java.lang.String s = bs.toStringUtf8(); … … 28074 35548 } 28075 35549 /** 28076 * <code>optional string leading_comments = 3;</code>28077 *28078 35550 * <pre> 28079 35551 * If this SourceCodeInfo represents a complete declaration, these are any … … 28082 35554 * A series of line comments appearing on consecutive lines, with no other 28083 35555 * tokens appearing on those lines, will be treated as a single comment. 35556 * leading_detached_comments will keep paragraphs of comments that appear 35557 * before (but not connected to) the current element. Each paragraph, 35558 * separated by empty lines, will be one comment element in the repeated 35559 * field. 28084 35560 * Only the comment content is provided; comment markers (e.g. //) are 28085 35561 * stripped out. For block comments, leading whitespace and an asterisk … … 28097 35573 * // Another line attached to qux. 28098 35574 * optional double qux = 4; 35575 * // Detached comment for corge. This is not leading or trailing comments 35576 * // to qux or corge because there are blank lines separating it from 35577 * // both. 35578 * // Detached comment for corge paragraph 2. 28099 35579 * optional string corge = 5; 28100 35580 * /* Block comment attached … … 28104 35584 * * grault. */ 28105 35585 * optional int32 grault = 6; 28106 * </pre> 28107 */ 28108 @Override 28109 public com.google.protobuf.ByteString 35586 * // ignored detached comments. 35587 * </pre> 35588 * 35589 * <code>optional string leading_comments = 3;</code> 35590 */ 35591 public com.google.protobuf.ByteString 28110 35592 getLeadingCommentsBytes() { 28111 35593 java.lang.Object ref = leadingComments_; 28112 35594 if (ref instanceof java.lang.String) { 28113 com.google.protobuf.ByteString b = 35595 com.google.protobuf.ByteString b = 28114 35596 com.google.protobuf.ByteString.copyFromUtf8( 28115 35597 (java.lang.String) ref); … … 28122 35604 28123 35605 public static final int TRAILING_COMMENTS_FIELD_NUMBER = 4; 28124 private java.lang.Object trailingComments_;35606 private volatile java.lang.Object trailingComments_; 28125 35607 /** 28126 35608 * <code>optional string trailing_comments = 4;</code> 28127 35609 */ 28128 @Override 28129 public boolean hasTrailingComments() { 35610 public boolean hasTrailingComments() { 28130 35611 return ((bitField0_ & 0x00000002) == 0x00000002); 28131 35612 } … … 28133 35614 * <code>optional string trailing_comments = 4;</code> 28134 35615 */ 28135 @Override 28136 public java.lang.String getTrailingComments() { 35616 public java.lang.String getTrailingComments() { 28137 35617 java.lang.Object ref = trailingComments_; 28138 35618 if (ref instanceof java.lang.String) { 28139 35619 return (java.lang.String) ref; 28140 35620 } else { 28141 com.google.protobuf.ByteString bs = 35621 com.google.protobuf.ByteString bs = 28142 35622 (com.google.protobuf.ByteString) ref; 28143 35623 java.lang.String s = bs.toStringUtf8(); … … 28151 35631 * <code>optional string trailing_comments = 4;</code> 28152 35632 */ 28153 @Override 28154 public com.google.protobuf.ByteString 35633 public com.google.protobuf.ByteString 28155 35634 getTrailingCommentsBytes() { 28156 35635 java.lang.Object ref = trailingComments_; 28157 35636 if (ref instanceof java.lang.String) { 28158 com.google.protobuf.ByteString b = 35637 com.google.protobuf.ByteString b = 28159 35638 com.google.protobuf.ByteString.copyFromUtf8( 28160 35639 (java.lang.String) ref); … … 28166 35645 } 28167 35646 28168 private void initFields() { 28169 path_ = java.util.Collections.emptyList(); 28170 span_ = java.util.Collections.emptyList(); 28171 leadingComments_ = ""; 28172 trailingComments_ = ""; 28173 } 35647 public static final int LEADING_DETACHED_COMMENTS_FIELD_NUMBER = 6; 35648 private com.google.protobuf.LazyStringList leadingDetachedComments_; 35649 /** 35650 * <code>repeated string leading_detached_comments = 6;</code> 35651 */ 35652 public com.google.protobuf.ProtocolStringList 35653 getLeadingDetachedCommentsList() { 35654 return leadingDetachedComments_; 35655 } 35656 /** 35657 * <code>repeated string leading_detached_comments = 6;</code> 35658 */ 35659 public int getLeadingDetachedCommentsCount() { 35660 return leadingDetachedComments_.size(); 35661 } 35662 /** 35663 * <code>repeated string leading_detached_comments = 6;</code> 35664 */ 35665 public java.lang.String getLeadingDetachedComments(int index) { 35666 return leadingDetachedComments_.get(index); 35667 } 35668 /** 35669 * <code>repeated string leading_detached_comments = 6;</code> 35670 */ 35671 public com.google.protobuf.ByteString 35672 getLeadingDetachedCommentsBytes(int index) { 35673 return leadingDetachedComments_.getByteString(index); 35674 } 35675 28174 35676 private byte memoizedIsInitialized = -1; 28175 @Override 28176 public final boolean isInitialized() { 35677 public final boolean isInitialized() { 28177 35678 byte isInitialized = memoizedIsInitialized; 28178 35679 if (isInitialized == 1) return true; … … 28183 35684 } 28184 35685 28185 @Override 28186 public void writeTo(com.google.protobuf.CodedOutputStream output) 35686 public void writeTo(com.google.protobuf.CodedOutputStream output) 28187 35687 throws java.io.IOException { 28188 35688 getSerializedSize(); 28189 35689 if (getPathList().size() > 0) { 28190 output.write RawVarint32(10);28191 output.write RawVarint32(pathMemoizedSerializedSize);35690 output.writeUInt32NoTag(10); 35691 output.writeUInt32NoTag(pathMemoizedSerializedSize); 28192 35692 } 28193 35693 for (int i = 0; i < path_.size(); i++) { … … 28195 35695 } 28196 35696 if (getSpanList().size() > 0) { 28197 output.write RawVarint32(18);28198 output.write RawVarint32(spanMemoizedSerializedSize);35697 output.writeUInt32NoTag(18); 35698 output.writeUInt32NoTag(spanMemoizedSerializedSize); 28199 35699 } 28200 35700 for (int i = 0; i < span_.size(); i++) { … … 28202 35702 } 28203 35703 if (((bitField0_ & 0x00000001) == 0x00000001)) { 28204 output.writeBytes(3, getLeadingCommentsBytes());35704 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, leadingComments_); 28205 35705 } 28206 35706 if (((bitField0_ & 0x00000002) == 0x00000002)) { 28207 output.writeBytes(4, getTrailingCommentsBytes()); 28208 } 28209 getUnknownFields().writeTo(output); 28210 } 28211 28212 private int memoizedSerializedSize = -1; 28213 @Override 28214 public int getSerializedSize() { 28215 int size = memoizedSerializedSize; 35707 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, trailingComments_); 35708 } 35709 for (int i = 0; i < leadingDetachedComments_.size(); i++) { 35710 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, leadingDetachedComments_.getRaw(i)); 35711 } 35712 unknownFields.writeTo(output); 35713 } 35714 35715 public int getSerializedSize() { 35716 int size = memoizedSize; 28216 35717 if (size != -1) return size; 28217 35718 … … 28246 35747 } 28247 35748 if (((bitField0_ & 0x00000001) == 0x00000001)) { 28248 size += com.google.protobuf.CodedOutputStream 28249 .computeBytesSize(3, getLeadingCommentsBytes()); 35749 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, leadingComments_); 28250 35750 } 28251 35751 if (((bitField0_ & 0x00000002) == 0x00000002)) { 28252 size += com.google.protobuf.CodedOutputStream 28253 .computeBytesSize(4, getTrailingCommentsBytes()); 28254 } 28255 size += getUnknownFields().getSerializedSize(); 28256 memoizedSerializedSize = size; 35752 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, trailingComments_); 35753 } 35754 { 35755 int dataSize = 0; 35756 for (int i = 0; i < leadingDetachedComments_.size(); i++) { 35757 dataSize += computeStringSizeNoTag(leadingDetachedComments_.getRaw(i)); 35758 } 35759 size += dataSize; 35760 size += 1 * getLeadingDetachedCommentsList().size(); 35761 } 35762 size += unknownFields.getSerializedSize(); 35763 memoizedSize = size; 28257 35764 return size; 28258 35765 } 28259 35766 28260 private static final long serialVersionUID = 0L;28261 35767 @java.lang.Override 28262 protected java.lang.Object writeReplace() 28263 throws java.io.ObjectStreamException { 28264 return super.writeReplace(); 28265 } 28266 35768 public boolean equals(final java.lang.Object obj) { 35769 if (obj == this) { 35770 return true; 35771 } 35772 if (!(obj instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location)) { 35773 return super.equals(obj); 35774 } 35775 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location other = (com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location) obj; 35776 35777 boolean result = true; 35778 result = result && getPathList() 35779 .equals(other.getPathList()); 35780 result = result && getSpanList() 35781 .equals(other.getSpanList()); 35782 result = result && (hasLeadingComments() == other.hasLeadingComments()); 35783 if (hasLeadingComments()) { 35784 result = result && getLeadingComments() 35785 .equals(other.getLeadingComments()); 35786 } 35787 result = result && (hasTrailingComments() == other.hasTrailingComments()); 35788 if (hasTrailingComments()) { 35789 result = result && getTrailingComments() 35790 .equals(other.getTrailingComments()); 35791 } 35792 result = result && getLeadingDetachedCommentsList() 35793 .equals(other.getLeadingDetachedCommentsList()); 35794 result = result && unknownFields.equals(other.unknownFields); 35795 return result; 35796 } 35797 35798 @java.lang.Override 35799 public int hashCode() { 35800 if (memoizedHashCode != 0) { 35801 return memoizedHashCode; 35802 } 35803 int hash = 41; 35804 hash = (19 * hash) + getDescriptor().hashCode(); 35805 if (getPathCount() > 0) { 35806 hash = (37 * hash) + PATH_FIELD_NUMBER; 35807 hash = (53 * hash) + getPathList().hashCode(); 35808 } 35809 if (getSpanCount() > 0) { 35810 hash = (37 * hash) + SPAN_FIELD_NUMBER; 35811 hash = (53 * hash) + getSpanList().hashCode(); 35812 } 35813 if (hasLeadingComments()) { 35814 hash = (37 * hash) + LEADING_COMMENTS_FIELD_NUMBER; 35815 hash = (53 * hash) + getLeadingComments().hashCode(); 35816 } 35817 if (hasTrailingComments()) { 35818 hash = (37 * hash) + TRAILING_COMMENTS_FIELD_NUMBER; 35819 hash = (53 * hash) + getTrailingComments().hashCode(); 35820 } 35821 if (getLeadingDetachedCommentsCount() > 0) { 35822 hash = (37 * hash) + LEADING_DETACHED_COMMENTS_FIELD_NUMBER; 35823 hash = (53 * hash) + getLeadingDetachedCommentsList().hashCode(); 35824 } 35825 hash = (29 * hash) + unknownFields.hashCode(); 35826 memoizedHashCode = hash; 35827 return hash; 35828 } 35829 35830 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( 35831 java.nio.ByteBuffer data) 35832 throws com.google.protobuf.InvalidProtocolBufferException { 35833 return PARSER.parseFrom(data); 35834 } 35835 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( 35836 java.nio.ByteBuffer data, 35837 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 35838 throws com.google.protobuf.InvalidProtocolBufferException { 35839 return PARSER.parseFrom(data, extensionRegistry); 35840 } 28267 35841 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( 28268 35842 com.google.protobuf.ByteString data) … … 28288 35862 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom(java.io.InputStream input) 28289 35863 throws java.io.IOException { 28290 return PARSER.parseFrom(input); 35864 return com.google.protobuf.GeneratedMessageV3 35865 .parseWithIOException(PARSER, input); 28291 35866 } 28292 35867 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( … … 28294 35869 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 28295 35870 throws java.io.IOException { 28296 return PARSER.parseFrom(input, extensionRegistry); 35871 return com.google.protobuf.GeneratedMessageV3 35872 .parseWithIOException(PARSER, input, extensionRegistry); 28297 35873 } 28298 35874 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseDelimitedFrom(java.io.InputStream input) 28299 35875 throws java.io.IOException { 28300 return PARSER.parseDelimitedFrom(input); 35876 return com.google.protobuf.GeneratedMessageV3 35877 .parseDelimitedWithIOException(PARSER, input); 28301 35878 } 28302 35879 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseDelimitedFrom( … … 28304 35881 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 28305 35882 throws java.io.IOException { 28306 return PARSER.parseDelimitedFrom(input, extensionRegistry); 35883 return com.google.protobuf.GeneratedMessageV3 35884 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 28307 35885 } 28308 35886 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( 28309 35887 com.google.protobuf.CodedInputStream input) 28310 35888 throws java.io.IOException { 28311 return PARSER.parseFrom(input); 35889 return com.google.protobuf.GeneratedMessageV3 35890 .parseWithIOException(PARSER, input); 28312 35891 } 28313 35892 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( … … 28315 35894 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 28316 35895 throws java.io.IOException { 28317 return PARSER.parseFrom(input, extensionRegistry); 28318 } 28319 28320 public static Builder newBuilder() { return Builder.create(); } 28321 @Override 28322 public Builder newBuilderForType() { return newBuilder(); } 35896 return com.google.protobuf.GeneratedMessageV3 35897 .parseWithIOException(PARSER, input, extensionRegistry); 35898 } 35899 35900 public Builder newBuilderForType() { return newBuilder(); } 35901 public static Builder newBuilder() { 35902 return DEFAULT_INSTANCE.toBuilder(); 35903 } 28323 35904 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location prototype) { 28324 return newBuilder().mergeFrom(prototype); 28325 } 28326 @Override 28327 public Builder toBuilder() { return newBuilder(this); } 35905 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 35906 } 35907 public Builder toBuilder() { 35908 return this == DEFAULT_INSTANCE 35909 ? new Builder() : new Builder().mergeFrom(this); 35910 } 28328 35911 28329 35912 @java.lang.Override 28330 35913 protected Builder newBuilderForType( 28331 com.google.protobuf.GeneratedMessage .BuilderParent parent) {35914 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 28332 35915 Builder builder = new Builder(parent); 28333 35916 return builder; … … 28337 35920 */ 28338 35921 public static final class Builder extends 28339 com.google.protobuf.GeneratedMessage .Builder<Builder> implements35922 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 28340 35923 // @@protoc_insertion_point(builder_implements:google.protobuf.SourceCodeInfo.Location) 28341 35924 com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder { … … 28345 35928 } 28346 35929 28347 @Override 28348 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 35930 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 28349 35931 internalGetFieldAccessorTable() { 28350 35932 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable … … 28359 35941 28360 35942 private Builder( 28361 com.google.protobuf.GeneratedMessage .BuilderParent parent) {35943 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 28362 35944 super(parent); 28363 35945 maybeForceBuilderInitialization(); 28364 35946 } 28365 35947 private void maybeForceBuilderInitialization() { 28366 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 35948 if (com.google.protobuf.GeneratedMessageV3 35949 .alwaysUseFieldBuilders) { 28367 35950 } 28368 35951 } 28369 private static Builder create() { 28370 return new Builder(); 28371 } 28372 28373 @Override 28374 public Builder clear() { 35952 public Builder clear() { 28375 35953 super.clear(); 28376 35954 path_ = java.util.Collections.emptyList(); … … 28382 35960 trailingComments_ = ""; 28383 35961 bitField0_ = (bitField0_ & ~0x00000008); 35962 leadingDetachedComments_ = com.google.protobuf.LazyStringArrayList.EMPTY; 35963 bitField0_ = (bitField0_ & ~0x00000010); 28384 35964 return this; 28385 35965 } 28386 35966 28387 @Override 28388 public Builder clone() { 28389 return create().mergeFrom(buildPartial()); 28390 } 28391 28392 @Override 28393 public com.google.protobuf.Descriptors.Descriptor 35967 public com.google.protobuf.Descriptors.Descriptor 28394 35968 getDescriptorForType() { 28395 35969 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; 28396 35970 } 28397 35971 28398 @Override 28399 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getDefaultInstanceForType() { 35972 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getDefaultInstanceForType() { 28400 35973 return com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance(); 28401 35974 } 28402 35975 28403 @Override 28404 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location build() { 35976 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location build() { 28405 35977 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result = buildPartial(); 28406 35978 if (!result.isInitialized()) { … … 28410 35982 } 28411 35983 28412 @Override 28413 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location buildPartial() { 35984 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location buildPartial() { 28414 35985 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result = new com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location(this); 28415 35986 int from_bitField0_ = bitField0_; … … 28433 36004 } 28434 36005 result.trailingComments_ = trailingComments_; 36006 if (((bitField0_ & 0x00000010) == 0x00000010)) { 36007 leadingDetachedComments_ = leadingDetachedComments_.getUnmodifiableView(); 36008 bitField0_ = (bitField0_ & ~0x00000010); 36009 } 36010 result.leadingDetachedComments_ = leadingDetachedComments_; 28435 36011 result.bitField0_ = to_bitField0_; 28436 36012 onBuilt(); … … 28438 36014 } 28439 36015 28440 @Override 28441 public Builder mergeFrom(com.google.protobuf.Message other) { 36016 public Builder clone() { 36017 return (Builder) super.clone(); 36018 } 36019 public Builder setField( 36020 com.google.protobuf.Descriptors.FieldDescriptor field, 36021 java.lang.Object value) { 36022 return (Builder) super.setField(field, value); 36023 } 36024 public Builder clearField( 36025 com.google.protobuf.Descriptors.FieldDescriptor field) { 36026 return (Builder) super.clearField(field); 36027 } 36028 public Builder clearOneof( 36029 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 36030 return (Builder) super.clearOneof(oneof); 36031 } 36032 public Builder setRepeatedField( 36033 com.google.protobuf.Descriptors.FieldDescriptor field, 36034 int index, java.lang.Object value) { 36035 return (Builder) super.setRepeatedField(field, index, value); 36036 } 36037 public Builder addRepeatedField( 36038 com.google.protobuf.Descriptors.FieldDescriptor field, 36039 java.lang.Object value) { 36040 return (Builder) super.addRepeatedField(field, value); 36041 } 36042 public Builder mergeFrom(com.google.protobuf.Message other) { 28442 36043 if (other instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location) { 28443 36044 return mergeFrom((com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location)other); … … 28480 36081 onChanged(); 28481 36082 } 28482 this.mergeUnknownFields(other.getUnknownFields()); 36083 if (!other.leadingDetachedComments_.isEmpty()) { 36084 if (leadingDetachedComments_.isEmpty()) { 36085 leadingDetachedComments_ = other.leadingDetachedComments_; 36086 bitField0_ = (bitField0_ & ~0x00000010); 36087 } else { 36088 ensureLeadingDetachedCommentsIsMutable(); 36089 leadingDetachedComments_.addAll(other.leadingDetachedComments_); 36090 } 36091 onChanged(); 36092 } 36093 this.mergeUnknownFields(other.unknownFields); 36094 onChanged(); 28483 36095 return this; 28484 36096 } 28485 36097 28486 @Override 28487 public final boolean isInitialized() { 36098 public final boolean isInitialized() { 28488 36099 return true; 28489 36100 } 28490 36101 28491 @Override 28492 public Builder mergeFrom( 36102 public Builder mergeFrom( 28493 36103 com.google.protobuf.CodedInputStream input, 28494 36104 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 28499 36109 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 28500 36110 parsedMessage = (com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location) e.getUnfinishedMessage(); 28501 throw e ;36111 throw e.unwrapIOException(); 28502 36112 } finally { 28503 36113 if (parsedMessage != null) { … … 28512 36122 private void ensurePathIsMutable() { 28513 36123 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 28514 path_ = new java.util.ArrayList< >(path_);36124 path_ = new java.util.ArrayList<java.lang.Integer>(path_); 28515 36125 bitField0_ |= 0x00000001; 28516 36126 } 28517 36127 } 28518 36128 /** 28519 * <code>repeated int32 path = 1 [packed = true];</code>28520 *28521 36129 * <pre> 28522 36130 * Identifies which part of the FileDescriptorProto was defined at this … … 28542 36150 * of the label to the terminating semicolon). 28543 36151 * </pre> 36152 * 36153 * <code>repeated int32 path = 1 [packed = true];</code> 28544 36154 */ 28545 @Override 28546 public java.util.List<java.lang.Integer> 36155 public java.util.List<java.lang.Integer> 28547 36156 getPathList() { 28548 36157 return java.util.Collections.unmodifiableList(path_); 28549 36158 } 28550 36159 /** 28551 * <code>repeated int32 path = 1 [packed = true];</code>28552 *28553 36160 * <pre> 28554 36161 * Identifies which part of the FileDescriptorProto was defined at this … … 28574 36181 * of the label to the terminating semicolon). 28575 36182 * </pre> 36183 * 36184 * <code>repeated int32 path = 1 [packed = true];</code> 28576 36185 */ 28577 @Override 28578 public int getPathCount() { 36186 public int getPathCount() { 28579 36187 return path_.size(); 28580 36188 } 28581 36189 /** 28582 * <code>repeated int32 path = 1 [packed = true];</code>28583 *28584 36190 * <pre> 28585 36191 * Identifies which part of the FileDescriptorProto was defined at this … … 28605 36211 * of the label to the terminating semicolon). 28606 36212 * </pre> 36213 * 36214 * <code>repeated int32 path = 1 [packed = true];</code> 28607 36215 */ 28608 @Override 28609 public int getPath(int index) { 36216 public int getPath(int index) { 28610 36217 return path_.get(index); 28611 36218 } 28612 36219 /** 28613 * <code>repeated int32 path = 1 [packed = true];</code>28614 *28615 36220 * <pre> 28616 36221 * Identifies which part of the FileDescriptorProto was defined at this … … 28636 36241 * of the label to the terminating semicolon). 28637 36242 * </pre> 36243 * 36244 * <code>repeated int32 path = 1 [packed = true];</code> 28638 36245 */ 28639 36246 public Builder setPath( … … 28645 36252 } 28646 36253 /** 28647 * <code>repeated int32 path = 1 [packed = true];</code>28648 *28649 36254 * <pre> 28650 36255 * Identifies which part of the FileDescriptorProto was defined at this … … 28670 36275 * of the label to the terminating semicolon). 28671 36276 * </pre> 36277 * 36278 * <code>repeated int32 path = 1 [packed = true];</code> 28672 36279 */ 28673 36280 public Builder addPath(int value) { … … 28678 36285 } 28679 36286 /** 28680 * <code>repeated int32 path = 1 [packed = true];</code>28681 *28682 36287 * <pre> 28683 36288 * Identifies which part of the FileDescriptorProto was defined at this … … 28703 36308 * of the label to the terminating semicolon). 28704 36309 * </pre> 36310 * 36311 * <code>repeated int32 path = 1 [packed = true];</code> 28705 36312 */ 28706 36313 public Builder addAllPath( … … 28713 36320 } 28714 36321 /** 28715 * <code>repeated int32 path = 1 [packed = true];</code>28716 *28717 36322 * <pre> 28718 36323 * Identifies which part of the FileDescriptorProto was defined at this … … 28738 36343 * of the label to the terminating semicolon). 28739 36344 * </pre> 36345 * 36346 * <code>repeated int32 path = 1 [packed = true];</code> 28740 36347 */ 28741 36348 public Builder clearPath() { … … 28749 36356 private void ensureSpanIsMutable() { 28750 36357 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 28751 span_ = new java.util.ArrayList< >(span_);36358 span_ = new java.util.ArrayList<java.lang.Integer>(span_); 28752 36359 bitField0_ |= 0x00000002; 28753 36360 } 28754 36361 } 28755 36362 /** 28756 * <code>repeated int32 span = 2 [packed = true];</code>28757 *28758 36363 * <pre> 28759 36364 * Always has exactly three or four elements: start line, start column, … … 28763 36368 * 1 to each before displaying to a user. 28764 36369 * </pre> 36370 * 36371 * <code>repeated int32 span = 2 [packed = true];</code> 28765 36372 */ 28766 @Override 28767 public java.util.List<java.lang.Integer> 36373 public java.util.List<java.lang.Integer> 28768 36374 getSpanList() { 28769 36375 return java.util.Collections.unmodifiableList(span_); 28770 36376 } 28771 36377 /** 28772 * <code>repeated int32 span = 2 [packed = true];</code>28773 *28774 36378 * <pre> 28775 36379 * Always has exactly three or four elements: start line, start column, … … 28779 36383 * 1 to each before displaying to a user. 28780 36384 * </pre> 36385 * 36386 * <code>repeated int32 span = 2 [packed = true];</code> 28781 36387 */ 28782 @Override 28783 public int getSpanCount() { 36388 public int getSpanCount() { 28784 36389 return span_.size(); 28785 36390 } 28786 36391 /** 28787 * <code>repeated int32 span = 2 [packed = true];</code>28788 *28789 36392 * <pre> 28790 36393 * Always has exactly three or four elements: start line, start column, … … 28794 36397 * 1 to each before displaying to a user. 28795 36398 * </pre> 36399 * 36400 * <code>repeated int32 span = 2 [packed = true];</code> 28796 36401 */ 28797 @Override 28798 public int getSpan(int index) { 36402 public int getSpan(int index) { 28799 36403 return span_.get(index); 28800 36404 } 28801 36405 /** 28802 * <code>repeated int32 span = 2 [packed = true];</code>28803 *28804 36406 * <pre> 28805 36407 * Always has exactly three or four elements: start line, start column, … … 28809 36411 * 1 to each before displaying to a user. 28810 36412 * </pre> 36413 * 36414 * <code>repeated int32 span = 2 [packed = true];</code> 28811 36415 */ 28812 36416 public Builder setSpan( … … 28818 36422 } 28819 36423 /** 28820 * <code>repeated int32 span = 2 [packed = true];</code>28821 *28822 36424 * <pre> 28823 36425 * Always has exactly three or four elements: start line, start column, … … 28827 36429 * 1 to each before displaying to a user. 28828 36430 * </pre> 36431 * 36432 * <code>repeated int32 span = 2 [packed = true];</code> 28829 36433 */ 28830 36434 public Builder addSpan(int value) { … … 28835 36439 } 28836 36440 /** 28837 * <code>repeated int32 span = 2 [packed = true];</code>28838 *28839 36441 * <pre> 28840 36442 * Always has exactly three or four elements: start line, start column, … … 28844 36446 * 1 to each before displaying to a user. 28845 36447 * </pre> 36448 * 36449 * <code>repeated int32 span = 2 [packed = true];</code> 28846 36450 */ 28847 36451 public Builder addAllSpan( … … 28854 36458 } 28855 36459 /** 28856 * <code>repeated int32 span = 2 [packed = true];</code>28857 *28858 36460 * <pre> 28859 36461 * Always has exactly three or four elements: start line, start column, … … 28863 36465 * 1 to each before displaying to a user. 28864 36466 * </pre> 36467 * 36468 * <code>repeated int32 span = 2 [packed = true];</code> 28865 36469 */ 28866 36470 public Builder clearSpan() { … … 28873 36477 private java.lang.Object leadingComments_ = ""; 28874 36478 /** 28875 * <code>optional string leading_comments = 3;</code>28876 *28877 36479 * <pre> 28878 36480 * If this SourceCodeInfo represents a complete declaration, these are any … … 28881 36483 * A series of line comments appearing on consecutive lines, with no other 28882 36484 * tokens appearing on those lines, will be treated as a single comment. 36485 * leading_detached_comments will keep paragraphs of comments that appear 36486 * before (but not connected to) the current element. Each paragraph, 36487 * separated by empty lines, will be one comment element in the repeated 36488 * field. 28883 36489 * Only the comment content is provided; comment markers (e.g. //) are 28884 36490 * stripped out. For block comments, leading whitespace and an asterisk … … 28896 36502 * // Another line attached to qux. 28897 36503 * optional double qux = 4; 36504 * // Detached comment for corge. This is not leading or trailing comments 36505 * // to qux or corge because there are blank lines separating it from 36506 * // both. 36507 * // Detached comment for corge paragraph 2. 28898 36508 * optional string corge = 5; 28899 36509 * /* Block comment attached … … 28903 36513 * * grault. */ 28904 36514 * optional int32 grault = 6; 36515 * // ignored detached comments. 28905 36516 * </pre> 36517 * 36518 * <code>optional string leading_comments = 3;</code> 28906 36519 */ 28907 @Override 28908 public boolean hasLeadingComments() { 36520 public boolean hasLeadingComments() { 28909 36521 return ((bitField0_ & 0x00000004) == 0x00000004); 28910 36522 } 28911 36523 /** 28912 * <code>optional string leading_comments = 3;</code>28913 *28914 36524 * <pre> 28915 36525 * If this SourceCodeInfo represents a complete declaration, these are any … … 28918 36528 * A series of line comments appearing on consecutive lines, with no other 28919 36529 * tokens appearing on those lines, will be treated as a single comment. 36530 * leading_detached_comments will keep paragraphs of comments that appear 36531 * before (but not connected to) the current element. Each paragraph, 36532 * separated by empty lines, will be one comment element in the repeated 36533 * field. 28920 36534 * Only the comment content is provided; comment markers (e.g. //) are 28921 36535 * stripped out. For block comments, leading whitespace and an asterisk … … 28933 36547 * // Another line attached to qux. 28934 36548 * optional double qux = 4; 36549 * // Detached comment for corge. This is not leading or trailing comments 36550 * // to qux or corge because there are blank lines separating it from 36551 * // both. 36552 * // Detached comment for corge paragraph 2. 28935 36553 * optional string corge = 5; 28936 36554 * /* Block comment attached … … 28940 36558 * * grault. */ 28941 36559 * optional int32 grault = 6; 36560 * // ignored detached comments. 28942 36561 * </pre> 36562 * 36563 * <code>optional string leading_comments = 3;</code> 28943 36564 */ 28944 @Override 28945 public java.lang.String getLeadingComments() { 36565 public java.lang.String getLeadingComments() { 28946 36566 java.lang.Object ref = leadingComments_; 28947 36567 if (!(ref instanceof java.lang.String)) { … … 28958 36578 } 28959 36579 /** 28960 * <code>optional string leading_comments = 3;</code>28961 *28962 36580 * <pre> 28963 36581 * If this SourceCodeInfo represents a complete declaration, these are any … … 28966 36584 * A series of line comments appearing on consecutive lines, with no other 28967 36585 * tokens appearing on those lines, will be treated as a single comment. 36586 * leading_detached_comments will keep paragraphs of comments that appear 36587 * before (but not connected to) the current element. Each paragraph, 36588 * separated by empty lines, will be one comment element in the repeated 36589 * field. 28968 36590 * Only the comment content is provided; comment markers (e.g. //) are 28969 36591 * stripped out. For block comments, leading whitespace and an asterisk … … 28981 36603 * // Another line attached to qux. 28982 36604 * optional double qux = 4; 36605 * // Detached comment for corge. This is not leading or trailing comments 36606 * // to qux or corge because there are blank lines separating it from 36607 * // both. 36608 * // Detached comment for corge paragraph 2. 28983 36609 * optional string corge = 5; 28984 36610 * /* Block comment attached … … 28988 36614 * * grault. */ 28989 36615 * optional int32 grault = 6; 36616 * // ignored detached comments. 28990 36617 * </pre> 36618 * 36619 * <code>optional string leading_comments = 3;</code> 28991 36620 */ 28992 @Override 28993 public com.google.protobuf.ByteString 36621 public com.google.protobuf.ByteString 28994 36622 getLeadingCommentsBytes() { 28995 36623 java.lang.Object ref = leadingComments_; 28996 36624 if (ref instanceof String) { 28997 com.google.protobuf.ByteString b = 36625 com.google.protobuf.ByteString b = 28998 36626 com.google.protobuf.ByteString.copyFromUtf8( 28999 36627 (java.lang.String) ref); … … 29005 36633 } 29006 36634 /** 29007 * <code>optional string leading_comments = 3;</code>29008 *29009 36635 * <pre> 29010 36636 * If this SourceCodeInfo represents a complete declaration, these are any … … 29013 36639 * A series of line comments appearing on consecutive lines, with no other 29014 36640 * tokens appearing on those lines, will be treated as a single comment. 36641 * leading_detached_comments will keep paragraphs of comments that appear 36642 * before (but not connected to) the current element. Each paragraph, 36643 * separated by empty lines, will be one comment element in the repeated 36644 * field. 29015 36645 * Only the comment content is provided; comment markers (e.g. //) are 29016 36646 * stripped out. For block comments, leading whitespace and an asterisk … … 29028 36658 * // Another line attached to qux. 29029 36659 * optional double qux = 4; 36660 * // Detached comment for corge. This is not leading or trailing comments 36661 * // to qux or corge because there are blank lines separating it from 36662 * // both. 36663 * // Detached comment for corge paragraph 2. 29030 36664 * optional string corge = 5; 29031 36665 * /* Block comment attached … … 29035 36669 * * grault. */ 29036 36670 * optional int32 grault = 6; 36671 * // ignored detached comments. 29037 36672 * </pre> 36673 * 36674 * <code>optional string leading_comments = 3;</code> 29038 36675 */ 29039 36676 public Builder setLeadingComments( … … 29048 36685 } 29049 36686 /** 29050 * <code>optional string leading_comments = 3;</code>29051 *29052 36687 * <pre> 29053 36688 * If this SourceCodeInfo represents a complete declaration, these are any … … 29056 36691 * A series of line comments appearing on consecutive lines, with no other 29057 36692 * tokens appearing on those lines, will be treated as a single comment. 36693 * leading_detached_comments will keep paragraphs of comments that appear 36694 * before (but not connected to) the current element. Each paragraph, 36695 * separated by empty lines, will be one comment element in the repeated 36696 * field. 29058 36697 * Only the comment content is provided; comment markers (e.g. //) are 29059 36698 * stripped out. For block comments, leading whitespace and an asterisk … … 29071 36710 * // Another line attached to qux. 29072 36711 * optional double qux = 4; 36712 * // Detached comment for corge. This is not leading or trailing comments 36713 * // to qux or corge because there are blank lines separating it from 36714 * // both. 36715 * // Detached comment for corge paragraph 2. 29073 36716 * optional string corge = 5; 29074 36717 * /* Block comment attached … … 29078 36721 * * grault. */ 29079 36722 * optional int32 grault = 6; 36723 * // ignored detached comments. 29080 36724 * </pre> 36725 * 36726 * <code>optional string leading_comments = 3;</code> 29081 36727 */ 29082 36728 public Builder clearLeadingComments() { … … 29087 36733 } 29088 36734 /** 29089 * <code>optional string leading_comments = 3;</code>29090 *29091 36735 * <pre> 29092 36736 * If this SourceCodeInfo represents a complete declaration, these are any … … 29095 36739 * A series of line comments appearing on consecutive lines, with no other 29096 36740 * tokens appearing on those lines, will be treated as a single comment. 36741 * leading_detached_comments will keep paragraphs of comments that appear 36742 * before (but not connected to) the current element. Each paragraph, 36743 * separated by empty lines, will be one comment element in the repeated 36744 * field. 29097 36745 * Only the comment content is provided; comment markers (e.g. //) are 29098 36746 * stripped out. For block comments, leading whitespace and an asterisk … … 29110 36758 * // Another line attached to qux. 29111 36759 * optional double qux = 4; 36760 * // Detached comment for corge. This is not leading or trailing comments 36761 * // to qux or corge because there are blank lines separating it from 36762 * // both. 36763 * // Detached comment for corge paragraph 2. 29112 36764 * optional string corge = 5; 29113 36765 * /* Block comment attached … … 29117 36769 * * grault. */ 29118 36770 * optional int32 grault = 6; 36771 * // ignored detached comments. 29119 36772 * </pre> 36773 * 36774 * <code>optional string leading_comments = 3;</code> 29120 36775 */ 29121 36776 public Builder setLeadingCommentsBytes( … … 29134 36789 * <code>optional string trailing_comments = 4;</code> 29135 36790 */ 29136 @Override 29137 public boolean hasTrailingComments() { 36791 public boolean hasTrailingComments() { 29138 36792 return ((bitField0_ & 0x00000008) == 0x00000008); 29139 36793 } … … 29141 36795 * <code>optional string trailing_comments = 4;</code> 29142 36796 */ 29143 @Override 29144 public java.lang.String getTrailingComments() { 36797 public java.lang.String getTrailingComments() { 29145 36798 java.lang.Object ref = trailingComments_; 29146 36799 if (!(ref instanceof java.lang.String)) { … … 29159 36812 * <code>optional string trailing_comments = 4;</code> 29160 36813 */ 29161 @Override 29162 public com.google.protobuf.ByteString 36814 public com.google.protobuf.ByteString 29163 36815 getTrailingCommentsBytes() { 29164 36816 java.lang.Object ref = trailingComments_; 29165 36817 if (ref instanceof String) { 29166 com.google.protobuf.ByteString b = 36818 com.google.protobuf.ByteString b = 29167 36819 com.google.protobuf.ByteString.copyFromUtf8( 29168 36820 (java.lang.String) ref); … … 29209 36861 } 29210 36862 36863 private com.google.protobuf.LazyStringList leadingDetachedComments_ = com.google.protobuf.LazyStringArrayList.EMPTY; 36864 private void ensureLeadingDetachedCommentsIsMutable() { 36865 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 36866 leadingDetachedComments_ = new com.google.protobuf.LazyStringArrayList(leadingDetachedComments_); 36867 bitField0_ |= 0x00000010; 36868 } 36869 } 36870 /** 36871 * <code>repeated string leading_detached_comments = 6;</code> 36872 */ 36873 public com.google.protobuf.ProtocolStringList 36874 getLeadingDetachedCommentsList() { 36875 return leadingDetachedComments_.getUnmodifiableView(); 36876 } 36877 /** 36878 * <code>repeated string leading_detached_comments = 6;</code> 36879 */ 36880 public int getLeadingDetachedCommentsCount() { 36881 return leadingDetachedComments_.size(); 36882 } 36883 /** 36884 * <code>repeated string leading_detached_comments = 6;</code> 36885 */ 36886 public java.lang.String getLeadingDetachedComments(int index) { 36887 return leadingDetachedComments_.get(index); 36888 } 36889 /** 36890 * <code>repeated string leading_detached_comments = 6;</code> 36891 */ 36892 public com.google.protobuf.ByteString 36893 getLeadingDetachedCommentsBytes(int index) { 36894 return leadingDetachedComments_.getByteString(index); 36895 } 36896 /** 36897 * <code>repeated string leading_detached_comments = 6;</code> 36898 */ 36899 public Builder setLeadingDetachedComments( 36900 int index, java.lang.String value) { 36901 if (value == null) { 36902 throw new NullPointerException(); 36903 } 36904 ensureLeadingDetachedCommentsIsMutable(); 36905 leadingDetachedComments_.set(index, value); 36906 onChanged(); 36907 return this; 36908 } 36909 /** 36910 * <code>repeated string leading_detached_comments = 6;</code> 36911 */ 36912 public Builder addLeadingDetachedComments( 36913 java.lang.String value) { 36914 if (value == null) { 36915 throw new NullPointerException(); 36916 } 36917 ensureLeadingDetachedCommentsIsMutable(); 36918 leadingDetachedComments_.add(value); 36919 onChanged(); 36920 return this; 36921 } 36922 /** 36923 * <code>repeated string leading_detached_comments = 6;</code> 36924 */ 36925 public Builder addAllLeadingDetachedComments( 36926 java.lang.Iterable<java.lang.String> values) { 36927 ensureLeadingDetachedCommentsIsMutable(); 36928 com.google.protobuf.AbstractMessageLite.Builder.addAll( 36929 values, leadingDetachedComments_); 36930 onChanged(); 36931 return this; 36932 } 36933 /** 36934 * <code>repeated string leading_detached_comments = 6;</code> 36935 */ 36936 public Builder clearLeadingDetachedComments() { 36937 leadingDetachedComments_ = com.google.protobuf.LazyStringArrayList.EMPTY; 36938 bitField0_ = (bitField0_ & ~0x00000010); 36939 onChanged(); 36940 return this; 36941 } 36942 /** 36943 * <code>repeated string leading_detached_comments = 6;</code> 36944 */ 36945 public Builder addLeadingDetachedCommentsBytes( 36946 com.google.protobuf.ByteString value) { 36947 if (value == null) { 36948 throw new NullPointerException(); 36949 } 36950 ensureLeadingDetachedCommentsIsMutable(); 36951 leadingDetachedComments_.add(value); 36952 onChanged(); 36953 return this; 36954 } 36955 public final Builder setUnknownFields( 36956 final com.google.protobuf.UnknownFieldSet unknownFields) { 36957 return super.setUnknownFields(unknownFields); 36958 } 36959 36960 public final Builder mergeUnknownFields( 36961 final com.google.protobuf.UnknownFieldSet unknownFields) { 36962 return super.mergeUnknownFields(unknownFields); 36963 } 36964 36965 29211 36966 // @@protoc_insertion_point(builder_scope:google.protobuf.SourceCodeInfo.Location) 29212 36967 } 29213 36968 36969 // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location) 36970 private static final com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location DEFAULT_INSTANCE; 29214 36971 static { 29215 defaultInstance = new Location(true); 29216 defaultInstance.initFields(); 29217 } 29218 29219 // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location) 36972 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location(); 36973 } 36974 36975 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getDefaultInstance() { 36976 return DEFAULT_INSTANCE; 36977 } 36978 36979 @java.lang.Deprecated public static final com.google.protobuf.Parser<Location> 36980 PARSER = new com.google.protobuf.AbstractParser<Location>() { 36981 public Location parsePartialFrom( 36982 com.google.protobuf.CodedInputStream input, 36983 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 36984 throws com.google.protobuf.InvalidProtocolBufferException { 36985 return new Location(input, extensionRegistry); 36986 } 36987 }; 36988 36989 public static com.google.protobuf.Parser<Location> parser() { 36990 return PARSER; 36991 } 36992 36993 @java.lang.Override 36994 public com.google.protobuf.Parser<Location> getParserForType() { 36995 return PARSER; 36996 } 36997 36998 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getDefaultInstanceForType() { 36999 return DEFAULT_INSTANCE; 37000 } 37001 29220 37002 } 29221 37003 … … 29223 37005 private java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> location_; 29224 37006 /** 29225 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>29226 *29227 37007 * <pre> 29228 37008 * A Location identifies a piece of source code in a .proto file which … … 29268 37048 * be recorded in the future. 29269 37049 * </pre> 29270 */ 29271 @Override 29272 public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { 37050 * 37051 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 37052 */ 37053 public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { 29273 37054 return location_; 29274 37055 } 29275 37056 /** 29276 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>29277 *29278 37057 * <pre> 29279 37058 * A Location identifies a piece of source code in a .proto file which … … 29319 37098 * be recorded in the future. 29320 37099 * </pre> 29321 */ 29322 @Override 29323 public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 37100 * 37101 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 37102 */ 37103 public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 29324 37104 getLocationOrBuilderList() { 29325 37105 return location_; 29326 37106 } 29327 37107 /** 29328 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>29329 *29330 37108 * <pre> 29331 37109 * A Location identifies a piece of source code in a .proto file which … … 29371 37149 * be recorded in the future. 29372 37150 * </pre> 29373 */ 29374 @Override 29375 public int getLocationCount() { 37151 * 37152 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 37153 */ 37154 public int getLocationCount() { 29376 37155 return location_.size(); 29377 37156 } 29378 37157 /** 29379 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>29380 *29381 37158 * <pre> 29382 37159 * A Location identifies a piece of source code in a .proto file which … … 29422 37199 * be recorded in the future. 29423 37200 * </pre> 29424 */ 29425 @Override 29426 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { 37201 * 37202 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 37203 */ 37204 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { 29427 37205 return location_.get(index); 29428 37206 } 29429 37207 /** 29430 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>29431 *29432 37208 * <pre> 29433 37209 * A Location identifies a piece of source code in a .proto file which … … 29473 37249 * be recorded in the future. 29474 37250 * </pre> 29475 */ 29476 @Override 29477 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( 37251 * 37252 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 37253 */ 37254 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( 29478 37255 int index) { 29479 37256 return location_.get(index); 29480 37257 } 29481 37258 29482 private void initFields() {29483 location_ = java.util.Collections.emptyList();29484 }29485 37259 private byte memoizedIsInitialized = -1; 29486 @Override 29487 public final boolean isInitialized() { 37260 public final boolean isInitialized() { 29488 37261 byte isInitialized = memoizedIsInitialized; 29489 37262 if (isInitialized == 1) return true; … … 29494 37267 } 29495 37268 29496 @Override 29497 public void writeTo(com.google.protobuf.CodedOutputStream output) 37269 public void writeTo(com.google.protobuf.CodedOutputStream output) 29498 37270 throws java.io.IOException { 29499 getSerializedSize();29500 37271 for (int i = 0; i < location_.size(); i++) { 29501 37272 output.writeMessage(1, location_.get(i)); 29502 37273 } 29503 getUnknownFields().writeTo(output); 29504 } 29505 29506 private int memoizedSerializedSize = -1; 29507 @Override 29508 public int getSerializedSize() { 29509 int size = memoizedSerializedSize; 37274 unknownFields.writeTo(output); 37275 } 37276 37277 public int getSerializedSize() { 37278 int size = memoizedSize; 29510 37279 if (size != -1) return size; 29511 37280 … … 29515 37284 .computeMessageSize(1, location_.get(i)); 29516 37285 } 29517 size += getUnknownFields().getSerializedSize();29518 memoizedS erializedSize = size;37286 size += unknownFields.getSerializedSize(); 37287 memoizedSize = size; 29519 37288 return size; 29520 37289 } 29521 37290 29522 private static final long serialVersionUID = 0L;29523 37291 @java.lang.Override 29524 protected java.lang.Object writeReplace() 29525 throws java.io.ObjectStreamException { 29526 return super.writeReplace(); 29527 } 29528 37292 public boolean equals(final java.lang.Object obj) { 37293 if (obj == this) { 37294 return true; 37295 } 37296 if (!(obj instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo)) { 37297 return super.equals(obj); 37298 } 37299 com.google.protobuf.DescriptorProtos.SourceCodeInfo other = (com.google.protobuf.DescriptorProtos.SourceCodeInfo) obj; 37300 37301 boolean result = true; 37302 result = result && getLocationList() 37303 .equals(other.getLocationList()); 37304 result = result && unknownFields.equals(other.unknownFields); 37305 return result; 37306 } 37307 37308 @java.lang.Override 37309 public int hashCode() { 37310 if (memoizedHashCode != 0) { 37311 return memoizedHashCode; 37312 } 37313 int hash = 41; 37314 hash = (19 * hash) + getDescriptor().hashCode(); 37315 if (getLocationCount() > 0) { 37316 hash = (37 * hash) + LOCATION_FIELD_NUMBER; 37317 hash = (53 * hash) + getLocationList().hashCode(); 37318 } 37319 hash = (29 * hash) + unknownFields.hashCode(); 37320 memoizedHashCode = hash; 37321 return hash; 37322 } 37323 37324 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( 37325 java.nio.ByteBuffer data) 37326 throws com.google.protobuf.InvalidProtocolBufferException { 37327 return PARSER.parseFrom(data); 37328 } 37329 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( 37330 java.nio.ByteBuffer data, 37331 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 37332 throws com.google.protobuf.InvalidProtocolBufferException { 37333 return PARSER.parseFrom(data, extensionRegistry); 37334 } 29529 37335 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( 29530 37336 com.google.protobuf.ByteString data) … … 29550 37356 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom(java.io.InputStream input) 29551 37357 throws java.io.IOException { 29552 return PARSER.parseFrom(input); 37358 return com.google.protobuf.GeneratedMessageV3 37359 .parseWithIOException(PARSER, input); 29553 37360 } 29554 37361 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( … … 29556 37363 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 29557 37364 throws java.io.IOException { 29558 return PARSER.parseFrom(input, extensionRegistry); 37365 return com.google.protobuf.GeneratedMessageV3 37366 .parseWithIOException(PARSER, input, extensionRegistry); 29559 37367 } 29560 37368 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseDelimitedFrom(java.io.InputStream input) 29561 37369 throws java.io.IOException { 29562 return PARSER.parseDelimitedFrom(input); 37370 return com.google.protobuf.GeneratedMessageV3 37371 .parseDelimitedWithIOException(PARSER, input); 29563 37372 } 29564 37373 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseDelimitedFrom( … … 29566 37375 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 29567 37376 throws java.io.IOException { 29568 return PARSER.parseDelimitedFrom(input, extensionRegistry); 37377 return com.google.protobuf.GeneratedMessageV3 37378 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 29569 37379 } 29570 37380 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( 29571 37381 com.google.protobuf.CodedInputStream input) 29572 37382 throws java.io.IOException { 29573 return PARSER.parseFrom(input); 37383 return com.google.protobuf.GeneratedMessageV3 37384 .parseWithIOException(PARSER, input); 29574 37385 } 29575 37386 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( … … 29577 37388 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 29578 37389 throws java.io.IOException { 29579 return PARSER.parseFrom(input, extensionRegistry); 29580 } 29581 29582 public static Builder newBuilder() { return Builder.create(); } 29583 @Override 29584 public Builder newBuilderForType() { return newBuilder(); } 37390 return com.google.protobuf.GeneratedMessageV3 37391 .parseWithIOException(PARSER, input, extensionRegistry); 37392 } 37393 37394 public Builder newBuilderForType() { return newBuilder(); } 37395 public static Builder newBuilder() { 37396 return DEFAULT_INSTANCE.toBuilder(); 37397 } 29585 37398 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.SourceCodeInfo prototype) { 29586 return newBuilder().mergeFrom(prototype); 29587 } 29588 @Override 29589 public Builder toBuilder() { return newBuilder(this); } 37399 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 37400 } 37401 public Builder toBuilder() { 37402 return this == DEFAULT_INSTANCE 37403 ? new Builder() : new Builder().mergeFrom(this); 37404 } 29590 37405 29591 37406 @java.lang.Override 29592 37407 protected Builder newBuilderForType( 29593 com.google.protobuf.GeneratedMessage .BuilderParent parent) {37408 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 29594 37409 Builder builder = new Builder(parent); 29595 37410 return builder; 29596 37411 } 29597 37412 /** 29598 * Protobuf type {@code google.protobuf.SourceCodeInfo}29599 *29600 37413 * <pre> 29601 37414 * Encapsulates information about the original source file from which a 29602 37415 * FileDescriptorProto was generated. 29603 37416 * </pre> 37417 * 37418 * Protobuf type {@code google.protobuf.SourceCodeInfo} 29604 37419 */ 29605 37420 public static final class Builder extends 29606 com.google.protobuf.GeneratedMessage .Builder<Builder> implements37421 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 29607 37422 // @@protoc_insertion_point(builder_implements:google.protobuf.SourceCodeInfo) 29608 37423 com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder { … … 29612 37427 } 29613 37428 29614 @Override 29615 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 37429 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 29616 37430 internalGetFieldAccessorTable() { 29617 37431 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable … … 29626 37440 29627 37441 private Builder( 29628 com.google.protobuf.GeneratedMessage .BuilderParent parent) {37442 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 29629 37443 super(parent); 29630 37444 maybeForceBuilderInitialization(); 29631 37445 } 29632 37446 private void maybeForceBuilderInitialization() { 29633 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 37447 if (com.google.protobuf.GeneratedMessageV3 37448 .alwaysUseFieldBuilders) { 29634 37449 getLocationFieldBuilder(); 29635 37450 } 29636 37451 } 29637 private static Builder create() { 29638 return new Builder(); 29639 } 29640 29641 @Override 29642 public Builder clear() { 37452 public Builder clear() { 29643 37453 super.clear(); 29644 37454 if (locationBuilder_ == null) { … … 29651 37461 } 29652 37462 29653 @Override 29654 public Builder clone() { 29655 return create().mergeFrom(buildPartial()); 29656 } 29657 29658 @Override 29659 public com.google.protobuf.Descriptors.Descriptor 37463 public com.google.protobuf.Descriptors.Descriptor 29660 37464 getDescriptorForType() { 29661 37465 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_SourceCodeInfo_descriptor; 29662 37466 } 29663 37467 29664 @Override 29665 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getDefaultInstanceForType() { 37468 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getDefaultInstanceForType() { 29666 37469 return com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); 29667 37470 } 29668 37471 29669 @Override 29670 public com.google.protobuf.DescriptorProtos.SourceCodeInfo build() { 37472 public com.google.protobuf.DescriptorProtos.SourceCodeInfo build() { 29671 37473 com.google.protobuf.DescriptorProtos.SourceCodeInfo result = buildPartial(); 29672 37474 if (!result.isInitialized()) { … … 29676 37478 } 29677 37479 29678 @Override 29679 public com.google.protobuf.DescriptorProtos.SourceCodeInfo buildPartial() { 37480 public com.google.protobuf.DescriptorProtos.SourceCodeInfo buildPartial() { 29680 37481 com.google.protobuf.DescriptorProtos.SourceCodeInfo result = new com.google.protobuf.DescriptorProtos.SourceCodeInfo(this); 29681 37482 int from_bitField0_ = bitField0_; … … 29693 37494 } 29694 37495 29695 @Override 29696 public Builder mergeFrom(com.google.protobuf.Message other) { 37496 public Builder clone() { 37497 return (Builder) super.clone(); 37498 } 37499 public Builder setField( 37500 com.google.protobuf.Descriptors.FieldDescriptor field, 37501 java.lang.Object value) { 37502 return (Builder) super.setField(field, value); 37503 } 37504 public Builder clearField( 37505 com.google.protobuf.Descriptors.FieldDescriptor field) { 37506 return (Builder) super.clearField(field); 37507 } 37508 public Builder clearOneof( 37509 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 37510 return (Builder) super.clearOneof(oneof); 37511 } 37512 public Builder setRepeatedField( 37513 com.google.protobuf.Descriptors.FieldDescriptor field, 37514 int index, java.lang.Object value) { 37515 return (Builder) super.setRepeatedField(field, index, value); 37516 } 37517 public Builder addRepeatedField( 37518 com.google.protobuf.Descriptors.FieldDescriptor field, 37519 java.lang.Object value) { 37520 return (Builder) super.addRepeatedField(field, value); 37521 } 37522 public Builder mergeFrom(com.google.protobuf.Message other) { 29697 37523 if (other instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo) { 29698 37524 return mergeFrom((com.google.protobuf.DescriptorProtos.SourceCodeInfo)other); … … 29723 37549 location_ = other.location_; 29724 37550 bitField0_ = (bitField0_ & ~0x00000001); 29725 locationBuilder_ = 29726 com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders ?37551 locationBuilder_ = 37552 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 29727 37553 getLocationFieldBuilder() : null; 29728 37554 } else { … … 29731 37557 } 29732 37558 } 29733 this.mergeUnknownFields(other. getUnknownFields());29734 return this;29735 }29736 29737 @Override 29738 37559 this.mergeUnknownFields(other.unknownFields); 37560 onChanged(); 37561 return this; 37562 } 37563 37564 public final boolean isInitialized() { 29739 37565 return true; 29740 37566 } 29741 37567 29742 @Override 29743 public Builder mergeFrom( 37568 public Builder mergeFrom( 29744 37569 com.google.protobuf.CodedInputStream input, 29745 37570 com.google.protobuf.ExtensionRegistryLite extensionRegistry) … … 29750 37575 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 29751 37576 parsedMessage = (com.google.protobuf.DescriptorProtos.SourceCodeInfo) e.getUnfinishedMessage(); 29752 throw e ;37577 throw e.unwrapIOException(); 29753 37578 } finally { 29754 37579 if (parsedMessage != null) { … … 29764 37589 private void ensureLocationIsMutable() { 29765 37590 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 29766 location_ = new java.util.ArrayList< >(location_);37591 location_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location>(location_); 29767 37592 bitField0_ |= 0x00000001; 29768 37593 } 29769 37594 } 29770 37595 29771 private com.google.protobuf.RepeatedFieldBuilder <37596 private com.google.protobuf.RepeatedFieldBuilderV3< 29772 37597 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> locationBuilder_; 29773 37598 29774 37599 /** 29775 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>29776 *29777 37600 * <pre> 29778 37601 * A Location identifies a piece of source code in a .proto file which … … 29818 37641 * be recorded in the future. 29819 37642 * </pre> 29820 */ 29821 @Override 29822 public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { 37643 * 37644 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 37645 */ 37646 public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { 29823 37647 if (locationBuilder_ == null) { 29824 37648 return java.util.Collections.unmodifiableList(location_); … … 29828 37652 } 29829 37653 /** 29830 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>29831 *29832 37654 * <pre> 29833 37655 * A Location identifies a piece of source code in a .proto file which … … 29873 37695 * be recorded in the future. 29874 37696 * </pre> 29875 */ 29876 @Override 29877 public int getLocationCount() { 37697 * 37698 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 37699 */ 37700 public int getLocationCount() { 29878 37701 if (locationBuilder_ == null) { 29879 37702 return location_.size(); … … 29883 37706 } 29884 37707 /** 29885 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>29886 *29887 37708 * <pre> 29888 37709 * A Location identifies a piece of source code in a .proto file which … … 29928 37749 * be recorded in the future. 29929 37750 * </pre> 29930 */ 29931 @Override 29932 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { 37751 * 37752 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 37753 */ 37754 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { 29933 37755 if (locationBuilder_ == null) { 29934 37756 return location_.get(index); … … 29938 37760 } 29939 37761 /** 29940 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>29941 *29942 37762 * <pre> 29943 37763 * A Location identifies a piece of source code in a .proto file which … … 29983 37803 * be recorded in the future. 29984 37804 * </pre> 37805 * 37806 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 29985 37807 */ 29986 37808 public Builder setLocation( … … 29999 37821 } 30000 37822 /** 30001 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30002 *30003 37823 * <pre> 30004 37824 * A Location identifies a piece of source code in a .proto file which … … 30044 37864 * be recorded in the future. 30045 37865 * </pre> 37866 * 37867 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30046 37868 */ 30047 37869 public Builder setLocation( … … 30057 37879 } 30058 37880 /** 30059 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30060 *30061 37881 * <pre> 30062 37882 * A Location identifies a piece of source code in a .proto file which … … 30102 37922 * be recorded in the future. 30103 37923 * </pre> 37924 * 37925 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30104 37926 */ 30105 37927 public Builder addLocation(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location value) { … … 30117 37939 } 30118 37940 /** 30119 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30120 *30121 37941 * <pre> 30122 37942 * A Location identifies a piece of source code in a .proto file which … … 30162 37982 * be recorded in the future. 30163 37983 * </pre> 37984 * 37985 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30164 37986 */ 30165 37987 public Builder addLocation( … … 30178 38000 } 30179 38001 /** 30180 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30181 *30182 38002 * <pre> 30183 38003 * A Location identifies a piece of source code in a .proto file which … … 30223 38043 * be recorded in the future. 30224 38044 * </pre> 38045 * 38046 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30225 38047 */ 30226 38048 public Builder addLocation( … … 30236 38058 } 30237 38059 /** 30238 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30239 *30240 38060 * <pre> 30241 38061 * A Location identifies a piece of source code in a .proto file which … … 30281 38101 * be recorded in the future. 30282 38102 * </pre> 38103 * 38104 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30283 38105 */ 30284 38106 public Builder addLocation( … … 30294 38116 } 30295 38117 /** 30296 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30297 *30298 38118 * <pre> 30299 38119 * A Location identifies a piece of source code in a .proto file which … … 30339 38159 * be recorded in the future. 30340 38160 * </pre> 38161 * 38162 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30341 38163 */ 30342 38164 public Builder addAllLocation( … … 30353 38175 } 30354 38176 /** 30355 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30356 *30357 38177 * <pre> 30358 38178 * A Location identifies a piece of source code in a .proto file which … … 30398 38218 * be recorded in the future. 30399 38219 * </pre> 38220 * 38221 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30400 38222 */ 30401 38223 public Builder clearLocation() { … … 30410 38232 } 30411 38233 /** 30412 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30413 *30414 38234 * <pre> 30415 38235 * A Location identifies a piece of source code in a .proto file which … … 30455 38275 * be recorded in the future. 30456 38276 * </pre> 38277 * 38278 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30457 38279 */ 30458 38280 public Builder removeLocation(int index) { … … 30467 38289 } 30468 38290 /** 30469 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30470 *30471 38291 * <pre> 30472 38292 * A Location identifies a piece of source code in a .proto file which … … 30512 38332 * be recorded in the future. 30513 38333 * </pre> 38334 * 38335 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30514 38336 */ 30515 38337 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder getLocationBuilder( … … 30518 38340 } 30519 38341 /** 30520 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30521 *30522 38342 * <pre> 30523 38343 * A Location identifies a piece of source code in a .proto file which … … 30563 38383 * be recorded in the future. 30564 38384 * </pre> 30565 */ 30566 @Override 30567 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( 38385 * 38386 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 38387 */ 38388 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( 30568 38389 int index) { 30569 38390 if (locationBuilder_ == null) { … … 30573 38394 } 30574 38395 /** 30575 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30576 *30577 38396 * <pre> 30578 38397 * A Location identifies a piece of source code in a .proto file which … … 30618 38437 * be recorded in the future. 30619 38438 * </pre> 30620 */ 30621 @Override 30622 public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 38439 * 38440 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 38441 */ 38442 public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 30623 38443 getLocationOrBuilderList() { 30624 38444 if (locationBuilder_ != null) { … … 30629 38449 } 30630 38450 /** 30631 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30632 *30633 38451 * <pre> 30634 38452 * A Location identifies a piece of source code in a .proto file which … … 30674 38492 * be recorded in the future. 30675 38493 * </pre> 38494 * 38495 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30676 38496 */ 30677 38497 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder addLocationBuilder() { … … 30680 38500 } 30681 38501 /** 30682 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30683 *30684 38502 * <pre> 30685 38503 * A Location identifies a piece of source code in a .proto file which … … 30725 38543 * be recorded in the future. 30726 38544 * </pre> 38545 * 38546 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 30727 38547 */ 30728 38548 public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder addLocationBuilder( … … 30732 38552 } 30733 38553 /** 30734 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code>30735 *30736 38554 * <pre> 30737 38555 * A Location identifies a piece of source code in a .proto file which … … 30777 38595 * be recorded in the future. 30778 38596 * </pre> 30779 */ 30780 public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder> 38597 * 38598 * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> 38599 */ 38600 public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder> 30781 38601 getLocationBuilderList() { 30782 38602 return getLocationFieldBuilder().getBuilderList(); 30783 38603 } 30784 private com.google.protobuf.RepeatedFieldBuilder <30785 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 38604 private com.google.protobuf.RepeatedFieldBuilderV3< 38605 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> 30786 38606 getLocationFieldBuilder() { 30787 38607 if (locationBuilder_ == null) { 30788 locationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>( 38608 locationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 38609 com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder>( 30789 38610 location_, 30790 38611 ((bitField0_ & 0x00000001) == 0x00000001), … … 30795 38616 return locationBuilder_; 30796 38617 } 38618 public final Builder setUnknownFields( 38619 final com.google.protobuf.UnknownFieldSet unknownFields) { 38620 return super.setUnknownFields(unknownFields); 38621 } 38622 38623 public final Builder mergeUnknownFields( 38624 final com.google.protobuf.UnknownFieldSet unknownFields) { 38625 return super.mergeUnknownFields(unknownFields); 38626 } 38627 30797 38628 30798 38629 // @@protoc_insertion_point(builder_scope:google.protobuf.SourceCodeInfo) 30799 38630 } 30800 38631 38632 // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo) 38633 private static final com.google.protobuf.DescriptorProtos.SourceCodeInfo DEFAULT_INSTANCE; 30801 38634 static { 30802 defaultInstance = new SourceCodeInfo(true); 30803 defaultInstance.initFields(); 30804 } 30805 30806 // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo) 38635 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.SourceCodeInfo(); 38636 } 38637 38638 public static com.google.protobuf.DescriptorProtos.SourceCodeInfo getDefaultInstance() { 38639 return DEFAULT_INSTANCE; 38640 } 38641 38642 @java.lang.Deprecated public static final com.google.protobuf.Parser<SourceCodeInfo> 38643 PARSER = new com.google.protobuf.AbstractParser<SourceCodeInfo>() { 38644 public SourceCodeInfo parsePartialFrom( 38645 com.google.protobuf.CodedInputStream input, 38646 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 38647 throws com.google.protobuf.InvalidProtocolBufferException { 38648 return new SourceCodeInfo(input, extensionRegistry); 38649 } 38650 }; 38651 38652 public static com.google.protobuf.Parser<SourceCodeInfo> parser() { 38653 return PARSER; 38654 } 38655 38656 @java.lang.Override 38657 public com.google.protobuf.Parser<SourceCodeInfo> getParserForType() { 38658 return PARSER; 38659 } 38660 38661 public com.google.protobuf.DescriptorProtos.SourceCodeInfo getDefaultInstanceForType() { 38662 return DEFAULT_INSTANCE; 38663 } 38664 38665 } 38666 38667 public interface GeneratedCodeInfoOrBuilder extends 38668 // @@protoc_insertion_point(interface_extends:google.protobuf.GeneratedCodeInfo) 38669 com.google.protobuf.MessageOrBuilder { 38670 38671 /** 38672 * <pre> 38673 * An Annotation connects some span of text in generated code to an element 38674 * of its generating .proto file. 38675 * </pre> 38676 * 38677 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 38678 */ 38679 java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> 38680 getAnnotationList(); 38681 /** 38682 * <pre> 38683 * An Annotation connects some span of text in generated code to an element 38684 * of its generating .proto file. 38685 * </pre> 38686 * 38687 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 38688 */ 38689 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getAnnotation(int index); 38690 /** 38691 * <pre> 38692 * An Annotation connects some span of text in generated code to an element 38693 * of its generating .proto file. 38694 * </pre> 38695 * 38696 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 38697 */ 38698 int getAnnotationCount(); 38699 /** 38700 * <pre> 38701 * An Annotation connects some span of text in generated code to an element 38702 * of its generating .proto file. 38703 * </pre> 38704 * 38705 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 38706 */ 38707 java.util.List<? extends com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> 38708 getAnnotationOrBuilderList(); 38709 /** 38710 * <pre> 38711 * An Annotation connects some span of text in generated code to an element 38712 * of its generating .proto file. 38713 * </pre> 38714 * 38715 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 38716 */ 38717 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder getAnnotationOrBuilder( 38718 int index); 38719 } 38720 /** 38721 * <pre> 38722 * Describes the relationship between generated code and its original source 38723 * file. A GeneratedCodeInfo message is associated with only one generated 38724 * source file, but may contain references to different source .proto files. 38725 * </pre> 38726 * 38727 * Protobuf type {@code google.protobuf.GeneratedCodeInfo} 38728 */ 38729 public static final class GeneratedCodeInfo extends 38730 com.google.protobuf.GeneratedMessageV3 implements 38731 // @@protoc_insertion_point(message_implements:google.protobuf.GeneratedCodeInfo) 38732 GeneratedCodeInfoOrBuilder { 38733 private static final long serialVersionUID = 0L; 38734 // Use GeneratedCodeInfo.newBuilder() to construct. 38735 private GeneratedCodeInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38736 super(builder); 38737 } 38738 private GeneratedCodeInfo() { 38739 annotation_ = java.util.Collections.emptyList(); 38740 } 38741 38742 @java.lang.Override 38743 public final com.google.protobuf.UnknownFieldSet 38744 getUnknownFields() { 38745 return this.unknownFields; 38746 } 38747 private GeneratedCodeInfo( 38748 com.google.protobuf.CodedInputStream input, 38749 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 38750 throws com.google.protobuf.InvalidProtocolBufferException { 38751 this(); 38752 int mutable_bitField0_ = 0; 38753 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 38754 com.google.protobuf.UnknownFieldSet.newBuilder(); 38755 try { 38756 boolean done = false; 38757 while (!done) { 38758 int tag = input.readTag(); 38759 switch (tag) { 38760 case 0: 38761 done = true; 38762 break; 38763 default: { 38764 if (!parseUnknownField( 38765 input, unknownFields, extensionRegistry, tag)) { 38766 done = true; 38767 } 38768 break; 38769 } 38770 case 10: { 38771 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 38772 annotation_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation>(); 38773 mutable_bitField0_ |= 0x00000001; 38774 } 38775 annotation_.add( 38776 input.readMessage(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.PARSER, extensionRegistry)); 38777 break; 38778 } 38779 } 38780 } 38781 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 38782 throw e.setUnfinishedMessage(this); 38783 } catch (java.io.IOException e) { 38784 throw new com.google.protobuf.InvalidProtocolBufferException( 38785 e).setUnfinishedMessage(this); 38786 } finally { 38787 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 38788 annotation_ = java.util.Collections.unmodifiableList(annotation_); 38789 } 38790 this.unknownFields = unknownFields.build(); 38791 makeExtensionsImmutable(); 38792 } 38793 } 38794 public static final com.google.protobuf.Descriptors.Descriptor 38795 getDescriptor() { 38796 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_descriptor; 38797 } 38798 38799 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 38800 internalGetFieldAccessorTable() { 38801 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_fieldAccessorTable 38802 .ensureFieldAccessorsInitialized( 38803 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.class, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Builder.class); 38804 } 38805 38806 public interface AnnotationOrBuilder extends 38807 // @@protoc_insertion_point(interface_extends:google.protobuf.GeneratedCodeInfo.Annotation) 38808 com.google.protobuf.MessageOrBuilder { 38809 38810 /** 38811 * <pre> 38812 * Identifies the element in the original source .proto file. This field 38813 * is formatted the same as SourceCodeInfo.Location.path. 38814 * </pre> 38815 * 38816 * <code>repeated int32 path = 1 [packed = true];</code> 38817 */ 38818 java.util.List<java.lang.Integer> getPathList(); 38819 /** 38820 * <pre> 38821 * Identifies the element in the original source .proto file. This field 38822 * is formatted the same as SourceCodeInfo.Location.path. 38823 * </pre> 38824 * 38825 * <code>repeated int32 path = 1 [packed = true];</code> 38826 */ 38827 int getPathCount(); 38828 /** 38829 * <pre> 38830 * Identifies the element in the original source .proto file. This field 38831 * is formatted the same as SourceCodeInfo.Location.path. 38832 * </pre> 38833 * 38834 * <code>repeated int32 path = 1 [packed = true];</code> 38835 */ 38836 int getPath(int index); 38837 38838 /** 38839 * <pre> 38840 * Identifies the filesystem path to the original source .proto. 38841 * </pre> 38842 * 38843 * <code>optional string source_file = 2;</code> 38844 */ 38845 boolean hasSourceFile(); 38846 /** 38847 * <pre> 38848 * Identifies the filesystem path to the original source .proto. 38849 * </pre> 38850 * 38851 * <code>optional string source_file = 2;</code> 38852 */ 38853 java.lang.String getSourceFile(); 38854 /** 38855 * <pre> 38856 * Identifies the filesystem path to the original source .proto. 38857 * </pre> 38858 * 38859 * <code>optional string source_file = 2;</code> 38860 */ 38861 com.google.protobuf.ByteString 38862 getSourceFileBytes(); 38863 38864 /** 38865 * <pre> 38866 * Identifies the starting offset in bytes in the generated code 38867 * that relates to the identified object. 38868 * </pre> 38869 * 38870 * <code>optional int32 begin = 3;</code> 38871 */ 38872 boolean hasBegin(); 38873 /** 38874 * <pre> 38875 * Identifies the starting offset in bytes in the generated code 38876 * that relates to the identified object. 38877 * </pre> 38878 * 38879 * <code>optional int32 begin = 3;</code> 38880 */ 38881 int getBegin(); 38882 38883 /** 38884 * <pre> 38885 * Identifies the ending offset in bytes in the generated code that 38886 * relates to the identified offset. The end offset should be one past 38887 * the last relevant byte (so the length of the text = end - begin). 38888 * </pre> 38889 * 38890 * <code>optional int32 end = 4;</code> 38891 */ 38892 boolean hasEnd(); 38893 /** 38894 * <pre> 38895 * Identifies the ending offset in bytes in the generated code that 38896 * relates to the identified offset. The end offset should be one past 38897 * the last relevant byte (so the length of the text = end - begin). 38898 * </pre> 38899 * 38900 * <code>optional int32 end = 4;</code> 38901 */ 38902 int getEnd(); 38903 } 38904 /** 38905 * Protobuf type {@code google.protobuf.GeneratedCodeInfo.Annotation} 38906 */ 38907 public static final class Annotation extends 38908 com.google.protobuf.GeneratedMessageV3 implements 38909 // @@protoc_insertion_point(message_implements:google.protobuf.GeneratedCodeInfo.Annotation) 38910 AnnotationOrBuilder { 38911 private static final long serialVersionUID = 0L; 38912 // Use Annotation.newBuilder() to construct. 38913 private Annotation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38914 super(builder); 38915 } 38916 private Annotation() { 38917 path_ = java.util.Collections.emptyList(); 38918 sourceFile_ = ""; 38919 begin_ = 0; 38920 end_ = 0; 38921 } 38922 38923 @java.lang.Override 38924 public final com.google.protobuf.UnknownFieldSet 38925 getUnknownFields() { 38926 return this.unknownFields; 38927 } 38928 private Annotation( 38929 com.google.protobuf.CodedInputStream input, 38930 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 38931 throws com.google.protobuf.InvalidProtocolBufferException { 38932 this(); 38933 int mutable_bitField0_ = 0; 38934 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 38935 com.google.protobuf.UnknownFieldSet.newBuilder(); 38936 try { 38937 boolean done = false; 38938 while (!done) { 38939 int tag = input.readTag(); 38940 switch (tag) { 38941 case 0: 38942 done = true; 38943 break; 38944 default: { 38945 if (!parseUnknownField( 38946 input, unknownFields, extensionRegistry, tag)) { 38947 done = true; 38948 } 38949 break; 38950 } 38951 case 8: { 38952 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 38953 path_ = new java.util.ArrayList<java.lang.Integer>(); 38954 mutable_bitField0_ |= 0x00000001; 38955 } 38956 path_.add(input.readInt32()); 38957 break; 38958 } 38959 case 10: { 38960 int length = input.readRawVarint32(); 38961 int limit = input.pushLimit(length); 38962 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { 38963 path_ = new java.util.ArrayList<java.lang.Integer>(); 38964 mutable_bitField0_ |= 0x00000001; 38965 } 38966 while (input.getBytesUntilLimit() > 0) { 38967 path_.add(input.readInt32()); 38968 } 38969 input.popLimit(limit); 38970 break; 38971 } 38972 case 18: { 38973 com.google.protobuf.ByteString bs = input.readBytes(); 38974 bitField0_ |= 0x00000001; 38975 sourceFile_ = bs; 38976 break; 38977 } 38978 case 24: { 38979 bitField0_ |= 0x00000002; 38980 begin_ = input.readInt32(); 38981 break; 38982 } 38983 case 32: { 38984 bitField0_ |= 0x00000004; 38985 end_ = input.readInt32(); 38986 break; 38987 } 38988 } 38989 } 38990 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 38991 throw e.setUnfinishedMessage(this); 38992 } catch (java.io.IOException e) { 38993 throw new com.google.protobuf.InvalidProtocolBufferException( 38994 e).setUnfinishedMessage(this); 38995 } finally { 38996 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 38997 path_ = java.util.Collections.unmodifiableList(path_); 38998 } 38999 this.unknownFields = unknownFields.build(); 39000 makeExtensionsImmutable(); 39001 } 39002 } 39003 public static final com.google.protobuf.Descriptors.Descriptor 39004 getDescriptor() { 39005 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor; 39006 } 39007 39008 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 39009 internalGetFieldAccessorTable() { 39010 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_Annotation_fieldAccessorTable 39011 .ensureFieldAccessorsInitialized( 39012 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.class, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder.class); 39013 } 39014 39015 private int bitField0_; 39016 public static final int PATH_FIELD_NUMBER = 1; 39017 private java.util.List<java.lang.Integer> path_; 39018 /** 39019 * <pre> 39020 * Identifies the element in the original source .proto file. This field 39021 * is formatted the same as SourceCodeInfo.Location.path. 39022 * </pre> 39023 * 39024 * <code>repeated int32 path = 1 [packed = true];</code> 39025 */ 39026 public java.util.List<java.lang.Integer> 39027 getPathList() { 39028 return path_; 39029 } 39030 /** 39031 * <pre> 39032 * Identifies the element in the original source .proto file. This field 39033 * is formatted the same as SourceCodeInfo.Location.path. 39034 * </pre> 39035 * 39036 * <code>repeated int32 path = 1 [packed = true];</code> 39037 */ 39038 public int getPathCount() { 39039 return path_.size(); 39040 } 39041 /** 39042 * <pre> 39043 * Identifies the element in the original source .proto file. This field 39044 * is formatted the same as SourceCodeInfo.Location.path. 39045 * </pre> 39046 * 39047 * <code>repeated int32 path = 1 [packed = true];</code> 39048 */ 39049 public int getPath(int index) { 39050 return path_.get(index); 39051 } 39052 private int pathMemoizedSerializedSize = -1; 39053 39054 public static final int SOURCE_FILE_FIELD_NUMBER = 2; 39055 private volatile java.lang.Object sourceFile_; 39056 /** 39057 * <pre> 39058 * Identifies the filesystem path to the original source .proto. 39059 * </pre> 39060 * 39061 * <code>optional string source_file = 2;</code> 39062 */ 39063 public boolean hasSourceFile() { 39064 return ((bitField0_ & 0x00000001) == 0x00000001); 39065 } 39066 /** 39067 * <pre> 39068 * Identifies the filesystem path to the original source .proto. 39069 * </pre> 39070 * 39071 * <code>optional string source_file = 2;</code> 39072 */ 39073 public java.lang.String getSourceFile() { 39074 java.lang.Object ref = sourceFile_; 39075 if (ref instanceof java.lang.String) { 39076 return (java.lang.String) ref; 39077 } else { 39078 com.google.protobuf.ByteString bs = 39079 (com.google.protobuf.ByteString) ref; 39080 java.lang.String s = bs.toStringUtf8(); 39081 if (bs.isValidUtf8()) { 39082 sourceFile_ = s; 39083 } 39084 return s; 39085 } 39086 } 39087 /** 39088 * <pre> 39089 * Identifies the filesystem path to the original source .proto. 39090 * </pre> 39091 * 39092 * <code>optional string source_file = 2;</code> 39093 */ 39094 public com.google.protobuf.ByteString 39095 getSourceFileBytes() { 39096 java.lang.Object ref = sourceFile_; 39097 if (ref instanceof java.lang.String) { 39098 com.google.protobuf.ByteString b = 39099 com.google.protobuf.ByteString.copyFromUtf8( 39100 (java.lang.String) ref); 39101 sourceFile_ = b; 39102 return b; 39103 } else { 39104 return (com.google.protobuf.ByteString) ref; 39105 } 39106 } 39107 39108 public static final int BEGIN_FIELD_NUMBER = 3; 39109 private int begin_; 39110 /** 39111 * <pre> 39112 * Identifies the starting offset in bytes in the generated code 39113 * that relates to the identified object. 39114 * </pre> 39115 * 39116 * <code>optional int32 begin = 3;</code> 39117 */ 39118 public boolean hasBegin() { 39119 return ((bitField0_ & 0x00000002) == 0x00000002); 39120 } 39121 /** 39122 * <pre> 39123 * Identifies the starting offset in bytes in the generated code 39124 * that relates to the identified object. 39125 * </pre> 39126 * 39127 * <code>optional int32 begin = 3;</code> 39128 */ 39129 public int getBegin() { 39130 return begin_; 39131 } 39132 39133 public static final int END_FIELD_NUMBER = 4; 39134 private int end_; 39135 /** 39136 * <pre> 39137 * Identifies the ending offset in bytes in the generated code that 39138 * relates to the identified offset. The end offset should be one past 39139 * the last relevant byte (so the length of the text = end - begin). 39140 * </pre> 39141 * 39142 * <code>optional int32 end = 4;</code> 39143 */ 39144 public boolean hasEnd() { 39145 return ((bitField0_ & 0x00000004) == 0x00000004); 39146 } 39147 /** 39148 * <pre> 39149 * Identifies the ending offset in bytes in the generated code that 39150 * relates to the identified offset. The end offset should be one past 39151 * the last relevant byte (so the length of the text = end - begin). 39152 * </pre> 39153 * 39154 * <code>optional int32 end = 4;</code> 39155 */ 39156 public int getEnd() { 39157 return end_; 39158 } 39159 39160 private byte memoizedIsInitialized = -1; 39161 public final boolean isInitialized() { 39162 byte isInitialized = memoizedIsInitialized; 39163 if (isInitialized == 1) return true; 39164 if (isInitialized == 0) return false; 39165 39166 memoizedIsInitialized = 1; 39167 return true; 39168 } 39169 39170 public void writeTo(com.google.protobuf.CodedOutputStream output) 39171 throws java.io.IOException { 39172 getSerializedSize(); 39173 if (getPathList().size() > 0) { 39174 output.writeUInt32NoTag(10); 39175 output.writeUInt32NoTag(pathMemoizedSerializedSize); 39176 } 39177 for (int i = 0; i < path_.size(); i++) { 39178 output.writeInt32NoTag(path_.get(i)); 39179 } 39180 if (((bitField0_ & 0x00000001) == 0x00000001)) { 39181 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceFile_); 39182 } 39183 if (((bitField0_ & 0x00000002) == 0x00000002)) { 39184 output.writeInt32(3, begin_); 39185 } 39186 if (((bitField0_ & 0x00000004) == 0x00000004)) { 39187 output.writeInt32(4, end_); 39188 } 39189 unknownFields.writeTo(output); 39190 } 39191 39192 public int getSerializedSize() { 39193 int size = memoizedSize; 39194 if (size != -1) return size; 39195 39196 size = 0; 39197 { 39198 int dataSize = 0; 39199 for (int i = 0; i < path_.size(); i++) { 39200 dataSize += com.google.protobuf.CodedOutputStream 39201 .computeInt32SizeNoTag(path_.get(i)); 39202 } 39203 size += dataSize; 39204 if (!getPathList().isEmpty()) { 39205 size += 1; 39206 size += com.google.protobuf.CodedOutputStream 39207 .computeInt32SizeNoTag(dataSize); 39208 } 39209 pathMemoizedSerializedSize = dataSize; 39210 } 39211 if (((bitField0_ & 0x00000001) == 0x00000001)) { 39212 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceFile_); 39213 } 39214 if (((bitField0_ & 0x00000002) == 0x00000002)) { 39215 size += com.google.protobuf.CodedOutputStream 39216 .computeInt32Size(3, begin_); 39217 } 39218 if (((bitField0_ & 0x00000004) == 0x00000004)) { 39219 size += com.google.protobuf.CodedOutputStream 39220 .computeInt32Size(4, end_); 39221 } 39222 size += unknownFields.getSerializedSize(); 39223 memoizedSize = size; 39224 return size; 39225 } 39226 39227 @java.lang.Override 39228 public boolean equals(final java.lang.Object obj) { 39229 if (obj == this) { 39230 return true; 39231 } 39232 if (!(obj instanceof com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation)) { 39233 return super.equals(obj); 39234 } 39235 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation other = (com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation) obj; 39236 39237 boolean result = true; 39238 result = result && getPathList() 39239 .equals(other.getPathList()); 39240 result = result && (hasSourceFile() == other.hasSourceFile()); 39241 if (hasSourceFile()) { 39242 result = result && getSourceFile() 39243 .equals(other.getSourceFile()); 39244 } 39245 result = result && (hasBegin() == other.hasBegin()); 39246 if (hasBegin()) { 39247 result = result && (getBegin() 39248 == other.getBegin()); 39249 } 39250 result = result && (hasEnd() == other.hasEnd()); 39251 if (hasEnd()) { 39252 result = result && (getEnd() 39253 == other.getEnd()); 39254 } 39255 result = result && unknownFields.equals(other.unknownFields); 39256 return result; 39257 } 39258 39259 @java.lang.Override 39260 public int hashCode() { 39261 if (memoizedHashCode != 0) { 39262 return memoizedHashCode; 39263 } 39264 int hash = 41; 39265 hash = (19 * hash) + getDescriptor().hashCode(); 39266 if (getPathCount() > 0) { 39267 hash = (37 * hash) + PATH_FIELD_NUMBER; 39268 hash = (53 * hash) + getPathList().hashCode(); 39269 } 39270 if (hasSourceFile()) { 39271 hash = (37 * hash) + SOURCE_FILE_FIELD_NUMBER; 39272 hash = (53 * hash) + getSourceFile().hashCode(); 39273 } 39274 if (hasBegin()) { 39275 hash = (37 * hash) + BEGIN_FIELD_NUMBER; 39276 hash = (53 * hash) + getBegin(); 39277 } 39278 if (hasEnd()) { 39279 hash = (37 * hash) + END_FIELD_NUMBER; 39280 hash = (53 * hash) + getEnd(); 39281 } 39282 hash = (29 * hash) + unknownFields.hashCode(); 39283 memoizedHashCode = hash; 39284 return hash; 39285 } 39286 39287 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( 39288 java.nio.ByteBuffer data) 39289 throws com.google.protobuf.InvalidProtocolBufferException { 39290 return PARSER.parseFrom(data); 39291 } 39292 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( 39293 java.nio.ByteBuffer data, 39294 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 39295 throws com.google.protobuf.InvalidProtocolBufferException { 39296 return PARSER.parseFrom(data, extensionRegistry); 39297 } 39298 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( 39299 com.google.protobuf.ByteString data) 39300 throws com.google.protobuf.InvalidProtocolBufferException { 39301 return PARSER.parseFrom(data); 39302 } 39303 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( 39304 com.google.protobuf.ByteString data, 39305 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 39306 throws com.google.protobuf.InvalidProtocolBufferException { 39307 return PARSER.parseFrom(data, extensionRegistry); 39308 } 39309 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(byte[] data) 39310 throws com.google.protobuf.InvalidProtocolBufferException { 39311 return PARSER.parseFrom(data); 39312 } 39313 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( 39314 byte[] data, 39315 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 39316 throws com.google.protobuf.InvalidProtocolBufferException { 39317 return PARSER.parseFrom(data, extensionRegistry); 39318 } 39319 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(java.io.InputStream input) 39320 throws java.io.IOException { 39321 return com.google.protobuf.GeneratedMessageV3 39322 .parseWithIOException(PARSER, input); 39323 } 39324 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( 39325 java.io.InputStream input, 39326 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 39327 throws java.io.IOException { 39328 return com.google.protobuf.GeneratedMessageV3 39329 .parseWithIOException(PARSER, input, extensionRegistry); 39330 } 39331 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseDelimitedFrom(java.io.InputStream input) 39332 throws java.io.IOException { 39333 return com.google.protobuf.GeneratedMessageV3 39334 .parseDelimitedWithIOException(PARSER, input); 39335 } 39336 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseDelimitedFrom( 39337 java.io.InputStream input, 39338 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 39339 throws java.io.IOException { 39340 return com.google.protobuf.GeneratedMessageV3 39341 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 39342 } 39343 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( 39344 com.google.protobuf.CodedInputStream input) 39345 throws java.io.IOException { 39346 return com.google.protobuf.GeneratedMessageV3 39347 .parseWithIOException(PARSER, input); 39348 } 39349 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom( 39350 com.google.protobuf.CodedInputStream input, 39351 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 39352 throws java.io.IOException { 39353 return com.google.protobuf.GeneratedMessageV3 39354 .parseWithIOException(PARSER, input, extensionRegistry); 39355 } 39356 39357 public Builder newBuilderForType() { return newBuilder(); } 39358 public static Builder newBuilder() { 39359 return DEFAULT_INSTANCE.toBuilder(); 39360 } 39361 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation prototype) { 39362 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 39363 } 39364 public Builder toBuilder() { 39365 return this == DEFAULT_INSTANCE 39366 ? new Builder() : new Builder().mergeFrom(this); 39367 } 39368 39369 @java.lang.Override 39370 protected Builder newBuilderForType( 39371 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 39372 Builder builder = new Builder(parent); 39373 return builder; 39374 } 39375 /** 39376 * Protobuf type {@code google.protobuf.GeneratedCodeInfo.Annotation} 39377 */ 39378 public static final class Builder extends 39379 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 39380 // @@protoc_insertion_point(builder_implements:google.protobuf.GeneratedCodeInfo.Annotation) 39381 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder { 39382 public static final com.google.protobuf.Descriptors.Descriptor 39383 getDescriptor() { 39384 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor; 39385 } 39386 39387 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 39388 internalGetFieldAccessorTable() { 39389 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_Annotation_fieldAccessorTable 39390 .ensureFieldAccessorsInitialized( 39391 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.class, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder.class); 39392 } 39393 39394 // Construct using com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.newBuilder() 39395 private Builder() { 39396 maybeForceBuilderInitialization(); 39397 } 39398 39399 private Builder( 39400 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 39401 super(parent); 39402 maybeForceBuilderInitialization(); 39403 } 39404 private void maybeForceBuilderInitialization() { 39405 if (com.google.protobuf.GeneratedMessageV3 39406 .alwaysUseFieldBuilders) { 39407 } 39408 } 39409 public Builder clear() { 39410 super.clear(); 39411 path_ = java.util.Collections.emptyList(); 39412 bitField0_ = (bitField0_ & ~0x00000001); 39413 sourceFile_ = ""; 39414 bitField0_ = (bitField0_ & ~0x00000002); 39415 begin_ = 0; 39416 bitField0_ = (bitField0_ & ~0x00000004); 39417 end_ = 0; 39418 bitField0_ = (bitField0_ & ~0x00000008); 39419 return this; 39420 } 39421 39422 public com.google.protobuf.Descriptors.Descriptor 39423 getDescriptorForType() { 39424 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor; 39425 } 39426 39427 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstanceForType() { 39428 return com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.getDefaultInstance(); 39429 } 39430 39431 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation build() { 39432 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation result = buildPartial(); 39433 if (!result.isInitialized()) { 39434 throw newUninitializedMessageException(result); 39435 } 39436 return result; 39437 } 39438 39439 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation buildPartial() { 39440 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation result = new com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation(this); 39441 int from_bitField0_ = bitField0_; 39442 int to_bitField0_ = 0; 39443 if (((bitField0_ & 0x00000001) == 0x00000001)) { 39444 path_ = java.util.Collections.unmodifiableList(path_); 39445 bitField0_ = (bitField0_ & ~0x00000001); 39446 } 39447 result.path_ = path_; 39448 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 39449 to_bitField0_ |= 0x00000001; 39450 } 39451 result.sourceFile_ = sourceFile_; 39452 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 39453 to_bitField0_ |= 0x00000002; 39454 } 39455 result.begin_ = begin_; 39456 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 39457 to_bitField0_ |= 0x00000004; 39458 } 39459 result.end_ = end_; 39460 result.bitField0_ = to_bitField0_; 39461 onBuilt(); 39462 return result; 39463 } 39464 39465 public Builder clone() { 39466 return (Builder) super.clone(); 39467 } 39468 public Builder setField( 39469 com.google.protobuf.Descriptors.FieldDescriptor field, 39470 java.lang.Object value) { 39471 return (Builder) super.setField(field, value); 39472 } 39473 public Builder clearField( 39474 com.google.protobuf.Descriptors.FieldDescriptor field) { 39475 return (Builder) super.clearField(field); 39476 } 39477 public Builder clearOneof( 39478 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 39479 return (Builder) super.clearOneof(oneof); 39480 } 39481 public Builder setRepeatedField( 39482 com.google.protobuf.Descriptors.FieldDescriptor field, 39483 int index, java.lang.Object value) { 39484 return (Builder) super.setRepeatedField(field, index, value); 39485 } 39486 public Builder addRepeatedField( 39487 com.google.protobuf.Descriptors.FieldDescriptor field, 39488 java.lang.Object value) { 39489 return (Builder) super.addRepeatedField(field, value); 39490 } 39491 public Builder mergeFrom(com.google.protobuf.Message other) { 39492 if (other instanceof com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation) { 39493 return mergeFrom((com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation)other); 39494 } else { 39495 super.mergeFrom(other); 39496 return this; 39497 } 39498 } 39499 39500 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation other) { 39501 if (other == com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.getDefaultInstance()) return this; 39502 if (!other.path_.isEmpty()) { 39503 if (path_.isEmpty()) { 39504 path_ = other.path_; 39505 bitField0_ = (bitField0_ & ~0x00000001); 39506 } else { 39507 ensurePathIsMutable(); 39508 path_.addAll(other.path_); 39509 } 39510 onChanged(); 39511 } 39512 if (other.hasSourceFile()) { 39513 bitField0_ |= 0x00000002; 39514 sourceFile_ = other.sourceFile_; 39515 onChanged(); 39516 } 39517 if (other.hasBegin()) { 39518 setBegin(other.getBegin()); 39519 } 39520 if (other.hasEnd()) { 39521 setEnd(other.getEnd()); 39522 } 39523 this.mergeUnknownFields(other.unknownFields); 39524 onChanged(); 39525 return this; 39526 } 39527 39528 public final boolean isInitialized() { 39529 return true; 39530 } 39531 39532 public Builder mergeFrom( 39533 com.google.protobuf.CodedInputStream input, 39534 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 39535 throws java.io.IOException { 39536 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation parsedMessage = null; 39537 try { 39538 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 39539 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 39540 parsedMessage = (com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation) e.getUnfinishedMessage(); 39541 throw e.unwrapIOException(); 39542 } finally { 39543 if (parsedMessage != null) { 39544 mergeFrom(parsedMessage); 39545 } 39546 } 39547 return this; 39548 } 39549 private int bitField0_; 39550 39551 private java.util.List<java.lang.Integer> path_ = java.util.Collections.emptyList(); 39552 private void ensurePathIsMutable() { 39553 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 39554 path_ = new java.util.ArrayList<java.lang.Integer>(path_); 39555 bitField0_ |= 0x00000001; 39556 } 39557 } 39558 /** 39559 * <pre> 39560 * Identifies the element in the original source .proto file. This field 39561 * is formatted the same as SourceCodeInfo.Location.path. 39562 * </pre> 39563 * 39564 * <code>repeated int32 path = 1 [packed = true];</code> 39565 */ 39566 public java.util.List<java.lang.Integer> 39567 getPathList() { 39568 return java.util.Collections.unmodifiableList(path_); 39569 } 39570 /** 39571 * <pre> 39572 * Identifies the element in the original source .proto file. This field 39573 * is formatted the same as SourceCodeInfo.Location.path. 39574 * </pre> 39575 * 39576 * <code>repeated int32 path = 1 [packed = true];</code> 39577 */ 39578 public int getPathCount() { 39579 return path_.size(); 39580 } 39581 /** 39582 * <pre> 39583 * Identifies the element in the original source .proto file. This field 39584 * is formatted the same as SourceCodeInfo.Location.path. 39585 * </pre> 39586 * 39587 * <code>repeated int32 path = 1 [packed = true];</code> 39588 */ 39589 public int getPath(int index) { 39590 return path_.get(index); 39591 } 39592 /** 39593 * <pre> 39594 * Identifies the element in the original source .proto file. This field 39595 * is formatted the same as SourceCodeInfo.Location.path. 39596 * </pre> 39597 * 39598 * <code>repeated int32 path = 1 [packed = true];</code> 39599 */ 39600 public Builder setPath( 39601 int index, int value) { 39602 ensurePathIsMutable(); 39603 path_.set(index, value); 39604 onChanged(); 39605 return this; 39606 } 39607 /** 39608 * <pre> 39609 * Identifies the element in the original source .proto file. This field 39610 * is formatted the same as SourceCodeInfo.Location.path. 39611 * </pre> 39612 * 39613 * <code>repeated int32 path = 1 [packed = true];</code> 39614 */ 39615 public Builder addPath(int value) { 39616 ensurePathIsMutable(); 39617 path_.add(value); 39618 onChanged(); 39619 return this; 39620 } 39621 /** 39622 * <pre> 39623 * Identifies the element in the original source .proto file. This field 39624 * is formatted the same as SourceCodeInfo.Location.path. 39625 * </pre> 39626 * 39627 * <code>repeated int32 path = 1 [packed = true];</code> 39628 */ 39629 public Builder addAllPath( 39630 java.lang.Iterable<? extends java.lang.Integer> values) { 39631 ensurePathIsMutable(); 39632 com.google.protobuf.AbstractMessageLite.Builder.addAll( 39633 values, path_); 39634 onChanged(); 39635 return this; 39636 } 39637 /** 39638 * <pre> 39639 * Identifies the element in the original source .proto file. This field 39640 * is formatted the same as SourceCodeInfo.Location.path. 39641 * </pre> 39642 * 39643 * <code>repeated int32 path = 1 [packed = true];</code> 39644 */ 39645 public Builder clearPath() { 39646 path_ = java.util.Collections.emptyList(); 39647 bitField0_ = (bitField0_ & ~0x00000001); 39648 onChanged(); 39649 return this; 39650 } 39651 39652 private java.lang.Object sourceFile_ = ""; 39653 /** 39654 * <pre> 39655 * Identifies the filesystem path to the original source .proto. 39656 * </pre> 39657 * 39658 * <code>optional string source_file = 2;</code> 39659 */ 39660 public boolean hasSourceFile() { 39661 return ((bitField0_ & 0x00000002) == 0x00000002); 39662 } 39663 /** 39664 * <pre> 39665 * Identifies the filesystem path to the original source .proto. 39666 * </pre> 39667 * 39668 * <code>optional string source_file = 2;</code> 39669 */ 39670 public java.lang.String getSourceFile() { 39671 java.lang.Object ref = sourceFile_; 39672 if (!(ref instanceof java.lang.String)) { 39673 com.google.protobuf.ByteString bs = 39674 (com.google.protobuf.ByteString) ref; 39675 java.lang.String s = bs.toStringUtf8(); 39676 if (bs.isValidUtf8()) { 39677 sourceFile_ = s; 39678 } 39679 return s; 39680 } else { 39681 return (java.lang.String) ref; 39682 } 39683 } 39684 /** 39685 * <pre> 39686 * Identifies the filesystem path to the original source .proto. 39687 * </pre> 39688 * 39689 * <code>optional string source_file = 2;</code> 39690 */ 39691 public com.google.protobuf.ByteString 39692 getSourceFileBytes() { 39693 java.lang.Object ref = sourceFile_; 39694 if (ref instanceof String) { 39695 com.google.protobuf.ByteString b = 39696 com.google.protobuf.ByteString.copyFromUtf8( 39697 (java.lang.String) ref); 39698 sourceFile_ = b; 39699 return b; 39700 } else { 39701 return (com.google.protobuf.ByteString) ref; 39702 } 39703 } 39704 /** 39705 * <pre> 39706 * Identifies the filesystem path to the original source .proto. 39707 * </pre> 39708 * 39709 * <code>optional string source_file = 2;</code> 39710 */ 39711 public Builder setSourceFile( 39712 java.lang.String value) { 39713 if (value == null) { 39714 throw new NullPointerException(); 39715 } 39716 bitField0_ |= 0x00000002; 39717 sourceFile_ = value; 39718 onChanged(); 39719 return this; 39720 } 39721 /** 39722 * <pre> 39723 * Identifies the filesystem path to the original source .proto. 39724 * </pre> 39725 * 39726 * <code>optional string source_file = 2;</code> 39727 */ 39728 public Builder clearSourceFile() { 39729 bitField0_ = (bitField0_ & ~0x00000002); 39730 sourceFile_ = getDefaultInstance().getSourceFile(); 39731 onChanged(); 39732 return this; 39733 } 39734 /** 39735 * <pre> 39736 * Identifies the filesystem path to the original source .proto. 39737 * </pre> 39738 * 39739 * <code>optional string source_file = 2;</code> 39740 */ 39741 public Builder setSourceFileBytes( 39742 com.google.protobuf.ByteString value) { 39743 if (value == null) { 39744 throw new NullPointerException(); 39745 } 39746 bitField0_ |= 0x00000002; 39747 sourceFile_ = value; 39748 onChanged(); 39749 return this; 39750 } 39751 39752 private int begin_ ; 39753 /** 39754 * <pre> 39755 * Identifies the starting offset in bytes in the generated code 39756 * that relates to the identified object. 39757 * </pre> 39758 * 39759 * <code>optional int32 begin = 3;</code> 39760 */ 39761 public boolean hasBegin() { 39762 return ((bitField0_ & 0x00000004) == 0x00000004); 39763 } 39764 /** 39765 * <pre> 39766 * Identifies the starting offset in bytes in the generated code 39767 * that relates to the identified object. 39768 * </pre> 39769 * 39770 * <code>optional int32 begin = 3;</code> 39771 */ 39772 public int getBegin() { 39773 return begin_; 39774 } 39775 /** 39776 * <pre> 39777 * Identifies the starting offset in bytes in the generated code 39778 * that relates to the identified object. 39779 * </pre> 39780 * 39781 * <code>optional int32 begin = 3;</code> 39782 */ 39783 public Builder setBegin(int value) { 39784 bitField0_ |= 0x00000004; 39785 begin_ = value; 39786 onChanged(); 39787 return this; 39788 } 39789 /** 39790 * <pre> 39791 * Identifies the starting offset in bytes in the generated code 39792 * that relates to the identified object. 39793 * </pre> 39794 * 39795 * <code>optional int32 begin = 3;</code> 39796 */ 39797 public Builder clearBegin() { 39798 bitField0_ = (bitField0_ & ~0x00000004); 39799 begin_ = 0; 39800 onChanged(); 39801 return this; 39802 } 39803 39804 private int end_ ; 39805 /** 39806 * <pre> 39807 * Identifies the ending offset in bytes in the generated code that 39808 * relates to the identified offset. The end offset should be one past 39809 * the last relevant byte (so the length of the text = end - begin). 39810 * </pre> 39811 * 39812 * <code>optional int32 end = 4;</code> 39813 */ 39814 public boolean hasEnd() { 39815 return ((bitField0_ & 0x00000008) == 0x00000008); 39816 } 39817 /** 39818 * <pre> 39819 * Identifies the ending offset in bytes in the generated code that 39820 * relates to the identified offset. The end offset should be one past 39821 * the last relevant byte (so the length of the text = end - begin). 39822 * </pre> 39823 * 39824 * <code>optional int32 end = 4;</code> 39825 */ 39826 public int getEnd() { 39827 return end_; 39828 } 39829 /** 39830 * <pre> 39831 * Identifies the ending offset in bytes in the generated code that 39832 * relates to the identified offset. The end offset should be one past 39833 * the last relevant byte (so the length of the text = end - begin). 39834 * </pre> 39835 * 39836 * <code>optional int32 end = 4;</code> 39837 */ 39838 public Builder setEnd(int value) { 39839 bitField0_ |= 0x00000008; 39840 end_ = value; 39841 onChanged(); 39842 return this; 39843 } 39844 /** 39845 * <pre> 39846 * Identifies the ending offset in bytes in the generated code that 39847 * relates to the identified offset. The end offset should be one past 39848 * the last relevant byte (so the length of the text = end - begin). 39849 * </pre> 39850 * 39851 * <code>optional int32 end = 4;</code> 39852 */ 39853 public Builder clearEnd() { 39854 bitField0_ = (bitField0_ & ~0x00000008); 39855 end_ = 0; 39856 onChanged(); 39857 return this; 39858 } 39859 public final Builder setUnknownFields( 39860 final com.google.protobuf.UnknownFieldSet unknownFields) { 39861 return super.setUnknownFields(unknownFields); 39862 } 39863 39864 public final Builder mergeUnknownFields( 39865 final com.google.protobuf.UnknownFieldSet unknownFields) { 39866 return super.mergeUnknownFields(unknownFields); 39867 } 39868 39869 39870 // @@protoc_insertion_point(builder_scope:google.protobuf.GeneratedCodeInfo.Annotation) 39871 } 39872 39873 // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo.Annotation) 39874 private static final com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation DEFAULT_INSTANCE; 39875 static { 39876 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation(); 39877 } 39878 39879 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstance() { 39880 return DEFAULT_INSTANCE; 39881 } 39882 39883 @java.lang.Deprecated public static final com.google.protobuf.Parser<Annotation> 39884 PARSER = new com.google.protobuf.AbstractParser<Annotation>() { 39885 public Annotation parsePartialFrom( 39886 com.google.protobuf.CodedInputStream input, 39887 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 39888 throws com.google.protobuf.InvalidProtocolBufferException { 39889 return new Annotation(input, extensionRegistry); 39890 } 39891 }; 39892 39893 public static com.google.protobuf.Parser<Annotation> parser() { 39894 return PARSER; 39895 } 39896 39897 @java.lang.Override 39898 public com.google.protobuf.Parser<Annotation> getParserForType() { 39899 return PARSER; 39900 } 39901 39902 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstanceForType() { 39903 return DEFAULT_INSTANCE; 39904 } 39905 39906 } 39907 39908 public static final int ANNOTATION_FIELD_NUMBER = 1; 39909 private java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> annotation_; 39910 /** 39911 * <pre> 39912 * An Annotation connects some span of text in generated code to an element 39913 * of its generating .proto file. 39914 * </pre> 39915 * 39916 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 39917 */ 39918 public java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> getAnnotationList() { 39919 return annotation_; 39920 } 39921 /** 39922 * <pre> 39923 * An Annotation connects some span of text in generated code to an element 39924 * of its generating .proto file. 39925 * </pre> 39926 * 39927 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 39928 */ 39929 public java.util.List<? extends com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> 39930 getAnnotationOrBuilderList() { 39931 return annotation_; 39932 } 39933 /** 39934 * <pre> 39935 * An Annotation connects some span of text in generated code to an element 39936 * of its generating .proto file. 39937 * </pre> 39938 * 39939 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 39940 */ 39941 public int getAnnotationCount() { 39942 return annotation_.size(); 39943 } 39944 /** 39945 * <pre> 39946 * An Annotation connects some span of text in generated code to an element 39947 * of its generating .proto file. 39948 * </pre> 39949 * 39950 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 39951 */ 39952 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getAnnotation(int index) { 39953 return annotation_.get(index); 39954 } 39955 /** 39956 * <pre> 39957 * An Annotation connects some span of text in generated code to an element 39958 * of its generating .proto file. 39959 * </pre> 39960 * 39961 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 39962 */ 39963 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder getAnnotationOrBuilder( 39964 int index) { 39965 return annotation_.get(index); 39966 } 39967 39968 private byte memoizedIsInitialized = -1; 39969 public final boolean isInitialized() { 39970 byte isInitialized = memoizedIsInitialized; 39971 if (isInitialized == 1) return true; 39972 if (isInitialized == 0) return false; 39973 39974 memoizedIsInitialized = 1; 39975 return true; 39976 } 39977 39978 public void writeTo(com.google.protobuf.CodedOutputStream output) 39979 throws java.io.IOException { 39980 for (int i = 0; i < annotation_.size(); i++) { 39981 output.writeMessage(1, annotation_.get(i)); 39982 } 39983 unknownFields.writeTo(output); 39984 } 39985 39986 public int getSerializedSize() { 39987 int size = memoizedSize; 39988 if (size != -1) return size; 39989 39990 size = 0; 39991 for (int i = 0; i < annotation_.size(); i++) { 39992 size += com.google.protobuf.CodedOutputStream 39993 .computeMessageSize(1, annotation_.get(i)); 39994 } 39995 size += unknownFields.getSerializedSize(); 39996 memoizedSize = size; 39997 return size; 39998 } 39999 40000 @java.lang.Override 40001 public boolean equals(final java.lang.Object obj) { 40002 if (obj == this) { 40003 return true; 40004 } 40005 if (!(obj instanceof com.google.protobuf.DescriptorProtos.GeneratedCodeInfo)) { 40006 return super.equals(obj); 40007 } 40008 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo other = (com.google.protobuf.DescriptorProtos.GeneratedCodeInfo) obj; 40009 40010 boolean result = true; 40011 result = result && getAnnotationList() 40012 .equals(other.getAnnotationList()); 40013 result = result && unknownFields.equals(other.unknownFields); 40014 return result; 40015 } 40016 40017 @java.lang.Override 40018 public int hashCode() { 40019 if (memoizedHashCode != 0) { 40020 return memoizedHashCode; 40021 } 40022 int hash = 41; 40023 hash = (19 * hash) + getDescriptor().hashCode(); 40024 if (getAnnotationCount() > 0) { 40025 hash = (37 * hash) + ANNOTATION_FIELD_NUMBER; 40026 hash = (53 * hash) + getAnnotationList().hashCode(); 40027 } 40028 hash = (29 * hash) + unknownFields.hashCode(); 40029 memoizedHashCode = hash; 40030 return hash; 40031 } 40032 40033 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( 40034 java.nio.ByteBuffer data) 40035 throws com.google.protobuf.InvalidProtocolBufferException { 40036 return PARSER.parseFrom(data); 40037 } 40038 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( 40039 java.nio.ByteBuffer data, 40040 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 40041 throws com.google.protobuf.InvalidProtocolBufferException { 40042 return PARSER.parseFrom(data, extensionRegistry); 40043 } 40044 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( 40045 com.google.protobuf.ByteString data) 40046 throws com.google.protobuf.InvalidProtocolBufferException { 40047 return PARSER.parseFrom(data); 40048 } 40049 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( 40050 com.google.protobuf.ByteString data, 40051 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 40052 throws com.google.protobuf.InvalidProtocolBufferException { 40053 return PARSER.parseFrom(data, extensionRegistry); 40054 } 40055 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom(byte[] data) 40056 throws com.google.protobuf.InvalidProtocolBufferException { 40057 return PARSER.parseFrom(data); 40058 } 40059 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( 40060 byte[] data, 40061 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 40062 throws com.google.protobuf.InvalidProtocolBufferException { 40063 return PARSER.parseFrom(data, extensionRegistry); 40064 } 40065 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom(java.io.InputStream input) 40066 throws java.io.IOException { 40067 return com.google.protobuf.GeneratedMessageV3 40068 .parseWithIOException(PARSER, input); 40069 } 40070 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( 40071 java.io.InputStream input, 40072 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 40073 throws java.io.IOException { 40074 return com.google.protobuf.GeneratedMessageV3 40075 .parseWithIOException(PARSER, input, extensionRegistry); 40076 } 40077 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseDelimitedFrom(java.io.InputStream input) 40078 throws java.io.IOException { 40079 return com.google.protobuf.GeneratedMessageV3 40080 .parseDelimitedWithIOException(PARSER, input); 40081 } 40082 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseDelimitedFrom( 40083 java.io.InputStream input, 40084 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 40085 throws java.io.IOException { 40086 return com.google.protobuf.GeneratedMessageV3 40087 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 40088 } 40089 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( 40090 com.google.protobuf.CodedInputStream input) 40091 throws java.io.IOException { 40092 return com.google.protobuf.GeneratedMessageV3 40093 .parseWithIOException(PARSER, input); 40094 } 40095 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parseFrom( 40096 com.google.protobuf.CodedInputStream input, 40097 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 40098 throws java.io.IOException { 40099 return com.google.protobuf.GeneratedMessageV3 40100 .parseWithIOException(PARSER, input, extensionRegistry); 40101 } 40102 40103 public Builder newBuilderForType() { return newBuilder(); } 40104 public static Builder newBuilder() { 40105 return DEFAULT_INSTANCE.toBuilder(); 40106 } 40107 public static Builder newBuilder(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo prototype) { 40108 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 40109 } 40110 public Builder toBuilder() { 40111 return this == DEFAULT_INSTANCE 40112 ? new Builder() : new Builder().mergeFrom(this); 40113 } 40114 40115 @java.lang.Override 40116 protected Builder newBuilderForType( 40117 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 40118 Builder builder = new Builder(parent); 40119 return builder; 40120 } 40121 /** 40122 * <pre> 40123 * Describes the relationship between generated code and its original source 40124 * file. A GeneratedCodeInfo message is associated with only one generated 40125 * source file, but may contain references to different source .proto files. 40126 * </pre> 40127 * 40128 * Protobuf type {@code google.protobuf.GeneratedCodeInfo} 40129 */ 40130 public static final class Builder extends 40131 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 40132 // @@protoc_insertion_point(builder_implements:google.protobuf.GeneratedCodeInfo) 40133 com.google.protobuf.DescriptorProtos.GeneratedCodeInfoOrBuilder { 40134 public static final com.google.protobuf.Descriptors.Descriptor 40135 getDescriptor() { 40136 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_descriptor; 40137 } 40138 40139 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 40140 internalGetFieldAccessorTable() { 40141 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_fieldAccessorTable 40142 .ensureFieldAccessorsInitialized( 40143 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.class, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Builder.class); 40144 } 40145 40146 // Construct using com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.newBuilder() 40147 private Builder() { 40148 maybeForceBuilderInitialization(); 40149 } 40150 40151 private Builder( 40152 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 40153 super(parent); 40154 maybeForceBuilderInitialization(); 40155 } 40156 private void maybeForceBuilderInitialization() { 40157 if (com.google.protobuf.GeneratedMessageV3 40158 .alwaysUseFieldBuilders) { 40159 getAnnotationFieldBuilder(); 40160 } 40161 } 40162 public Builder clear() { 40163 super.clear(); 40164 if (annotationBuilder_ == null) { 40165 annotation_ = java.util.Collections.emptyList(); 40166 bitField0_ = (bitField0_ & ~0x00000001); 40167 } else { 40168 annotationBuilder_.clear(); 40169 } 40170 return this; 40171 } 40172 40173 public com.google.protobuf.Descriptors.Descriptor 40174 getDescriptorForType() { 40175 return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_GeneratedCodeInfo_descriptor; 40176 } 40177 40178 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo getDefaultInstanceForType() { 40179 return com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.getDefaultInstance(); 40180 } 40181 40182 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo build() { 40183 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo result = buildPartial(); 40184 if (!result.isInitialized()) { 40185 throw newUninitializedMessageException(result); 40186 } 40187 return result; 40188 } 40189 40190 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo buildPartial() { 40191 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo result = new com.google.protobuf.DescriptorProtos.GeneratedCodeInfo(this); 40192 int from_bitField0_ = bitField0_; 40193 if (annotationBuilder_ == null) { 40194 if (((bitField0_ & 0x00000001) == 0x00000001)) { 40195 annotation_ = java.util.Collections.unmodifiableList(annotation_); 40196 bitField0_ = (bitField0_ & ~0x00000001); 40197 } 40198 result.annotation_ = annotation_; 40199 } else { 40200 result.annotation_ = annotationBuilder_.build(); 40201 } 40202 onBuilt(); 40203 return result; 40204 } 40205 40206 public Builder clone() { 40207 return (Builder) super.clone(); 40208 } 40209 public Builder setField( 40210 com.google.protobuf.Descriptors.FieldDescriptor field, 40211 java.lang.Object value) { 40212 return (Builder) super.setField(field, value); 40213 } 40214 public Builder clearField( 40215 com.google.protobuf.Descriptors.FieldDescriptor field) { 40216 return (Builder) super.clearField(field); 40217 } 40218 public Builder clearOneof( 40219 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 40220 return (Builder) super.clearOneof(oneof); 40221 } 40222 public Builder setRepeatedField( 40223 com.google.protobuf.Descriptors.FieldDescriptor field, 40224 int index, java.lang.Object value) { 40225 return (Builder) super.setRepeatedField(field, index, value); 40226 } 40227 public Builder addRepeatedField( 40228 com.google.protobuf.Descriptors.FieldDescriptor field, 40229 java.lang.Object value) { 40230 return (Builder) super.addRepeatedField(field, value); 40231 } 40232 public Builder mergeFrom(com.google.protobuf.Message other) { 40233 if (other instanceof com.google.protobuf.DescriptorProtos.GeneratedCodeInfo) { 40234 return mergeFrom((com.google.protobuf.DescriptorProtos.GeneratedCodeInfo)other); 40235 } else { 40236 super.mergeFrom(other); 40237 return this; 40238 } 40239 } 40240 40241 public Builder mergeFrom(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo other) { 40242 if (other == com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.getDefaultInstance()) return this; 40243 if (annotationBuilder_ == null) { 40244 if (!other.annotation_.isEmpty()) { 40245 if (annotation_.isEmpty()) { 40246 annotation_ = other.annotation_; 40247 bitField0_ = (bitField0_ & ~0x00000001); 40248 } else { 40249 ensureAnnotationIsMutable(); 40250 annotation_.addAll(other.annotation_); 40251 } 40252 onChanged(); 40253 } 40254 } else { 40255 if (!other.annotation_.isEmpty()) { 40256 if (annotationBuilder_.isEmpty()) { 40257 annotationBuilder_.dispose(); 40258 annotationBuilder_ = null; 40259 annotation_ = other.annotation_; 40260 bitField0_ = (bitField0_ & ~0x00000001); 40261 annotationBuilder_ = 40262 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 40263 getAnnotationFieldBuilder() : null; 40264 } else { 40265 annotationBuilder_.addAllMessages(other.annotation_); 40266 } 40267 } 40268 } 40269 this.mergeUnknownFields(other.unknownFields); 40270 onChanged(); 40271 return this; 40272 } 40273 40274 public final boolean isInitialized() { 40275 return true; 40276 } 40277 40278 public Builder mergeFrom( 40279 com.google.protobuf.CodedInputStream input, 40280 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 40281 throws java.io.IOException { 40282 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo parsedMessage = null; 40283 try { 40284 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 40285 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 40286 parsedMessage = (com.google.protobuf.DescriptorProtos.GeneratedCodeInfo) e.getUnfinishedMessage(); 40287 throw e.unwrapIOException(); 40288 } finally { 40289 if (parsedMessage != null) { 40290 mergeFrom(parsedMessage); 40291 } 40292 } 40293 return this; 40294 } 40295 private int bitField0_; 40296 40297 private java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> annotation_ = 40298 java.util.Collections.emptyList(); 40299 private void ensureAnnotationIsMutable() { 40300 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 40301 annotation_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation>(annotation_); 40302 bitField0_ |= 0x00000001; 40303 } 40304 } 40305 40306 private com.google.protobuf.RepeatedFieldBuilderV3< 40307 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> annotationBuilder_; 40308 40309 /** 40310 * <pre> 40311 * An Annotation connects some span of text in generated code to an element 40312 * of its generating .proto file. 40313 * </pre> 40314 * 40315 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40316 */ 40317 public java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> getAnnotationList() { 40318 if (annotationBuilder_ == null) { 40319 return java.util.Collections.unmodifiableList(annotation_); 40320 } else { 40321 return annotationBuilder_.getMessageList(); 40322 } 40323 } 40324 /** 40325 * <pre> 40326 * An Annotation connects some span of text in generated code to an element 40327 * of its generating .proto file. 40328 * </pre> 40329 * 40330 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40331 */ 40332 public int getAnnotationCount() { 40333 if (annotationBuilder_ == null) { 40334 return annotation_.size(); 40335 } else { 40336 return annotationBuilder_.getCount(); 40337 } 40338 } 40339 /** 40340 * <pre> 40341 * An Annotation connects some span of text in generated code to an element 40342 * of its generating .proto file. 40343 * </pre> 40344 * 40345 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40346 */ 40347 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation getAnnotation(int index) { 40348 if (annotationBuilder_ == null) { 40349 return annotation_.get(index); 40350 } else { 40351 return annotationBuilder_.getMessage(index); 40352 } 40353 } 40354 /** 40355 * <pre> 40356 * An Annotation connects some span of text in generated code to an element 40357 * of its generating .proto file. 40358 * </pre> 40359 * 40360 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40361 */ 40362 public Builder setAnnotation( 40363 int index, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation value) { 40364 if (annotationBuilder_ == null) { 40365 if (value == null) { 40366 throw new NullPointerException(); 40367 } 40368 ensureAnnotationIsMutable(); 40369 annotation_.set(index, value); 40370 onChanged(); 40371 } else { 40372 annotationBuilder_.setMessage(index, value); 40373 } 40374 return this; 40375 } 40376 /** 40377 * <pre> 40378 * An Annotation connects some span of text in generated code to an element 40379 * of its generating .proto file. 40380 * </pre> 40381 * 40382 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40383 */ 40384 public Builder setAnnotation( 40385 int index, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder builderForValue) { 40386 if (annotationBuilder_ == null) { 40387 ensureAnnotationIsMutable(); 40388 annotation_.set(index, builderForValue.build()); 40389 onChanged(); 40390 } else { 40391 annotationBuilder_.setMessage(index, builderForValue.build()); 40392 } 40393 return this; 40394 } 40395 /** 40396 * <pre> 40397 * An Annotation connects some span of text in generated code to an element 40398 * of its generating .proto file. 40399 * </pre> 40400 * 40401 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40402 */ 40403 public Builder addAnnotation(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation value) { 40404 if (annotationBuilder_ == null) { 40405 if (value == null) { 40406 throw new NullPointerException(); 40407 } 40408 ensureAnnotationIsMutable(); 40409 annotation_.add(value); 40410 onChanged(); 40411 } else { 40412 annotationBuilder_.addMessage(value); 40413 } 40414 return this; 40415 } 40416 /** 40417 * <pre> 40418 * An Annotation connects some span of text in generated code to an element 40419 * of its generating .proto file. 40420 * </pre> 40421 * 40422 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40423 */ 40424 public Builder addAnnotation( 40425 int index, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation value) { 40426 if (annotationBuilder_ == null) { 40427 if (value == null) { 40428 throw new NullPointerException(); 40429 } 40430 ensureAnnotationIsMutable(); 40431 annotation_.add(index, value); 40432 onChanged(); 40433 } else { 40434 annotationBuilder_.addMessage(index, value); 40435 } 40436 return this; 40437 } 40438 /** 40439 * <pre> 40440 * An Annotation connects some span of text in generated code to an element 40441 * of its generating .proto file. 40442 * </pre> 40443 * 40444 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40445 */ 40446 public Builder addAnnotation( 40447 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder builderForValue) { 40448 if (annotationBuilder_ == null) { 40449 ensureAnnotationIsMutable(); 40450 annotation_.add(builderForValue.build()); 40451 onChanged(); 40452 } else { 40453 annotationBuilder_.addMessage(builderForValue.build()); 40454 } 40455 return this; 40456 } 40457 /** 40458 * <pre> 40459 * An Annotation connects some span of text in generated code to an element 40460 * of its generating .proto file. 40461 * </pre> 40462 * 40463 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40464 */ 40465 public Builder addAnnotation( 40466 int index, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder builderForValue) { 40467 if (annotationBuilder_ == null) { 40468 ensureAnnotationIsMutable(); 40469 annotation_.add(index, builderForValue.build()); 40470 onChanged(); 40471 } else { 40472 annotationBuilder_.addMessage(index, builderForValue.build()); 40473 } 40474 return this; 40475 } 40476 /** 40477 * <pre> 40478 * An Annotation connects some span of text in generated code to an element 40479 * of its generating .proto file. 40480 * </pre> 40481 * 40482 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40483 */ 40484 public Builder addAllAnnotation( 40485 java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation> values) { 40486 if (annotationBuilder_ == null) { 40487 ensureAnnotationIsMutable(); 40488 com.google.protobuf.AbstractMessageLite.Builder.addAll( 40489 values, annotation_); 40490 onChanged(); 40491 } else { 40492 annotationBuilder_.addAllMessages(values); 40493 } 40494 return this; 40495 } 40496 /** 40497 * <pre> 40498 * An Annotation connects some span of text in generated code to an element 40499 * of its generating .proto file. 40500 * </pre> 40501 * 40502 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40503 */ 40504 public Builder clearAnnotation() { 40505 if (annotationBuilder_ == null) { 40506 annotation_ = java.util.Collections.emptyList(); 40507 bitField0_ = (bitField0_ & ~0x00000001); 40508 onChanged(); 40509 } else { 40510 annotationBuilder_.clear(); 40511 } 40512 return this; 40513 } 40514 /** 40515 * <pre> 40516 * An Annotation connects some span of text in generated code to an element 40517 * of its generating .proto file. 40518 * </pre> 40519 * 40520 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40521 */ 40522 public Builder removeAnnotation(int index) { 40523 if (annotationBuilder_ == null) { 40524 ensureAnnotationIsMutable(); 40525 annotation_.remove(index); 40526 onChanged(); 40527 } else { 40528 annotationBuilder_.remove(index); 40529 } 40530 return this; 40531 } 40532 /** 40533 * <pre> 40534 * An Annotation connects some span of text in generated code to an element 40535 * of its generating .proto file. 40536 * </pre> 40537 * 40538 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40539 */ 40540 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder getAnnotationBuilder( 40541 int index) { 40542 return getAnnotationFieldBuilder().getBuilder(index); 40543 } 40544 /** 40545 * <pre> 40546 * An Annotation connects some span of text in generated code to an element 40547 * of its generating .proto file. 40548 * </pre> 40549 * 40550 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40551 */ 40552 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder getAnnotationOrBuilder( 40553 int index) { 40554 if (annotationBuilder_ == null) { 40555 return annotation_.get(index); } else { 40556 return annotationBuilder_.getMessageOrBuilder(index); 40557 } 40558 } 40559 /** 40560 * <pre> 40561 * An Annotation connects some span of text in generated code to an element 40562 * of its generating .proto file. 40563 * </pre> 40564 * 40565 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40566 */ 40567 public java.util.List<? extends com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> 40568 getAnnotationOrBuilderList() { 40569 if (annotationBuilder_ != null) { 40570 return annotationBuilder_.getMessageOrBuilderList(); 40571 } else { 40572 return java.util.Collections.unmodifiableList(annotation_); 40573 } 40574 } 40575 /** 40576 * <pre> 40577 * An Annotation connects some span of text in generated code to an element 40578 * of its generating .proto file. 40579 * </pre> 40580 * 40581 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40582 */ 40583 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder addAnnotationBuilder() { 40584 return getAnnotationFieldBuilder().addBuilder( 40585 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.getDefaultInstance()); 40586 } 40587 /** 40588 * <pre> 40589 * An Annotation connects some span of text in generated code to an element 40590 * of its generating .proto file. 40591 * </pre> 40592 * 40593 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40594 */ 40595 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder addAnnotationBuilder( 40596 int index) { 40597 return getAnnotationFieldBuilder().addBuilder( 40598 index, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.getDefaultInstance()); 40599 } 40600 /** 40601 * <pre> 40602 * An Annotation connects some span of text in generated code to an element 40603 * of its generating .proto file. 40604 * </pre> 40605 * 40606 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 40607 */ 40608 public java.util.List<com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder> 40609 getAnnotationBuilderList() { 40610 return getAnnotationFieldBuilder().getBuilderList(); 40611 } 40612 private com.google.protobuf.RepeatedFieldBuilderV3< 40613 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder> 40614 getAnnotationFieldBuilder() { 40615 if (annotationBuilder_ == null) { 40616 annotationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 40617 com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder, com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder>( 40618 annotation_, 40619 ((bitField0_ & 0x00000001) == 0x00000001), 40620 getParentForChildren(), 40621 isClean()); 40622 annotation_ = null; 40623 } 40624 return annotationBuilder_; 40625 } 40626 public final Builder setUnknownFields( 40627 final com.google.protobuf.UnknownFieldSet unknownFields) { 40628 return super.setUnknownFields(unknownFields); 40629 } 40630 40631 public final Builder mergeUnknownFields( 40632 final com.google.protobuf.UnknownFieldSet unknownFields) { 40633 return super.mergeUnknownFields(unknownFields); 40634 } 40635 40636 40637 // @@protoc_insertion_point(builder_scope:google.protobuf.GeneratedCodeInfo) 40638 } 40639 40640 // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo) 40641 private static final com.google.protobuf.DescriptorProtos.GeneratedCodeInfo DEFAULT_INSTANCE; 40642 static { 40643 DEFAULT_INSTANCE = new com.google.protobuf.DescriptorProtos.GeneratedCodeInfo(); 40644 } 40645 40646 public static com.google.protobuf.DescriptorProtos.GeneratedCodeInfo getDefaultInstance() { 40647 return DEFAULT_INSTANCE; 40648 } 40649 40650 @java.lang.Deprecated public static final com.google.protobuf.Parser<GeneratedCodeInfo> 40651 PARSER = new com.google.protobuf.AbstractParser<GeneratedCodeInfo>() { 40652 public GeneratedCodeInfo parsePartialFrom( 40653 com.google.protobuf.CodedInputStream input, 40654 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 40655 throws com.google.protobuf.InvalidProtocolBufferException { 40656 return new GeneratedCodeInfo(input, extensionRegistry); 40657 } 40658 }; 40659 40660 public static com.google.protobuf.Parser<GeneratedCodeInfo> parser() { 40661 return PARSER; 40662 } 40663 40664 @java.lang.Override 40665 public com.google.protobuf.Parser<GeneratedCodeInfo> getParserForType() { 40666 return PARSER; 40667 } 40668 40669 public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo getDefaultInstanceForType() { 40670 return DEFAULT_INSTANCE; 40671 } 40672 30807 40673 } 30808 40674 30809 40675 private static final com.google.protobuf.Descriptors.Descriptor 30810 40676 internal_static_google_protobuf_FileDescriptorSet_descriptor; 30811 private static 30812 com.google.protobuf.GeneratedMessage .FieldAccessorTable40677 private static final 40678 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30813 40679 internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable; 30814 40680 private static final com.google.protobuf.Descriptors.Descriptor 30815 40681 internal_static_google_protobuf_FileDescriptorProto_descriptor; 30816 private static 30817 com.google.protobuf.GeneratedMessage .FieldAccessorTable40682 private static final 40683 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30818 40684 internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable; 30819 40685 private static final com.google.protobuf.Descriptors.Descriptor 30820 40686 internal_static_google_protobuf_DescriptorProto_descriptor; 30821 private static 30822 com.google.protobuf.GeneratedMessage .FieldAccessorTable40687 private static final 40688 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30823 40689 internal_static_google_protobuf_DescriptorProto_fieldAccessorTable; 30824 40690 private static final com.google.protobuf.Descriptors.Descriptor 30825 40691 internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; 30826 private static 30827 com.google.protobuf.GeneratedMessage .FieldAccessorTable40692 private static final 40693 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30828 40694 internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable; 30829 40695 private static final com.google.protobuf.Descriptors.Descriptor 40696 internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor; 40697 private static final 40698 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 40699 internal_static_google_protobuf_DescriptorProto_ReservedRange_fieldAccessorTable; 40700 private static final com.google.protobuf.Descriptors.Descriptor 40701 internal_static_google_protobuf_ExtensionRangeOptions_descriptor; 40702 private static final 40703 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 40704 internal_static_google_protobuf_ExtensionRangeOptions_fieldAccessorTable; 40705 private static final com.google.protobuf.Descriptors.Descriptor 30830 40706 internal_static_google_protobuf_FieldDescriptorProto_descriptor; 30831 private static 30832 com.google.protobuf.GeneratedMessage .FieldAccessorTable40707 private static final 40708 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30833 40709 internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable; 30834 40710 private static final com.google.protobuf.Descriptors.Descriptor 30835 40711 internal_static_google_protobuf_OneofDescriptorProto_descriptor; 30836 private static 30837 com.google.protobuf.GeneratedMessage .FieldAccessorTable40712 private static final 40713 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30838 40714 internal_static_google_protobuf_OneofDescriptorProto_fieldAccessorTable; 30839 40715 private static final com.google.protobuf.Descriptors.Descriptor 30840 40716 internal_static_google_protobuf_EnumDescriptorProto_descriptor; 30841 private static 30842 com.google.protobuf.GeneratedMessage .FieldAccessorTable40717 private static final 40718 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30843 40719 internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable; 30844 40720 private static final com.google.protobuf.Descriptors.Descriptor 30845 40721 internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; 30846 private static 30847 com.google.protobuf.GeneratedMessage .FieldAccessorTable40722 private static final 40723 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30848 40724 internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable; 30849 40725 private static final com.google.protobuf.Descriptors.Descriptor 30850 40726 internal_static_google_protobuf_ServiceDescriptorProto_descriptor; 30851 private static 30852 com.google.protobuf.GeneratedMessage .FieldAccessorTable40727 private static final 40728 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30853 40729 internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable; 30854 40730 private static final com.google.protobuf.Descriptors.Descriptor 30855 40731 internal_static_google_protobuf_MethodDescriptorProto_descriptor; 30856 private static 30857 com.google.protobuf.GeneratedMessage .FieldAccessorTable40732 private static final 40733 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30858 40734 internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable; 30859 40735 private static final com.google.protobuf.Descriptors.Descriptor 30860 40736 internal_static_google_protobuf_FileOptions_descriptor; 30861 private static 30862 com.google.protobuf.GeneratedMessage .FieldAccessorTable40737 private static final 40738 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30863 40739 internal_static_google_protobuf_FileOptions_fieldAccessorTable; 30864 40740 private static final com.google.protobuf.Descriptors.Descriptor 30865 40741 internal_static_google_protobuf_MessageOptions_descriptor; 30866 private static 30867 com.google.protobuf.GeneratedMessage .FieldAccessorTable40742 private static final 40743 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30868 40744 internal_static_google_protobuf_MessageOptions_fieldAccessorTable; 30869 40745 private static final com.google.protobuf.Descriptors.Descriptor 30870 40746 internal_static_google_protobuf_FieldOptions_descriptor; 30871 private static 30872 com.google.protobuf.GeneratedMessage .FieldAccessorTable40747 private static final 40748 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30873 40749 internal_static_google_protobuf_FieldOptions_fieldAccessorTable; 30874 40750 private static final com.google.protobuf.Descriptors.Descriptor 40751 internal_static_google_protobuf_OneofOptions_descriptor; 40752 private static final 40753 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 40754 internal_static_google_protobuf_OneofOptions_fieldAccessorTable; 40755 private static final com.google.protobuf.Descriptors.Descriptor 30875 40756 internal_static_google_protobuf_EnumOptions_descriptor; 30876 private static 30877 com.google.protobuf.GeneratedMessage .FieldAccessorTable40757 private static final 40758 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30878 40759 internal_static_google_protobuf_EnumOptions_fieldAccessorTable; 30879 40760 private static final com.google.protobuf.Descriptors.Descriptor 30880 40761 internal_static_google_protobuf_EnumValueOptions_descriptor; 30881 private static 30882 com.google.protobuf.GeneratedMessage .FieldAccessorTable40762 private static final 40763 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30883 40764 internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable; 30884 40765 private static final com.google.protobuf.Descriptors.Descriptor 30885 40766 internal_static_google_protobuf_ServiceOptions_descriptor; 30886 private static 30887 com.google.protobuf.GeneratedMessage .FieldAccessorTable40767 private static final 40768 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30888 40769 internal_static_google_protobuf_ServiceOptions_fieldAccessorTable; 30889 40770 private static final com.google.protobuf.Descriptors.Descriptor 30890 40771 internal_static_google_protobuf_MethodOptions_descriptor; 30891 private static 30892 com.google.protobuf.GeneratedMessage .FieldAccessorTable40772 private static final 40773 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30893 40774 internal_static_google_protobuf_MethodOptions_fieldAccessorTable; 30894 40775 private static final com.google.protobuf.Descriptors.Descriptor 30895 40776 internal_static_google_protobuf_UninterpretedOption_descriptor; 30896 private static 30897 com.google.protobuf.GeneratedMessage .FieldAccessorTable40777 private static final 40778 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30898 40779 internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable; 30899 40780 private static final com.google.protobuf.Descriptors.Descriptor 30900 40781 internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; 30901 private static 30902 com.google.protobuf.GeneratedMessage .FieldAccessorTable40782 private static final 40783 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30903 40784 internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable; 30904 40785 private static final com.google.protobuf.Descriptors.Descriptor 30905 40786 internal_static_google_protobuf_SourceCodeInfo_descriptor; 30906 private static 30907 com.google.protobuf.GeneratedMessage .FieldAccessorTable40787 private static final 40788 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30908 40789 internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable; 30909 40790 private static final com.google.protobuf.Descriptors.Descriptor 30910 40791 internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; 30911 private static 30912 com.google.protobuf.GeneratedMessage .FieldAccessorTable40792 private static final 40793 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 30913 40794 internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable; 40795 private static final com.google.protobuf.Descriptors.Descriptor 40796 internal_static_google_protobuf_GeneratedCodeInfo_descriptor; 40797 private static final 40798 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 40799 internal_static_google_protobuf_GeneratedCodeInfo_fieldAccessorTable; 40800 private static final com.google.protobuf.Descriptors.Descriptor 40801 internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor; 40802 private static final 40803 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 40804 internal_static_google_protobuf_GeneratedCodeInfo_Annotation_fieldAccessorTable; 30914 40805 30915 40806 public static com.google.protobuf.Descriptors.FileDescriptor … … 30917 40808 return descriptor; 30918 40809 } 30919 private static com.google.protobuf.Descriptors.FileDescriptor40810 private static com.google.protobuf.Descriptors.FileDescriptor 30920 40811 descriptor; 30921 40812 static { … … 30923 40814 "\n\020descriptor.proto\022\017google.protobuf\"G\n\021F" + 30924 40815 "ileDescriptorSet\0222\n\004file\030\001 \003(\0132$.google." + 30925 "protobuf.FileDescriptorProto\"\3 13\003\n\023FileDes" +40816 "protobuf.FileDescriptorProto\"\333\003\n\023FileDes" + 30926 40817 "criptorProto\022\014\n\004name\030\001 \001(\t\022\017\n\007package\030\002 " + 30927 40818 "\001(\t\022\022\n\ndependency\030\003 \003(\t\022\031\n\021public_depend" + … … 30935 40826 "\0132\034.google.protobuf.FileOptions\0229\n\020sourc" + 30936 40827 "e_code_info\030\t \001(\0132\037.google.protobuf.Sour" + 30937 "ceCodeInfo\"\344\003\n\017DescriptorProto\022\014\n\004name\030\001" + 30938 " \001(\t\0224\n\005field\030\002 \003(\0132%.google.protobuf.Fi" + 30939 "eldDescriptorProto\0228\n\textension\030\006 \003(\0132%." + 30940 "google.protobuf.FieldDescriptorProto\0225\n\013" + 30941 "nested_type\030\003 \003(\0132 .google.protobuf.Desc" + 30942 "riptorProto\0227\n\tenum_type\030\004 \003(\0132$.google.", 30943 "protobuf.EnumDescriptorProto\022H\n\017extensio" + 30944 "n_range\030\005 \003(\0132/.google.protobuf.Descript" + 30945 "orProto.ExtensionRange\0229\n\noneof_decl\030\010 \003" + 30946 "(\0132%.google.protobuf.OneofDescriptorProt" + 30947 "o\0220\n\007options\030\007 \001(\0132\037.google.protobuf.Mes" + 30948 "sageOptions\032,\n\016ExtensionRange\022\r\n\005start\030\001" + 30949 " \001(\005\022\013\n\003end\030\002 \001(\005\"\251\005\n\024FieldDescriptorPro" + 30950 "to\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003 \001(\005\022:\n\005labe" + 30951 "l\030\004 \001(\0162+.google.protobuf.FieldDescripto" + 30952 "rProto.Label\0228\n\004type\030\005 \001(\0162*.google.prot", 30953 "obuf.FieldDescriptorProto.Type\022\021\n\ttype_n" + 30954 "ame\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022\025\n\rdefault_v" + 30955 "alue\030\007 \001(\t\022\023\n\013oneof_index\030\t \001(\005\022.\n\007optio" + 30956 "ns\030\010 \001(\0132\035.google.protobuf.FieldOptions\"" + 30957 "\266\002\n\004Type\022\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020" + 30958 "\002\022\016\n\nTYPE_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTY" + 30959 "PE_INT32\020\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIX" + 30960 "ED32\020\007\022\r\n\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016" + 30961 "\n\nTYPE_GROUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE" + 30962 "_BYTES\020\014\022\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016", 30963 "\022\021\n\rTYPE_SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017" + 30964 "\n\013TYPE_SINT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Labe" + 30965 "l\022\022\n\016LABEL_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020" + 30966 "\002\022\022\n\016LABEL_REPEATED\020\003\"$\n\024OneofDescriptor" + 30967 "Proto\022\014\n\004name\030\001 \001(\t\"\214\001\n\023EnumDescriptorPr" + 30968 "oto\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).googl" + 30969 "e.protobuf.EnumValueDescriptorProto\022-\n\007o" + 30970 "ptions\030\003 \001(\0132\034.google.protobuf.EnumOptio" + 30971 "ns\"l\n\030EnumValueDescriptorProto\022\014\n\004name\030\001" + 30972 " \001(\t\022\016\n\006number\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.", 30973 "google.protobuf.EnumValueOptions\"\220\001\n\026Ser" + 30974 "viceDescriptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006met" + 30975 "hod\030\002 \003(\0132&.google.protobuf.MethodDescri" + 30976 "ptorProto\0220\n\007options\030\003 \001(\0132\037.google.prot" + 30977 "obuf.ServiceOptions\"\177\n\025MethodDescriptorP" + 30978 "roto\022\014\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023" + 30979 "\n\013output_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.g" + 30980 "oogle.protobuf.MethodOptions\"\253\004\n\013FileOpt" + 30981 "ions\022\024\n\014java_package\030\001 \001(\t\022\034\n\024java_outer" + 30982 "_classname\030\010 \001(\t\022\"\n\023java_multiple_files\030", 30983 "\n \001(\010:\005false\022,\n\035java_generate_equals_and" + 30984 "_hash\030\024 \001(\010:\005false\022%\n\026java_string_check_" + 30985 "utf8\030\033 \001(\010:\005false\022F\n\014optimize_for\030\t \001(\0162" + 30986 ").google.protobuf.FileOptions.OptimizeMo" + 30987 "de:\005SPEED\022\022\n\ngo_package\030\013 \001(\t\022\"\n\023cc_gene" + 30988 "ric_services\030\020 \001(\010:\005false\022$\n\025java_generi" + 30989 "c_services\030\021 \001(\010:\005false\022\"\n\023py_generic_se" + 30990 "rvices\030\022 \001(\010:\005false\022\031\n\ndeprecated\030\027 \001(\010:" + 30991 "\005false\022C\n\024uninterpreted_option\030\347\007 \003(\0132$." + 30992 "google.protobuf.UninterpretedOption\":\n\014O", 30993 "ptimizeMode\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n" + 30994 "\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200\200\002\"\323\001\n\016MessageOp" + 30995 "tions\022&\n\027message_set_wire_format\030\001 \001(\010:\005" + 30996 "false\022.\n\037no_standard_descriptor_accessor" + 30997 "\030\002 \001(\010:\005false\022\031\n\ndeprecated\030\003 \001(\010:\005false" + 30998 "\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.google" + 30999 ".protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002" + 31000 "\"\276\002\n\014FieldOptions\022:\n\005ctype\030\001 \001(\0162#.googl" + 40828 "ceCodeInfo\022\016\n\006syntax\030\014 \001(\t\"\251\005\n\017Descripto" + 40829 "rProto\022\014\n\004name\030\001 \001(\t\0224\n\005field\030\002 \003(\0132%.go" + 40830 "ogle.protobuf.FieldDescriptorProto\0228\n\tex" + 40831 "tension\030\006 \003(\0132%.google.protobuf.FieldDes" + 40832 "criptorProto\0225\n\013nested_type\030\003 \003(\0132 .goog" + 40833 "le.protobuf.DescriptorProto\0227\n\tenum_type", 40834 "\030\004 \003(\0132$.google.protobuf.EnumDescriptorP" + 40835 "roto\022H\n\017extension_range\030\005 \003(\0132/.google.p" + 40836 "rotobuf.DescriptorProto.ExtensionRange\0229" + 40837 "\n\noneof_decl\030\010 \003(\0132%.google.protobuf.One" + 40838 "ofDescriptorProto\0220\n\007options\030\007 \001(\0132\037.goo" + 40839 "gle.protobuf.MessageOptions\022F\n\016reserved_" + 40840 "range\030\t \003(\0132..google.protobuf.Descriptor" + 40841 "Proto.ReservedRange\022\025\n\rreserved_name\030\n \003" + 40842 "(\t\032e\n\016ExtensionRange\022\r\n\005start\030\001 \001(\005\022\013\n\003e" + 40843 "nd\030\002 \001(\005\0227\n\007options\030\003 \001(\0132&.google.proto", 40844 "buf.ExtensionRangeOptions\032+\n\rReservedRan" + 40845 "ge\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"g\n\025Extens" + 40846 "ionRangeOptions\022C\n\024uninterpreted_option\030" + 40847 "\347\007 \003(\0132$.google.protobuf.UninterpretedOp" + 40848 "tion*\t\010\350\007\020\200\200\200\200\002\"\274\005\n\024FieldDescriptorProto" + 40849 "\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003 \001(\005\022:\n\005label\030" + 40850 "\004 \001(\0162+.google.protobuf.FieldDescriptorP" + 40851 "roto.Label\0228\n\004type\030\005 \001(\0162*.google.protob" + 40852 "uf.FieldDescriptorProto.Type\022\021\n\ttype_nam" + 40853 "e\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022\025\n\rdefault_val", 40854 "ue\030\007 \001(\t\022\023\n\013oneof_index\030\t \001(\005\022\021\n\tjson_na" + 40855 "me\030\n \001(\t\022.\n\007options\030\010 \001(\0132\035.google.proto" + 40856 "buf.FieldOptions\"\266\002\n\004Type\022\017\n\013TYPE_DOUBLE" + 40857 "\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64\020\003\022\017\n\013TY" + 40858 "PE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014TYPE_FIXE" + 40859 "D64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_BOOL\020\010\022\017" + 40860 "\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022\020\n\014TYPE_" + 40861 "MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYPE_UINT32" + 40862 "\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED32\020\017\022\021\n\r" + 40863 "TYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021\022\017\n\013TYPE", 40864 "_SINT64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTIONAL\020\001\022\022" + 40865 "\n\016LABEL_REQUIRED\020\002\022\022\n\016LABEL_REPEATED\020\003\"T" + 40866 "\n\024OneofDescriptorProto\022\014\n\004name\030\001 \001(\t\022.\n\007" + 40867 "options\030\002 \001(\0132\035.google.protobuf.OneofOpt" + 40868 "ions\"\214\001\n\023EnumDescriptorProto\022\014\n\004name\030\001 \001" + 40869 "(\t\0228\n\005value\030\002 \003(\0132).google.protobuf.Enum" + 40870 "ValueDescriptorProto\022-\n\007options\030\003 \001(\0132\034." + 40871 "google.protobuf.EnumOptions\"l\n\030EnumValue" + 40872 "DescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030" + 40873 "\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google.protobuf", 40874 ".EnumValueOptions\"\220\001\n\026ServiceDescriptorP" + 40875 "roto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\0132&.goo" + 40876 "gle.protobuf.MethodDescriptorProto\0220\n\007op" + 40877 "tions\030\003 \001(\0132\037.google.protobuf.ServiceOpt" + 40878 "ions\"\301\001\n\025MethodDescriptorProto\022\014\n\004name\030\001" + 40879 " \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013output_type\030" + 40880 "\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google.protobuf" + 40881 ".MethodOptions\022\037\n\020client_streaming\030\005 \001(\010" + 40882 ":\005false\022\037\n\020server_streaming\030\006 \001(\010:\005false" + 40883 "\"\360\005\n\013FileOptions\022\024\n\014java_package\030\001 \001(\t\022\034", 40884 "\n\024java_outer_classname\030\010 \001(\t\022\"\n\023java_mul" + 40885 "tiple_files\030\n \001(\010:\005false\022)\n\035java_generat" + 40886 "e_equals_and_hash\030\024 \001(\010B\002\030\001\022%\n\026java_stri" + 40887 "ng_check_utf8\030\033 \001(\010:\005false\022F\n\014optimize_f" + 40888 "or\030\t \001(\0162).google.protobuf.FileOptions.O" + 40889 "ptimizeMode:\005SPEED\022\022\n\ngo_package\030\013 \001(\t\022\"" + 40890 "\n\023cc_generic_services\030\020 \001(\010:\005false\022$\n\025ja" + 40891 "va_generic_services\030\021 \001(\010:\005false\022\"\n\023py_g" + 40892 "eneric_services\030\022 \001(\010:\005false\022#\n\024php_gene" + 40893 "ric_services\030* \001(\010:\005false\022\031\n\ndeprecated\030", 40894 "\027 \001(\010:\005false\022\037\n\020cc_enable_arenas\030\037 \001(\010:\005" + 40895 "false\022\031\n\021objc_class_prefix\030$ \001(\t\022\030\n\020csha" + 40896 "rp_namespace\030% \001(\t\022\024\n\014swift_prefix\030\' \001(\t" + 40897 "\022\030\n\020php_class_prefix\030( \001(\t\022\025\n\rphp_namesp" + 40898 "ace\030) \001(\t\022C\n\024uninterpreted_option\030\347\007 \003(\013" + 40899 "2$.google.protobuf.UninterpretedOption\":" + 40900 "\n\014OptimizeMode\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002" + 40901 "\022\020\n\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200\200\002J\004\010&\020\'\"\362\001\n\016" + 40902 "MessageOptions\022&\n\027message_set_wire_forma" + 40903 "t\030\001 \001(\010:\005false\022.\n\037no_standard_descriptor", 40904 "_accessor\030\002 \001(\010:\005false\022\031\n\ndeprecated\030\003 \001" + 40905 "(\010:\005false\022\021\n\tmap_entry\030\007 \001(\010\022C\n\024uninterp" + 40906 "reted_option\030\347\007 \003(\0132$.google.protobuf.Un" + 40907 "interpretedOption*\t\010\350\007\020\200\200\200\200\002J\004\010\010\020\tJ\004\010\t\020\n" + 40908 "\"\236\003\n\014FieldOptions\022:\n\005ctype\030\001 \001(\0162#.googl" + 31001 40909 "e.protobuf.FieldOptions.CType:\006STRING\022\016\n" + 31002 "\006packed\030\002 \001(\010\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n\nde", 31003 "precated\030\003 \001(\010:\005false\022\034\n\024experimental_ma" + 31004 "p_key\030\t \001(\t\022\023\n\004weak\030\n \001(\010:\005false\022C\n\024unin" + 31005 "terpreted_option\030\347\007 \003(\0132$.google.protobu" + 31006 "f.UninterpretedOption\"/\n\005CType\022\n\n\006STRING" + 31007 "\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002*\t\010\350\007\020\200\200\200\200" + 31008 "\002\"\215\001\n\013EnumOptions\022\023\n\013allow_alias\030\002 \001(\010\022\031" + 31009 "\n\ndeprecated\030\003 \001(\010:\005false\022C\n\024uninterpret" + 31010 "ed_option\030\347\007 \003(\0132$.google.protobuf.Unint" + 31011 "erpretedOption*\t\010\350\007\020\200\200\200\200\002\"}\n\020EnumValueOp" + 31012 "tions\022\031\n\ndeprecated\030\001 \001(\010:\005false\022C\n\024unin", 31013 "terpreted_option\030\347\007 \003(\0132$.google.protobu" + 31014 "f.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"{\n\016Serv" + 31015 "iceOptions\022\031\n\ndeprecated\030! \001(\010:\005false\022C\n" + 31016 "\024uninterpreted_option\030\347\007 \003(\0132$.google.pr" + 31017 "otobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"z\n" + 31018 "\rMethodOptions\022\031\n\ndeprecated\030! \001(\010:\005fals" + 31019 "e\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.googl" + 31020 "e.protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200" + 31021 "\002\"\236\002\n\023UninterpretedOption\022;\n\004name\030\002 \003(\0132" + 31022 "-.google.protobuf.UninterpretedOption.Na", 31023 "mePart\022\030\n\020identifier_value\030\003 \001(\t\022\032\n\022posi" + 31024 "tive_int_value\030\004 \001(\004\022\032\n\022negative_int_val" + 31025 "ue\030\005 \001(\003\022\024\n\014double_value\030\006 \001(\001\022\024\n\014string" + 31026 "_value\030\007 \001(\014\022\027\n\017aggregate_value\030\010 \001(\t\0323\n" + 31027 "\010NamePart\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_exten" + 31028 "sion\030\002 \002(\010\"\261\001\n\016SourceCodeInfo\022:\n\010locatio" + 31029 "n\030\001 \003(\0132(.google.protobuf.SourceCodeInfo" + 31030 ".Location\032c\n\010Location\022\020\n\004path\030\001 \003(\005B\002\020\001\022" + 31031 "\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020leading_comments\030\003 " + 31032 "\001(\t\022\031\n\021trailing_comments\030\004 \001(\tB)\n\023com.go", 31033 "ogle.protobufB\020DescriptorProtosH\001" 40910 "\006packed\030\002 \001(\010\022?\n\006jstype\030\006 \001(\0162$.google.p" + 40911 "rotobuf.FieldOptions.JSType:\tJS_NORMAL\022\023" + 40912 "\n\004lazy\030\005 \001(\010:\005false\022\031\n\ndeprecated\030\003 \001(\010:" + 40913 "\005false\022\023\n\004weak\030\n \001(\010:\005false\022C\n\024uninterpr", 40914 "eted_option\030\347\007 \003(\0132$.google.protobuf.Uni" + 40915 "nterpretedOption\"/\n\005CType\022\n\n\006STRING\020\000\022\010\n" + 40916 "\004CORD\020\001\022\020\n\014STRING_PIECE\020\002\"5\n\006JSType\022\r\n\tJ" + 40917 "S_NORMAL\020\000\022\r\n\tJS_STRING\020\001\022\r\n\tJS_NUMBER\020\002" + 40918 "*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\"^\n\014OneofOptions\022C\n\024uni" + 40919 "nterpreted_option\030\347\007 \003(\0132$.google.protob" + 40920 "uf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\223\001\n\013En" + 40921 "umOptions\022\023\n\013allow_alias\030\002 \001(\010\022\031\n\ndeprec" + 40922 "ated\030\003 \001(\010:\005false\022C\n\024uninterpreted_optio" + 40923 "n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted", 40924 "Option*\t\010\350\007\020\200\200\200\200\002J\004\010\005\020\006\"}\n\020EnumValueOpti" + 40925 "ons\022\031\n\ndeprecated\030\001 \001(\010:\005false\022C\n\024uninte" + 40926 "rpreted_option\030\347\007 \003(\0132$.google.protobuf." + 40927 "UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"{\n\016Servic" + 40928 "eOptions\022\031\n\ndeprecated\030! \001(\010:\005false\022C\n\024u" + 40929 "ninterpreted_option\030\347\007 \003(\0132$.google.prot" + 40930 "obuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\255\002\n\r" + 40931 "MethodOptions\022\031\n\ndeprecated\030! \001(\010:\005false" + 40932 "\022_\n\021idempotency_level\030\" \001(\0162/.google.pro" + 40933 "tobuf.MethodOptions.IdempotencyLevel:\023ID", 40934 "EMPOTENCY_UNKNOWN\022C\n\024uninterpreted_optio" + 40935 "n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted" + 40936 "Option\"P\n\020IdempotencyLevel\022\027\n\023IDEMPOTENC" + 40937 "Y_UNKNOWN\020\000\022\023\n\017NO_SIDE_EFFECTS\020\001\022\016\n\nIDEM" + 40938 "POTENT\020\002*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023UninterpretedOpt" + 40939 "ion\022;\n\004name\030\002 \003(\0132-.google.protobuf.Unin" + 40940 "terpretedOption.NamePart\022\030\n\020identifier_v" + 40941 "alue\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022\032" + 40942 "\n\022negative_int_value\030\005 \001(\003\022\024\n\014double_val" + 40943 "ue\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017aggreg", 40944 "ate_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_part" + 40945 "\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\325\001\n\016SourceC" + 40946 "odeInfo\022:\n\010location\030\001 \003(\0132(.google.proto" + 40947 "buf.SourceCodeInfo.Location\032\206\001\n\010Location" + 40948 "\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020" + 40949 "leading_comments\030\003 \001(\t\022\031\n\021trailing_comme" + 40950 "nts\030\004 \001(\t\022!\n\031leading_detached_comments\030\006" + 40951 " \003(\t\"\247\001\n\021GeneratedCodeInfo\022A\n\nannotation" + 40952 "\030\001 \003(\0132-.google.protobuf.GeneratedCodeIn" + 40953 "fo.Annotation\032O\n\nAnnotation\022\020\n\004path\030\001 \003(", 40954 "\005B\002\020\001\022\023\n\013source_file\030\002 \001(\t\022\r\n\005begin\030\003 \001(" + 40955 "\005\022\013\n\003end\030\004 \001(\005B\214\001\n\023com.google.protobufB\020" + 40956 "DescriptorProtosH\001Z>github.com/golang/pr" + 40957 "otobuf/protoc-gen-go/descriptor;descript" + 40958 "or\242\002\003GPB\252\002\032Google.Protobuf.Reflection" 31034 40959 }; 31035 40960 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = 31036 40961 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { 31037 @Override 31038 public com.google.protobuf.ExtensionRegistry assignDescriptors( 40962 public com.google.protobuf.ExtensionRegistry assignDescriptors( 31039 40963 com.google.protobuf.Descriptors.FileDescriptor root) { 31040 40964 descriptor = root; … … 31049 40973 getDescriptor().getMessageTypes().get(0); 31050 40974 internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable = new 31051 com.google.protobuf.GeneratedMessage .FieldAccessorTable(40975 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31052 40976 internal_static_google_protobuf_FileDescriptorSet_descriptor, 31053 40977 new java.lang.String[] { "File", }); … … 31055 40979 getDescriptor().getMessageTypes().get(1); 31056 40980 internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable = new 31057 com.google.protobuf.GeneratedMessage .FieldAccessorTable(40981 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31058 40982 internal_static_google_protobuf_FileDescriptorProto_descriptor, 31059 new java.lang.String[] { "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", });40983 new java.lang.String[] { "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", "Syntax", }); 31060 40984 internal_static_google_protobuf_DescriptorProto_descriptor = 31061 40985 getDescriptor().getMessageTypes().get(2); 31062 40986 internal_static_google_protobuf_DescriptorProto_fieldAccessorTable = new 31063 com.google.protobuf.GeneratedMessage .FieldAccessorTable(40987 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31064 40988 internal_static_google_protobuf_DescriptorProto_descriptor, 31065 new java.lang.String[] { "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", });40989 new java.lang.String[] { "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName", }); 31066 40990 internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor = 31067 40991 internal_static_google_protobuf_DescriptorProto_descriptor.getNestedTypes().get(0); 31068 40992 internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable = new 31069 com.google.protobuf.GeneratedMessage .FieldAccessorTable(40993 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31070 40994 internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor, 40995 new java.lang.String[] { "Start", "End", "Options", }); 40996 internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor = 40997 internal_static_google_protobuf_DescriptorProto_descriptor.getNestedTypes().get(1); 40998 internal_static_google_protobuf_DescriptorProto_ReservedRange_fieldAccessorTable = new 40999 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 41000 internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor, 31071 41001 new java.lang.String[] { "Start", "End", }); 41002 internal_static_google_protobuf_ExtensionRangeOptions_descriptor = 41003 getDescriptor().getMessageTypes().get(3); 41004 internal_static_google_protobuf_ExtensionRangeOptions_fieldAccessorTable = new 41005 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 41006 internal_static_google_protobuf_ExtensionRangeOptions_descriptor, 41007 new java.lang.String[] { "UninterpretedOption", }); 31072 41008 internal_static_google_protobuf_FieldDescriptorProto_descriptor = 31073 getDescriptor().getMessageTypes().get( 3);41009 getDescriptor().getMessageTypes().get(4); 31074 41010 internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable = new 31075 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41011 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31076 41012 internal_static_google_protobuf_FieldDescriptorProto_descriptor, 31077 new java.lang.String[] { "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", " Options", });41013 new java.lang.String[] { "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "JsonName", "Options", }); 31078 41014 internal_static_google_protobuf_OneofDescriptorProto_descriptor = 31079 getDescriptor().getMessageTypes().get( 4);41015 getDescriptor().getMessageTypes().get(5); 31080 41016 internal_static_google_protobuf_OneofDescriptorProto_fieldAccessorTable = new 31081 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41017 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31082 41018 internal_static_google_protobuf_OneofDescriptorProto_descriptor, 31083 new java.lang.String[] { "Name", });41019 new java.lang.String[] { "Name", "Options", }); 31084 41020 internal_static_google_protobuf_EnumDescriptorProto_descriptor = 31085 getDescriptor().getMessageTypes().get( 5);41021 getDescriptor().getMessageTypes().get(6); 31086 41022 internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable = new 31087 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41023 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31088 41024 internal_static_google_protobuf_EnumDescriptorProto_descriptor, 31089 41025 new java.lang.String[] { "Name", "Value", "Options", }); 31090 41026 internal_static_google_protobuf_EnumValueDescriptorProto_descriptor = 31091 getDescriptor().getMessageTypes().get( 6);41027 getDescriptor().getMessageTypes().get(7); 31092 41028 internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable = new 31093 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41029 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31094 41030 internal_static_google_protobuf_EnumValueDescriptorProto_descriptor, 31095 41031 new java.lang.String[] { "Name", "Number", "Options", }); 31096 41032 internal_static_google_protobuf_ServiceDescriptorProto_descriptor = 31097 getDescriptor().getMessageTypes().get( 7);41033 getDescriptor().getMessageTypes().get(8); 31098 41034 internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable = new 31099 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41035 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31100 41036 internal_static_google_protobuf_ServiceDescriptorProto_descriptor, 31101 41037 new java.lang.String[] { "Name", "Method", "Options", }); 31102 41038 internal_static_google_protobuf_MethodDescriptorProto_descriptor = 31103 getDescriptor().getMessageTypes().get( 8);41039 getDescriptor().getMessageTypes().get(9); 31104 41040 internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable = new 31105 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41041 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31106 41042 internal_static_google_protobuf_MethodDescriptorProto_descriptor, 31107 new java.lang.String[] { "Name", "InputType", "OutputType", "Options", });41043 new java.lang.String[] { "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming", }); 31108 41044 internal_static_google_protobuf_FileOptions_descriptor = 31109 getDescriptor().getMessageTypes().get( 9);41045 getDescriptor().getMessageTypes().get(10); 31110 41046 internal_static_google_protobuf_FileOptions_fieldAccessorTable = new 31111 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41047 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31112 41048 internal_static_google_protobuf_FileOptions_descriptor, 31113 new java.lang.String[] { "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", " Deprecated", "UninterpretedOption", });41049 new java.lang.String[] { "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "PhpGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "SwiftPrefix", "PhpClassPrefix", "PhpNamespace", "UninterpretedOption", }); 31114 41050 internal_static_google_protobuf_MessageOptions_descriptor = 31115 getDescriptor().getMessageTypes().get(1 0);41051 getDescriptor().getMessageTypes().get(11); 31116 41052 internal_static_google_protobuf_MessageOptions_fieldAccessorTable = new 31117 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41053 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31118 41054 internal_static_google_protobuf_MessageOptions_descriptor, 31119 new java.lang.String[] { "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", " UninterpretedOption", });41055 new java.lang.String[] { "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption", }); 31120 41056 internal_static_google_protobuf_FieldOptions_descriptor = 31121 getDescriptor().getMessageTypes().get(1 1);41057 getDescriptor().getMessageTypes().get(12); 31122 41058 internal_static_google_protobuf_FieldOptions_fieldAccessorTable = new 31123 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41059 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31124 41060 internal_static_google_protobuf_FieldOptions_descriptor, 31125 new java.lang.String[] { "Ctype", "Packed", "Lazy", "Deprecated", "ExperimentalMapKey", "Weak", "UninterpretedOption", }); 41061 new java.lang.String[] { "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption", }); 41062 internal_static_google_protobuf_OneofOptions_descriptor = 41063 getDescriptor().getMessageTypes().get(13); 41064 internal_static_google_protobuf_OneofOptions_fieldAccessorTable = new 41065 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 41066 internal_static_google_protobuf_OneofOptions_descriptor, 41067 new java.lang.String[] { "UninterpretedOption", }); 31126 41068 internal_static_google_protobuf_EnumOptions_descriptor = 31127 getDescriptor().getMessageTypes().get(1 2);41069 getDescriptor().getMessageTypes().get(14); 31128 41070 internal_static_google_protobuf_EnumOptions_fieldAccessorTable = new 31129 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41071 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31130 41072 internal_static_google_protobuf_EnumOptions_descriptor, 31131 41073 new java.lang.String[] { "AllowAlias", "Deprecated", "UninterpretedOption", }); 31132 41074 internal_static_google_protobuf_EnumValueOptions_descriptor = 31133 getDescriptor().getMessageTypes().get(1 3);41075 getDescriptor().getMessageTypes().get(15); 31134 41076 internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable = new 31135 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41077 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31136 41078 internal_static_google_protobuf_EnumValueOptions_descriptor, 31137 41079 new java.lang.String[] { "Deprecated", "UninterpretedOption", }); 31138 41080 internal_static_google_protobuf_ServiceOptions_descriptor = 31139 getDescriptor().getMessageTypes().get(1 4);41081 getDescriptor().getMessageTypes().get(16); 31140 41082 internal_static_google_protobuf_ServiceOptions_fieldAccessorTable = new 31141 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41083 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31142 41084 internal_static_google_protobuf_ServiceOptions_descriptor, 31143 41085 new java.lang.String[] { "Deprecated", "UninterpretedOption", }); 31144 41086 internal_static_google_protobuf_MethodOptions_descriptor = 31145 getDescriptor().getMessageTypes().get(1 5);41087 getDescriptor().getMessageTypes().get(17); 31146 41088 internal_static_google_protobuf_MethodOptions_fieldAccessorTable = new 31147 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41089 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31148 41090 internal_static_google_protobuf_MethodOptions_descriptor, 31149 new java.lang.String[] { "Deprecated", " UninterpretedOption", });41091 new java.lang.String[] { "Deprecated", "IdempotencyLevel", "UninterpretedOption", }); 31150 41092 internal_static_google_protobuf_UninterpretedOption_descriptor = 31151 getDescriptor().getMessageTypes().get(1 6);41093 getDescriptor().getMessageTypes().get(18); 31152 41094 internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable = new 31153 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41095 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31154 41096 internal_static_google_protobuf_UninterpretedOption_descriptor, 31155 41097 new java.lang.String[] { "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue", }); … … 31157 41099 internal_static_google_protobuf_UninterpretedOption_descriptor.getNestedTypes().get(0); 31158 41100 internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable = new 31159 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41101 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31160 41102 internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor, 31161 41103 new java.lang.String[] { "NamePart", "IsExtension", }); 31162 41104 internal_static_google_protobuf_SourceCodeInfo_descriptor = 31163 getDescriptor().getMessageTypes().get(1 7);41105 getDescriptor().getMessageTypes().get(19); 31164 41106 internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable = new 31165 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41107 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31166 41108 internal_static_google_protobuf_SourceCodeInfo_descriptor, 31167 41109 new java.lang.String[] { "Location", }); … … 31169 41111 internal_static_google_protobuf_SourceCodeInfo_descriptor.getNestedTypes().get(0); 31170 41112 internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable = new 31171 com.google.protobuf.GeneratedMessage .FieldAccessorTable(41113 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 31172 41114 internal_static_google_protobuf_SourceCodeInfo_Location_descriptor, 31173 new java.lang.String[] { "Path", "Span", "LeadingComments", "TrailingComments", }); 41115 new java.lang.String[] { "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments", }); 41116 internal_static_google_protobuf_GeneratedCodeInfo_descriptor = 41117 getDescriptor().getMessageTypes().get(20); 41118 internal_static_google_protobuf_GeneratedCodeInfo_fieldAccessorTable = new 41119 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 41120 internal_static_google_protobuf_GeneratedCodeInfo_descriptor, 41121 new java.lang.String[] { "Annotation", }); 41122 internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor = 41123 internal_static_google_protobuf_GeneratedCodeInfo_descriptor.getNestedTypes().get(0); 41124 internal_static_google_protobuf_GeneratedCodeInfo_Annotation_fieldAccessorTable = new 41125 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 41126 internal_static_google_protobuf_GeneratedCodeInfo_Annotation_descriptor, 41127 new java.lang.String[] { "Path", "SourceFile", "Begin", "End", }); 31174 41128 } 31175 41129 -
applications/editors/josm/plugins/pbf/gen/crosby/binary/Fileformat.java
r31905 r33772 14 14 15 15 /** 16 * <pre> 17 * No compression 18 * </pre> 19 * 16 20 * <code>optional bytes raw = 1;</code> 17 * 21 */ 22 boolean hasRaw(); 23 /** 18 24 * <pre> 19 25 * No compression 20 26 * </pre> 21 */ 22 boolean hasRaw(); 23 /** 27 * 24 28 * <code>optional bytes raw = 1;</code> 25 *26 * <pre>27 * No compression28 * </pre>29 29 */ 30 30 com.google.protobuf.ByteString getRaw(); 31 31 32 32 /** 33 * <pre> 34 * When compressed, the uncompressed size 35 * </pre> 36 * 33 37 * <code>optional int32 raw_size = 2;</code> 34 * 38 */ 39 boolean hasRawSize(); 40 /** 35 41 * <pre> 36 42 * When compressed, the uncompressed size 37 43 * </pre> 38 */ 39 boolean hasRawSize(); 40 /** 44 * 41 45 * <code>optional int32 raw_size = 2;</code> 42 *43 * <pre>44 * When compressed, the uncompressed size45 * </pre>46 46 */ 47 47 int getRawSize(); 48 48 49 49 /** 50 * <pre> 51 * Possible compressed versions of the data. 52 * </pre> 53 * 50 54 * <code>optional bytes zlib_data = 3;</code> 51 * 55 */ 56 boolean hasZlibData(); 57 /** 52 58 * <pre> 53 59 * Possible compressed versions of the data. 54 60 * </pre> 55 */ 56 boolean hasZlibData(); 57 /** 61 * 58 62 * <code>optional bytes zlib_data = 3;</code> 59 *60 * <pre>61 * Possible compressed versions of the data.62 * </pre>63 63 */ 64 64 com.google.protobuf.ByteString getZlibData(); 65 65 66 66 /** 67 * <pre> 68 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 69 * </pre> 70 * 67 71 * <code>optional bytes lzma_data = 4;</code> 68 * 72 */ 73 boolean hasLzmaData(); 74 /** 69 75 * <pre> 70 76 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 71 77 * </pre> 72 */ 73 boolean hasLzmaData(); 74 /** 78 * 75 79 * <code>optional bytes lzma_data = 4;</code> 76 *77 * <pre>78 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.79 * </pre>80 80 */ 81 81 com.google.protobuf.ByteString getLzmaData(); 82 82 83 83 /** 84 * <pre> 85 * Formerly used for bzip2 compressed data. Depreciated in 2010. 86 * </pre> 87 * 84 88 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 85 * 89 */ 90 @java.lang.Deprecated boolean hasOBSOLETEBzip2Data(); 91 /** 86 92 * <pre> 87 93 * Formerly used for bzip2 compressed data. Depreciated in 2010. 88 94 * </pre> 89 */ 90 @java.lang.Deprecated boolean hasOBSOLETEBzip2Data(); 91 /** 95 * 92 96 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 93 *94 * <pre>95 * Formerly used for bzip2 compressed data. Depreciated in 2010.96 * </pre>97 97 */ 98 98 @java.lang.Deprecated com.google.protobuf.ByteString getOBSOLETEBzip2Data(); … … 101 101 * Protobuf type {@code OSMPBF.Blob} 102 102 */ 103 public static final class Blob extends 104 com.google.protobuf.GeneratedMessageLite implements 103 public static final class Blob extends 104 com.google.protobuf.GeneratedMessageLite< 105 Blob, Blob.Builder> implements 105 106 // @@protoc_insertion_point(message_implements:OSMPBF.Blob) 106 107 BlobOrBuilder { 107 // Use Blob.newBuilder() to construct. 108 private Blob(com.google.protobuf.GeneratedMessageLite.Builder builder) { 109 super(builder); 110 this.unknownFields = builder.getUnknownFields(); 111 } 112 private Blob(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 113 114 private static final Blob defaultInstance; 115 public static Blob getDefaultInstance() { 116 return defaultInstance; 117 } 118 119 @Override 120 public Blob getDefaultInstanceForType() { 121 return defaultInstance; 122 } 123 124 private final com.google.protobuf.ByteString unknownFields; 125 private Blob( 126 com.google.protobuf.CodedInputStream input, 127 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 128 throws com.google.protobuf.InvalidProtocolBufferException { 129 initFields(); 130 int mutable_bitField0_ = 0; 131 com.google.protobuf.ByteString.Output unknownFieldsOutput = 132 com.google.protobuf.ByteString.newOutput(); 133 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 134 com.google.protobuf.CodedOutputStream.newInstance( 135 unknownFieldsOutput); 136 try { 137 boolean done = false; 138 while (!done) { 139 int tag = input.readTag(); 140 switch (tag) { 141 case 0: 142 done = true; 143 break; 144 default: { 145 if (!parseUnknownField(input, unknownFieldsCodedOutput, 146 extensionRegistry, tag)) { 147 done = true; 148 } 149 break; 150 } 151 case 10: { 152 bitField0_ |= 0x00000001; 153 raw_ = input.readBytes(); 154 break; 155 } 156 case 16: { 157 bitField0_ |= 0x00000002; 158 rawSize_ = input.readInt32(); 159 break; 160 } 161 case 26: { 162 bitField0_ |= 0x00000004; 163 zlibData_ = input.readBytes(); 164 break; 165 } 166 case 34: { 167 bitField0_ |= 0x00000008; 168 lzmaData_ = input.readBytes(); 169 break; 170 } 171 case 42: { 172 bitField0_ |= 0x00000010; 173 oBSOLETEBzip2Data_ = input.readBytes(); 174 break; 175 } 176 } 177 } 178 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 179 throw e.setUnfinishedMessage(this); 180 } catch (java.io.IOException e) { 181 throw new com.google.protobuf.InvalidProtocolBufferException( 182 e.getMessage()).setUnfinishedMessage(this); 183 } finally { 184 try { 185 unknownFieldsCodedOutput.flush(); 186 } catch (java.io.IOException e) { 187 // Should not happen 188 } finally { 189 unknownFields = unknownFieldsOutput.toByteString(); 190 } 191 makeExtensionsImmutable(); 192 } 193 } 194 public static com.google.protobuf.Parser<Blob> PARSER = 195 new com.google.protobuf.AbstractParser<Blob>() { 196 @Override 197 public Blob parsePartialFrom( 198 com.google.protobuf.CodedInputStream input, 199 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 200 throws com.google.protobuf.InvalidProtocolBufferException { 201 return new Blob(input, extensionRegistry); 202 } 203 }; 204 205 @java.lang.Override 206 public com.google.protobuf.Parser<Blob> getParserForType() { 207 return PARSER; 208 } 209 108 private Blob() { 109 raw_ = com.google.protobuf.ByteString.EMPTY; 110 zlibData_ = com.google.protobuf.ByteString.EMPTY; 111 lzmaData_ = com.google.protobuf.ByteString.EMPTY; 112 oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY; 113 } 210 114 private int bitField0_; 211 115 public static final int RAW_FIELD_NUMBER = 1; 212 116 private com.google.protobuf.ByteString raw_; 213 117 /** 118 * <pre> 119 * No compression 120 * </pre> 121 * 214 122 * <code>optional bytes raw = 1;</code> 215 * 123 */ 124 public boolean hasRaw() { 125 return ((bitField0_ & 0x00000001) == 0x00000001); 126 } 127 /** 216 128 * <pre> 217 129 * No compression 218 130 * </pre> 219 */ 220 @Override 221 public boolean hasRaw() { 222 return ((bitField0_ & 0x00000001) == 0x00000001); 223 } 224 /** 131 * 225 132 * <code>optional bytes raw = 1;</code> 226 * 133 */ 134 public com.google.protobuf.ByteString getRaw() { 135 return raw_; 136 } 137 /** 227 138 * <pre> 228 139 * No compression 229 140 * </pre> 230 */ 231 @Override 232 public com.google.protobuf.ByteString getRaw() { 233 return raw_; 141 * 142 * <code>optional bytes raw = 1;</code> 143 */ 144 private void setRaw(com.google.protobuf.ByteString value) { 145 if (value == null) { 146 throw new NullPointerException(); 147 } 148 bitField0_ |= 0x00000001; 149 raw_ = value; 150 } 151 /** 152 * <pre> 153 * No compression 154 * </pre> 155 * 156 * <code>optional bytes raw = 1;</code> 157 */ 158 private void clearRaw() { 159 bitField0_ = (bitField0_ & ~0x00000001); 160 raw_ = getDefaultInstance().getRaw(); 234 161 } 235 162 … … 237 164 private int rawSize_; 238 165 /** 166 * <pre> 167 * When compressed, the uncompressed size 168 * </pre> 169 * 239 170 * <code>optional int32 raw_size = 2;</code> 240 * 171 */ 172 public boolean hasRawSize() { 173 return ((bitField0_ & 0x00000002) == 0x00000002); 174 } 175 /** 241 176 * <pre> 242 177 * When compressed, the uncompressed size 243 178 * </pre> 244 */ 245 @Override 246 public boolean hasRawSize() { 247 return ((bitField0_ & 0x00000002) == 0x00000002); 248 } 249 /** 179 * 250 180 * <code>optional int32 raw_size = 2;</code> 251 * 181 */ 182 public int getRawSize() { 183 return rawSize_; 184 } 185 /** 252 186 * <pre> 253 187 * When compressed, the uncompressed size 254 188 * </pre> 255 */ 256 @Override 257 public int getRawSize() { 258 return rawSize_; 189 * 190 * <code>optional int32 raw_size = 2;</code> 191 */ 192 private void setRawSize(int value) { 193 bitField0_ |= 0x00000002; 194 rawSize_ = value; 195 } 196 /** 197 * <pre> 198 * When compressed, the uncompressed size 199 * </pre> 200 * 201 * <code>optional int32 raw_size = 2;</code> 202 */ 203 private void clearRawSize() { 204 bitField0_ = (bitField0_ & ~0x00000002); 205 rawSize_ = 0; 259 206 } 260 207 … … 262 209 private com.google.protobuf.ByteString zlibData_; 263 210 /** 211 * <pre> 212 * Possible compressed versions of the data. 213 * </pre> 214 * 264 215 * <code>optional bytes zlib_data = 3;</code> 265 * 216 */ 217 public boolean hasZlibData() { 218 return ((bitField0_ & 0x00000004) == 0x00000004); 219 } 220 /** 266 221 * <pre> 267 222 * Possible compressed versions of the data. 268 223 * </pre> 269 */ 270 @Override 271 public boolean hasZlibData() { 272 return ((bitField0_ & 0x00000004) == 0x00000004); 273 } 274 /** 224 * 275 225 * <code>optional bytes zlib_data = 3;</code> 276 * 226 */ 227 public com.google.protobuf.ByteString getZlibData() { 228 return zlibData_; 229 } 230 /** 277 231 * <pre> 278 232 * Possible compressed versions of the data. 279 233 * </pre> 280 */ 281 @Override 282 public com.google.protobuf.ByteString getZlibData() { 283 return zlibData_; 234 * 235 * <code>optional bytes zlib_data = 3;</code> 236 */ 237 private void setZlibData(com.google.protobuf.ByteString value) { 238 if (value == null) { 239 throw new NullPointerException(); 240 } 241 bitField0_ |= 0x00000004; 242 zlibData_ = value; 243 } 244 /** 245 * <pre> 246 * Possible compressed versions of the data. 247 * </pre> 248 * 249 * <code>optional bytes zlib_data = 3;</code> 250 */ 251 private void clearZlibData() { 252 bitField0_ = (bitField0_ & ~0x00000004); 253 zlibData_ = getDefaultInstance().getZlibData(); 284 254 } 285 255 … … 287 257 private com.google.protobuf.ByteString lzmaData_; 288 258 /** 259 * <pre> 260 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 261 * </pre> 262 * 289 263 * <code>optional bytes lzma_data = 4;</code> 290 * 264 */ 265 public boolean hasLzmaData() { 266 return ((bitField0_ & 0x00000008) == 0x00000008); 267 } 268 /** 291 269 * <pre> 292 270 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 293 271 * </pre> 294 */ 295 @Override 296 public boolean hasLzmaData() { 297 return ((bitField0_ & 0x00000008) == 0x00000008); 298 } 299 /** 272 * 300 273 * <code>optional bytes lzma_data = 4;</code> 301 * 274 */ 275 public com.google.protobuf.ByteString getLzmaData() { 276 return lzmaData_; 277 } 278 /** 302 279 * <pre> 303 280 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 304 281 * </pre> 305 */ 306 @Override 307 public com.google.protobuf.ByteString getLzmaData() { 308 return lzmaData_; 282 * 283 * <code>optional bytes lzma_data = 4;</code> 284 */ 285 private void setLzmaData(com.google.protobuf.ByteString value) { 286 if (value == null) { 287 throw new NullPointerException(); 288 } 289 bitField0_ |= 0x00000008; 290 lzmaData_ = value; 291 } 292 /** 293 * <pre> 294 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 295 * </pre> 296 * 297 * <code>optional bytes lzma_data = 4;</code> 298 */ 299 private void clearLzmaData() { 300 bitField0_ = (bitField0_ & ~0x00000008); 301 lzmaData_ = getDefaultInstance().getLzmaData(); 309 302 } 310 303 … … 312 305 private com.google.protobuf.ByteString oBSOLETEBzip2Data_; 313 306 /** 307 * <pre> 308 * Formerly used for bzip2 compressed data. Depreciated in 2010. 309 * </pre> 310 * 314 311 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 315 * 312 */ 313 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 314 return ((bitField0_ & 0x00000010) == 0x00000010); 315 } 316 /** 316 317 * <pre> 317 318 * Formerly used for bzip2 compressed data. Depreciated in 2010. 318 319 * </pre> 319 */ 320 @Override 321 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 322 return ((bitField0_ & 0x00000010) == 0x00000010); 323 } 324 /** 320 * 325 321 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 326 * 322 */ 323 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 324 return oBSOLETEBzip2Data_; 325 } 326 /** 327 327 * <pre> 328 328 * Formerly used for bzip2 compressed data. Depreciated in 2010. 329 329 * </pre> 330 */ 331 @Override 332 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 333 return oBSOLETEBzip2Data_; 334 } 335 336 private void initFields() { 337 raw_ = com.google.protobuf.ByteString.EMPTY; 338 rawSize_ = 0; 339 zlibData_ = com.google.protobuf.ByteString.EMPTY; 340 lzmaData_ = com.google.protobuf.ByteString.EMPTY; 341 oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY; 342 } 343 private byte memoizedIsInitialized = -1; 344 @Override 345 public final boolean isInitialized() { 346 byte isInitialized = memoizedIsInitialized; 347 if (isInitialized == 1) return true; 348 if (isInitialized == 0) return false; 349 350 memoizedIsInitialized = 1; 351 return true; 352 } 353 354 @Override 355 public void writeTo(com.google.protobuf.CodedOutputStream output) 330 * 331 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 332 */ 333 private void setOBSOLETEBzip2Data(com.google.protobuf.ByteString value) { 334 if (value == null) { 335 throw new NullPointerException(); 336 } 337 bitField0_ |= 0x00000010; 338 oBSOLETEBzip2Data_ = value; 339 } 340 /** 341 * <pre> 342 * Formerly used for bzip2 compressed data. Depreciated in 2010. 343 * </pre> 344 * 345 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 346 */ 347 private void clearOBSOLETEBzip2Data() { 348 bitField0_ = (bitField0_ & ~0x00000010); 349 oBSOLETEBzip2Data_ = getDefaultInstance().getOBSOLETEBzip2Data(); 350 } 351 352 public void writeTo(com.google.protobuf.CodedOutputStream output) 356 353 throws java.io.IOException { 357 getSerializedSize();358 354 if (((bitField0_ & 0x00000001) == 0x00000001)) { 359 355 output.writeBytes(1, raw_); … … 371 367 output.writeBytes(5, oBSOLETEBzip2Data_); 372 368 } 373 output.writeRawBytes(unknownFields); 374 } 375 376 private int memoizedSerializedSize = -1; 377 @Override 378 public int getSerializedSize() { 369 unknownFields.writeTo(output); 370 } 371 372 public int getSerializedSize() { 379 373 int size = memoizedSerializedSize; 380 374 if (size != -1) return size; … … 401 395 .computeBytesSize(5, oBSOLETEBzip2Data_); 402 396 } 403 size += unknownFields. size();397 size += unknownFields.getSerializedSize(); 404 398 memoizedSerializedSize = size; 405 399 return size; 406 400 } 407 401 408 private static final long serialVersionUID = 0L; 409 @java.lang.Override 410 protected java.lang.Object writeReplace() 411 throws java.io.ObjectStreamException { 412 return super.writeReplace(); 413 } 414 402 public static crosby.binary.Fileformat.Blob parseFrom( 403 java.nio.ByteBuffer data) 404 throws com.google.protobuf.InvalidProtocolBufferException { 405 return com.google.protobuf.GeneratedMessageLite.parseFrom( 406 DEFAULT_INSTANCE, data); 407 } 408 public static crosby.binary.Fileformat.Blob parseFrom( 409 java.nio.ByteBuffer data, 410 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 411 throws com.google.protobuf.InvalidProtocolBufferException { 412 return com.google.protobuf.GeneratedMessageLite.parseFrom( 413 DEFAULT_INSTANCE, data, extensionRegistry); 414 } 415 415 public static crosby.binary.Fileformat.Blob parseFrom( 416 416 com.google.protobuf.ByteString data) 417 417 throws com.google.protobuf.InvalidProtocolBufferException { 418 return PARSER.parseFrom(data); 418 return com.google.protobuf.GeneratedMessageLite.parseFrom( 419 DEFAULT_INSTANCE, data); 419 420 } 420 421 public static crosby.binary.Fileformat.Blob parseFrom( … … 422 423 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 423 424 throws com.google.protobuf.InvalidProtocolBufferException { 424 return PARSER.parseFrom(data, extensionRegistry); 425 return com.google.protobuf.GeneratedMessageLite.parseFrom( 426 DEFAULT_INSTANCE, data, extensionRegistry); 425 427 } 426 428 public static crosby.binary.Fileformat.Blob parseFrom(byte[] data) 427 429 throws com.google.protobuf.InvalidProtocolBufferException { 428 return PARSER.parseFrom(data); 430 return com.google.protobuf.GeneratedMessageLite.parseFrom( 431 DEFAULT_INSTANCE, data); 429 432 } 430 433 public static crosby.binary.Fileformat.Blob parseFrom( … … 432 435 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 433 436 throws com.google.protobuf.InvalidProtocolBufferException { 434 return PARSER.parseFrom(data, extensionRegistry); 437 return com.google.protobuf.GeneratedMessageLite.parseFrom( 438 DEFAULT_INSTANCE, data, extensionRegistry); 435 439 } 436 440 public static crosby.binary.Fileformat.Blob parseFrom(java.io.InputStream input) 437 441 throws java.io.IOException { 438 return PARSER.parseFrom(input); 442 return com.google.protobuf.GeneratedMessageLite.parseFrom( 443 DEFAULT_INSTANCE, input); 439 444 } 440 445 public static crosby.binary.Fileformat.Blob parseFrom( … … 442 447 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 443 448 throws java.io.IOException { 444 return PARSER.parseFrom(input, extensionRegistry); 449 return com.google.protobuf.GeneratedMessageLite.parseFrom( 450 DEFAULT_INSTANCE, input, extensionRegistry); 445 451 } 446 452 public static crosby.binary.Fileformat.Blob parseDelimitedFrom(java.io.InputStream input) 447 453 throws java.io.IOException { 448 return PARSER.parseDelimitedFrom(input);454 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 449 455 } 450 456 public static crosby.binary.Fileformat.Blob parseDelimitedFrom( … … 452 458 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 453 459 throws java.io.IOException { 454 return PARSER.parseDelimitedFrom(input, extensionRegistry);460 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 455 461 } 456 462 public static crosby.binary.Fileformat.Blob parseFrom( 457 463 com.google.protobuf.CodedInputStream input) 458 464 throws java.io.IOException { 459 return PARSER.parseFrom(input); 465 return com.google.protobuf.GeneratedMessageLite.parseFrom( 466 DEFAULT_INSTANCE, input); 460 467 } 461 468 public static crosby.binary.Fileformat.Blob parseFrom( … … 463 470 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 464 471 throws java.io.IOException { 465 return PARSER.parseFrom(input, extensionRegistry); 466 } 467 468 public static Builder newBuilder() { return Builder.create(); } 469 @Override 470 public Builder newBuilderForType() { return newBuilder(); } 472 return com.google.protobuf.GeneratedMessageLite.parseFrom( 473 DEFAULT_INSTANCE, input, extensionRegistry); 474 } 475 476 public static Builder newBuilder() { 477 return DEFAULT_INSTANCE.toBuilder(); 478 } 471 479 public static Builder newBuilder(crosby.binary.Fileformat.Blob prototype) { 472 return newBuilder().mergeFrom(prototype); 473 } 474 @Override 475 public Builder toBuilder() { return newBuilder(this); } 480 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 481 } 476 482 477 483 /** … … 480 486 public static final class Builder extends 481 487 com.google.protobuf.GeneratedMessageLite.Builder< 482 crosby.binary.Fileformat.Blob, Builder> 483 implements 488 crosby.binary.Fileformat.Blob, Builder> implements 484 489 // @@protoc_insertion_point(builder_implements:OSMPBF.Blob) 485 490 crosby.binary.Fileformat.BlobOrBuilder { 486 491 // Construct using crosby.binary.Fileformat.Blob.newBuilder() 487 492 private Builder() { 488 maybeForceBuilderInitialization(); 489 } 490 491 private void maybeForceBuilderInitialization() { 492 } 493 private static Builder create() { 494 return new Builder(); 495 } 496 497 @Override 498 public Builder clear() { 499 super.clear(); 500 raw_ = com.google.protobuf.ByteString.EMPTY; 501 bitField0_ = (bitField0_ & ~0x00000001); 502 rawSize_ = 0; 503 bitField0_ = (bitField0_ & ~0x00000002); 504 zlibData_ = com.google.protobuf.ByteString.EMPTY; 505 bitField0_ = (bitField0_ & ~0x00000004); 506 lzmaData_ = com.google.protobuf.ByteString.EMPTY; 507 bitField0_ = (bitField0_ & ~0x00000008); 508 oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY; 509 bitField0_ = (bitField0_ & ~0x00000010); 510 return this; 511 } 512 513 @Override 514 public Builder clone() { 515 return create().mergeFrom(buildPartial()); 516 } 517 518 @Override 519 public crosby.binary.Fileformat.Blob getDefaultInstanceForType() { 520 return crosby.binary.Fileformat.Blob.getDefaultInstance(); 521 } 522 523 @Override 524 public crosby.binary.Fileformat.Blob build() { 525 crosby.binary.Fileformat.Blob result = buildPartial(); 526 if (!result.isInitialized()) { 527 throw newUninitializedMessageException(result); 528 } 529 return result; 530 } 531 532 @Override 533 public crosby.binary.Fileformat.Blob buildPartial() { 534 crosby.binary.Fileformat.Blob result = new crosby.binary.Fileformat.Blob(this); 535 int from_bitField0_ = bitField0_; 536 int to_bitField0_ = 0; 537 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 538 to_bitField0_ |= 0x00000001; 539 } 540 result.raw_ = raw_; 541 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 542 to_bitField0_ |= 0x00000002; 543 } 544 result.rawSize_ = rawSize_; 545 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 546 to_bitField0_ |= 0x00000004; 547 } 548 result.zlibData_ = zlibData_; 549 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 550 to_bitField0_ |= 0x00000008; 551 } 552 result.lzmaData_ = lzmaData_; 553 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 554 to_bitField0_ |= 0x00000010; 555 } 556 result.oBSOLETEBzip2Data_ = oBSOLETEBzip2Data_; 557 result.bitField0_ = to_bitField0_; 558 return result; 559 } 560 561 @Override 562 public Builder mergeFrom(crosby.binary.Fileformat.Blob other) { 563 if (other == crosby.binary.Fileformat.Blob.getDefaultInstance()) return this; 564 if (other.hasRaw()) { 565 setRaw(other.getRaw()); 566 } 567 if (other.hasRawSize()) { 568 setRawSize(other.getRawSize()); 569 } 570 if (other.hasZlibData()) { 571 setZlibData(other.getZlibData()); 572 } 573 if (other.hasLzmaData()) { 574 setLzmaData(other.getLzmaData()); 575 } 576 if (other.hasOBSOLETEBzip2Data()) { 577 setOBSOLETEBzip2Data(other.getOBSOLETEBzip2Data()); 578 } 579 setUnknownFields( 580 getUnknownFields().concat(other.unknownFields)); 581 return this; 582 } 583 584 @Override 585 public final boolean isInitialized() { 586 return true; 587 } 588 589 @Override 590 public Builder mergeFrom( 591 com.google.protobuf.CodedInputStream input, 592 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 593 throws java.io.IOException { 594 crosby.binary.Fileformat.Blob parsedMessage = null; 595 try { 596 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 597 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 598 parsedMessage = (crosby.binary.Fileformat.Blob) e.getUnfinishedMessage(); 599 throw e; 600 } finally { 601 if (parsedMessage != null) { 602 mergeFrom(parsedMessage); 493 super(DEFAULT_INSTANCE); 494 } 495 496 497 /** 498 * <pre> 499 * No compression 500 * </pre> 501 * 502 * <code>optional bytes raw = 1;</code> 503 */ 504 public boolean hasRaw() { 505 return instance.hasRaw(); 506 } 507 /** 508 * <pre> 509 * No compression 510 * </pre> 511 * 512 * <code>optional bytes raw = 1;</code> 513 */ 514 public com.google.protobuf.ByteString getRaw() { 515 return instance.getRaw(); 516 } 517 /** 518 * <pre> 519 * No compression 520 * </pre> 521 * 522 * <code>optional bytes raw = 1;</code> 523 */ 524 public Builder setRaw(com.google.protobuf.ByteString value) { 525 copyOnWrite(); 526 instance.setRaw(value); 527 return this; 528 } 529 /** 530 * <pre> 531 * No compression 532 * </pre> 533 * 534 * <code>optional bytes raw = 1;</code> 535 */ 536 public Builder clearRaw() { 537 copyOnWrite(); 538 instance.clearRaw(); 539 return this; 540 } 541 542 /** 543 * <pre> 544 * When compressed, the uncompressed size 545 * </pre> 546 * 547 * <code>optional int32 raw_size = 2;</code> 548 */ 549 public boolean hasRawSize() { 550 return instance.hasRawSize(); 551 } 552 /** 553 * <pre> 554 * When compressed, the uncompressed size 555 * </pre> 556 * 557 * <code>optional int32 raw_size = 2;</code> 558 */ 559 public int getRawSize() { 560 return instance.getRawSize(); 561 } 562 /** 563 * <pre> 564 * When compressed, the uncompressed size 565 * </pre> 566 * 567 * <code>optional int32 raw_size = 2;</code> 568 */ 569 public Builder setRawSize(int value) { 570 copyOnWrite(); 571 instance.setRawSize(value); 572 return this; 573 } 574 /** 575 * <pre> 576 * When compressed, the uncompressed size 577 * </pre> 578 * 579 * <code>optional int32 raw_size = 2;</code> 580 */ 581 public Builder clearRawSize() { 582 copyOnWrite(); 583 instance.clearRawSize(); 584 return this; 585 } 586 587 /** 588 * <pre> 589 * Possible compressed versions of the data. 590 * </pre> 591 * 592 * <code>optional bytes zlib_data = 3;</code> 593 */ 594 public boolean hasZlibData() { 595 return instance.hasZlibData(); 596 } 597 /** 598 * <pre> 599 * Possible compressed versions of the data. 600 * </pre> 601 * 602 * <code>optional bytes zlib_data = 3;</code> 603 */ 604 public com.google.protobuf.ByteString getZlibData() { 605 return instance.getZlibData(); 606 } 607 /** 608 * <pre> 609 * Possible compressed versions of the data. 610 * </pre> 611 * 612 * <code>optional bytes zlib_data = 3;</code> 613 */ 614 public Builder setZlibData(com.google.protobuf.ByteString value) { 615 copyOnWrite(); 616 instance.setZlibData(value); 617 return this; 618 } 619 /** 620 * <pre> 621 * Possible compressed versions of the data. 622 * </pre> 623 * 624 * <code>optional bytes zlib_data = 3;</code> 625 */ 626 public Builder clearZlibData() { 627 copyOnWrite(); 628 instance.clearZlibData(); 629 return this; 630 } 631 632 /** 633 * <pre> 634 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 635 * </pre> 636 * 637 * <code>optional bytes lzma_data = 4;</code> 638 */ 639 public boolean hasLzmaData() { 640 return instance.hasLzmaData(); 641 } 642 /** 643 * <pre> 644 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 645 * </pre> 646 * 647 * <code>optional bytes lzma_data = 4;</code> 648 */ 649 public com.google.protobuf.ByteString getLzmaData() { 650 return instance.getLzmaData(); 651 } 652 /** 653 * <pre> 654 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 655 * </pre> 656 * 657 * <code>optional bytes lzma_data = 4;</code> 658 */ 659 public Builder setLzmaData(com.google.protobuf.ByteString value) { 660 copyOnWrite(); 661 instance.setLzmaData(value); 662 return this; 663 } 664 /** 665 * <pre> 666 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 667 * </pre> 668 * 669 * <code>optional bytes lzma_data = 4;</code> 670 */ 671 public Builder clearLzmaData() { 672 copyOnWrite(); 673 instance.clearLzmaData(); 674 return this; 675 } 676 677 /** 678 * <pre> 679 * Formerly used for bzip2 compressed data. Depreciated in 2010. 680 * </pre> 681 * 682 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 683 */ 684 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 685 return instance.hasOBSOLETEBzip2Data(); 686 } 687 /** 688 * <pre> 689 * Formerly used for bzip2 compressed data. Depreciated in 2010. 690 * </pre> 691 * 692 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 693 */ 694 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 695 return instance.getOBSOLETEBzip2Data(); 696 } 697 /** 698 * <pre> 699 * Formerly used for bzip2 compressed data. Depreciated in 2010. 700 * </pre> 701 * 702 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 703 */ 704 @java.lang.Deprecated public Builder setOBSOLETEBzip2Data(com.google.protobuf.ByteString value) { 705 copyOnWrite(); 706 instance.setOBSOLETEBzip2Data(value); 707 return this; 708 } 709 /** 710 * <pre> 711 * Formerly used for bzip2 compressed data. Depreciated in 2010. 712 * </pre> 713 * 714 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 715 */ 716 @java.lang.Deprecated public Builder clearOBSOLETEBzip2Data() { 717 copyOnWrite(); 718 instance.clearOBSOLETEBzip2Data(); 719 return this; 720 } 721 722 // @@protoc_insertion_point(builder_scope:OSMPBF.Blob) 723 } 724 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 725 protected final java.lang.Object dynamicMethod( 726 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 727 java.lang.Object arg0, java.lang.Object arg1) { 728 switch (method) { 729 case NEW_MUTABLE_INSTANCE: { 730 return new crosby.binary.Fileformat.Blob(); 731 } 732 case IS_INITIALIZED: { 733 return DEFAULT_INSTANCE; 734 } 735 case MAKE_IMMUTABLE: { 736 return null; 737 } 738 case NEW_BUILDER: { 739 return new Builder(); 740 } 741 case VISIT: { 742 Visitor visitor = (Visitor) arg0; 743 crosby.binary.Fileformat.Blob other = (crosby.binary.Fileformat.Blob) arg1; 744 raw_ = visitor.visitByteString( 745 hasRaw(), raw_, 746 other.hasRaw(), other.raw_); 747 rawSize_ = visitor.visitInt( 748 hasRawSize(), rawSize_, 749 other.hasRawSize(), other.rawSize_); 750 zlibData_ = visitor.visitByteString( 751 hasZlibData(), zlibData_, 752 other.hasZlibData(), other.zlibData_); 753 lzmaData_ = visitor.visitByteString( 754 hasLzmaData(), lzmaData_, 755 other.hasLzmaData(), other.lzmaData_); 756 oBSOLETEBzip2Data_ = visitor.visitByteString( 757 hasOBSOLETEBzip2Data(), oBSOLETEBzip2Data_, 758 other.hasOBSOLETEBzip2Data(), other.oBSOLETEBzip2Data_); 759 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 760 .INSTANCE) { 761 bitField0_ |= other.bitField0_; 603 762 } 604 } 605 return this; 606 } 607 private int bitField0_; 608 609 private com.google.protobuf.ByteString raw_ = com.google.protobuf.ByteString.EMPTY; 610 /** 611 * <code>optional bytes raw = 1;</code> 612 * 613 * <pre> 614 * No compression 615 * </pre> 616 */ 617 @Override 618 public boolean hasRaw() { 619 return ((bitField0_ & 0x00000001) == 0x00000001); 620 } 621 /** 622 * <code>optional bytes raw = 1;</code> 623 * 624 * <pre> 625 * No compression 626 * </pre> 627 */ 628 @Override 629 public com.google.protobuf.ByteString getRaw() { 630 return raw_; 631 } 632 /** 633 * <code>optional bytes raw = 1;</code> 634 * 635 * <pre> 636 * No compression 637 * </pre> 638 */ 639 public Builder setRaw(com.google.protobuf.ByteString value) { 640 if (value == null) { 641 throw new NullPointerException(); 642 } 643 bitField0_ |= 0x00000001; 644 raw_ = value; 645 646 return this; 647 } 648 /** 649 * <code>optional bytes raw = 1;</code> 650 * 651 * <pre> 652 * No compression 653 * </pre> 654 */ 655 public Builder clearRaw() { 656 bitField0_ = (bitField0_ & ~0x00000001); 657 raw_ = getDefaultInstance().getRaw(); 658 659 return this; 660 } 661 662 private int rawSize_ ; 663 /** 664 * <code>optional int32 raw_size = 2;</code> 665 * 666 * <pre> 667 * When compressed, the uncompressed size 668 * </pre> 669 */ 670 @Override 671 public boolean hasRawSize() { 672 return ((bitField0_ & 0x00000002) == 0x00000002); 673 } 674 /** 675 * <code>optional int32 raw_size = 2;</code> 676 * 677 * <pre> 678 * When compressed, the uncompressed size 679 * </pre> 680 */ 681 @Override 682 public int getRawSize() { 683 return rawSize_; 684 } 685 /** 686 * <code>optional int32 raw_size = 2;</code> 687 * 688 * <pre> 689 * When compressed, the uncompressed size 690 * </pre> 691 */ 692 public Builder setRawSize(int value) { 693 bitField0_ |= 0x00000002; 694 rawSize_ = value; 695 696 return this; 697 } 698 /** 699 * <code>optional int32 raw_size = 2;</code> 700 * 701 * <pre> 702 * When compressed, the uncompressed size 703 * </pre> 704 */ 705 public Builder clearRawSize() { 706 bitField0_ = (bitField0_ & ~0x00000002); 707 rawSize_ = 0; 708 709 return this; 710 } 711 712 private com.google.protobuf.ByteString zlibData_ = com.google.protobuf.ByteString.EMPTY; 713 /** 714 * <code>optional bytes zlib_data = 3;</code> 715 * 716 * <pre> 717 * Possible compressed versions of the data. 718 * </pre> 719 */ 720 @Override 721 public boolean hasZlibData() { 722 return ((bitField0_ & 0x00000004) == 0x00000004); 723 } 724 /** 725 * <code>optional bytes zlib_data = 3;</code> 726 * 727 * <pre> 728 * Possible compressed versions of the data. 729 * </pre> 730 */ 731 @Override 732 public com.google.protobuf.ByteString getZlibData() { 733 return zlibData_; 734 } 735 /** 736 * <code>optional bytes zlib_data = 3;</code> 737 * 738 * <pre> 739 * Possible compressed versions of the data. 740 * </pre> 741 */ 742 public Builder setZlibData(com.google.protobuf.ByteString value) { 743 if (value == null) { 744 throw new NullPointerException(); 745 } 746 bitField0_ |= 0x00000004; 747 zlibData_ = value; 748 749 return this; 750 } 751 /** 752 * <code>optional bytes zlib_data = 3;</code> 753 * 754 * <pre> 755 * Possible compressed versions of the data. 756 * </pre> 757 */ 758 public Builder clearZlibData() { 759 bitField0_ = (bitField0_ & ~0x00000004); 760 zlibData_ = getDefaultInstance().getZlibData(); 761 762 return this; 763 } 764 765 private com.google.protobuf.ByteString lzmaData_ = com.google.protobuf.ByteString.EMPTY; 766 /** 767 * <code>optional bytes lzma_data = 4;</code> 768 * 769 * <pre> 770 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 771 * </pre> 772 */ 773 @Override 774 public boolean hasLzmaData() { 775 return ((bitField0_ & 0x00000008) == 0x00000008); 776 } 777 /** 778 * <code>optional bytes lzma_data = 4;</code> 779 * 780 * <pre> 781 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 782 * </pre> 783 */ 784 @Override 785 public com.google.protobuf.ByteString getLzmaData() { 786 return lzmaData_; 787 } 788 /** 789 * <code>optional bytes lzma_data = 4;</code> 790 * 791 * <pre> 792 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 793 * </pre> 794 */ 795 public Builder setLzmaData(com.google.protobuf.ByteString value) { 796 if (value == null) { 797 throw new NullPointerException(); 798 } 799 bitField0_ |= 0x00000008; 800 lzmaData_ = value; 801 802 return this; 803 } 804 /** 805 * <code>optional bytes lzma_data = 4;</code> 806 * 807 * <pre> 808 * PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. 809 * </pre> 810 */ 811 public Builder clearLzmaData() { 812 bitField0_ = (bitField0_ & ~0x00000008); 813 lzmaData_ = getDefaultInstance().getLzmaData(); 814 815 return this; 816 } 817 818 private com.google.protobuf.ByteString oBSOLETEBzip2Data_ = com.google.protobuf.ByteString.EMPTY; 819 /** 820 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 821 * 822 * <pre> 823 * Formerly used for bzip2 compressed data. Depreciated in 2010. 824 * </pre> 825 */ 826 @Override 827 @java.lang.Deprecated public boolean hasOBSOLETEBzip2Data() { 828 return ((bitField0_ & 0x00000010) == 0x00000010); 829 } 830 /** 831 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 832 * 833 * <pre> 834 * Formerly used for bzip2 compressed data. Depreciated in 2010. 835 * </pre> 836 */ 837 @Override 838 @java.lang.Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data() { 839 return oBSOLETEBzip2Data_; 840 } 841 /** 842 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 843 * 844 * <pre> 845 * Formerly used for bzip2 compressed data. Depreciated in 2010. 846 * </pre> 847 */ 848 @java.lang.Deprecated public Builder setOBSOLETEBzip2Data(com.google.protobuf.ByteString value) { 849 if (value == null) { 850 throw new NullPointerException(); 851 } 852 bitField0_ |= 0x00000010; 853 oBSOLETEBzip2Data_ = value; 854 855 return this; 856 } 857 /** 858 * <code>optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];</code> 859 * 860 * <pre> 861 * Formerly used for bzip2 compressed data. Depreciated in 2010. 862 * </pre> 863 */ 864 @java.lang.Deprecated public Builder clearOBSOLETEBzip2Data() { 865 bitField0_ = (bitField0_ & ~0x00000010); 866 oBSOLETEBzip2Data_ = getDefaultInstance().getOBSOLETEBzip2Data(); 867 868 return this; 869 } 870 871 // @@protoc_insertion_point(builder_scope:OSMPBF.Blob) 872 } 873 763 return this; 764 } 765 case MERGE_FROM_STREAM: { 766 com.google.protobuf.CodedInputStream input = 767 (com.google.protobuf.CodedInputStream) arg0; 768 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 769 (com.google.protobuf.ExtensionRegistryLite) arg1; 770 try { 771 boolean done = false; 772 while (!done) { 773 int tag = input.readTag(); 774 switch (tag) { 775 case 0: 776 done = true; 777 break; 778 default: { 779 if (!parseUnknownField(tag, input)) { 780 done = true; 781 } 782 break; 783 } 784 case 10: { 785 bitField0_ |= 0x00000001; 786 raw_ = input.readBytes(); 787 break; 788 } 789 case 16: { 790 bitField0_ |= 0x00000002; 791 rawSize_ = input.readInt32(); 792 break; 793 } 794 case 26: { 795 bitField0_ |= 0x00000004; 796 zlibData_ = input.readBytes(); 797 break; 798 } 799 case 34: { 800 bitField0_ |= 0x00000008; 801 lzmaData_ = input.readBytes(); 802 break; 803 } 804 case 42: { 805 bitField0_ |= 0x00000010; 806 oBSOLETEBzip2Data_ = input.readBytes(); 807 break; 808 } 809 } 810 } 811 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 812 throw new RuntimeException(e.setUnfinishedMessage(this)); 813 } catch (java.io.IOException e) { 814 throw new RuntimeException( 815 new com.google.protobuf.InvalidProtocolBufferException( 816 e.getMessage()).setUnfinishedMessage(this)); 817 } finally { 818 } 819 } 820 // fall through 821 case GET_DEFAULT_INSTANCE: { 822 return DEFAULT_INSTANCE; 823 } 824 case GET_PARSER: { 825 if (PARSER == null) { synchronized (crosby.binary.Fileformat.Blob.class) { 826 if (PARSER == null) { 827 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 828 } 829 } 830 } 831 return PARSER; 832 } 833 } 834 throw new UnsupportedOperationException(); 835 } 836 837 838 // @@protoc_insertion_point(class_scope:OSMPBF.Blob) 839 private static final crosby.binary.Fileformat.Blob DEFAULT_INSTANCE; 874 840 static { 875 defaultInstance = new Blob(true); 876 defaultInstance.initFields(); 877 } 878 879 // @@protoc_insertion_point(class_scope:OSMPBF.Blob) 841 DEFAULT_INSTANCE = new Blob(); 842 DEFAULT_INSTANCE.makeImmutable(); 843 } 844 845 public static crosby.binary.Fileformat.Blob getDefaultInstance() { 846 return DEFAULT_INSTANCE; 847 } 848 849 private static volatile com.google.protobuf.Parser<Blob> PARSER; 850 851 public static com.google.protobuf.Parser<Blob> parser() { 852 return DEFAULT_INSTANCE.getParserForType(); 853 } 880 854 } 881 855 … … 919 893 * Protobuf type {@code OSMPBF.BlobHeader} 920 894 */ 921 public static final class BlobHeader extends 922 com.google.protobuf.GeneratedMessageLite implements 895 public static final class BlobHeader extends 896 com.google.protobuf.GeneratedMessageLite< 897 BlobHeader, BlobHeader.Builder> implements 923 898 // @@protoc_insertion_point(message_implements:OSMPBF.BlobHeader) 924 899 BlobHeaderOrBuilder { 925 // Use BlobHeader.newBuilder() to construct. 926 private BlobHeader(com.google.protobuf.GeneratedMessageLite.Builder builder) { 927 super(builder); 928 this.unknownFields = builder.getUnknownFields(); 929 } 930 private BlobHeader(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 931 932 private static final BlobHeader defaultInstance; 933 public static BlobHeader getDefaultInstance() { 934 return defaultInstance; 935 } 936 937 @Override 938 public BlobHeader getDefaultInstanceForType() { 939 return defaultInstance; 940 } 941 942 private final com.google.protobuf.ByteString unknownFields; 943 private BlobHeader( 944 com.google.protobuf.CodedInputStream input, 945 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 946 throws com.google.protobuf.InvalidProtocolBufferException { 947 initFields(); 948 int mutable_bitField0_ = 0; 949 com.google.protobuf.ByteString.Output unknownFieldsOutput = 950 com.google.protobuf.ByteString.newOutput(); 951 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 952 com.google.protobuf.CodedOutputStream.newInstance( 953 unknownFieldsOutput); 954 try { 955 boolean done = false; 956 while (!done) { 957 int tag = input.readTag(); 958 switch (tag) { 959 case 0: 960 done = true; 961 break; 962 default: { 963 if (!parseUnknownField(input, unknownFieldsCodedOutput, 964 extensionRegistry, tag)) { 965 done = true; 966 } 967 break; 968 } 969 case 10: { 970 com.google.protobuf.ByteString bs = input.readBytes(); 971 bitField0_ |= 0x00000001; 972 type_ = bs; 973 break; 974 } 975 case 18: { 976 bitField0_ |= 0x00000002; 977 indexdata_ = input.readBytes(); 978 break; 979 } 980 case 24: { 981 bitField0_ |= 0x00000004; 982 datasize_ = input.readInt32(); 983 break; 984 } 985 } 986 } 987 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 988 throw e.setUnfinishedMessage(this); 989 } catch (java.io.IOException e) { 990 throw new com.google.protobuf.InvalidProtocolBufferException( 991 e.getMessage()).setUnfinishedMessage(this); 992 } finally { 993 try { 994 unknownFieldsCodedOutput.flush(); 995 } catch (java.io.IOException e) { 996 // Should not happen 997 } finally { 998 unknownFields = unknownFieldsOutput.toByteString(); 999 } 1000 makeExtensionsImmutable(); 1001 } 1002 } 1003 public static com.google.protobuf.Parser<BlobHeader> PARSER = 1004 new com.google.protobuf.AbstractParser<BlobHeader>() { 1005 @Override 1006 public BlobHeader parsePartialFrom( 1007 com.google.protobuf.CodedInputStream input, 1008 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1009 throws com.google.protobuf.InvalidProtocolBufferException { 1010 return new BlobHeader(input, extensionRegistry); 1011 } 1012 }; 1013 1014 @java.lang.Override 1015 public com.google.protobuf.Parser<BlobHeader> getParserForType() { 1016 return PARSER; 1017 } 1018 900 private BlobHeader() { 901 type_ = ""; 902 indexdata_ = com.google.protobuf.ByteString.EMPTY; 903 } 1019 904 private int bitField0_; 1020 905 public static final int TYPE_FIELD_NUMBER = 1; 1021 private java.lang. Objecttype_;906 private java.lang.String type_; 1022 907 /** 1023 908 * <code>required string type = 1;</code> 1024 909 */ 1025 @Override 1026 public boolean hasType() { 910 public boolean hasType() { 1027 911 return ((bitField0_ & 0x00000001) == 0x00000001); 1028 912 } … … 1030 914 * <code>required string type = 1;</code> 1031 915 */ 1032 @Override 1033 public java.lang.String getType() { 1034 java.lang.Object ref = type_; 1035 if (ref instanceof java.lang.String) { 1036 return (java.lang.String) ref; 1037 } else { 1038 com.google.protobuf.ByteString bs = 1039 (com.google.protobuf.ByteString) ref; 1040 java.lang.String s = bs.toStringUtf8(); 1041 if (bs.isValidUtf8()) { 1042 type_ = s; 1043 } 1044 return s; 1045 } 916 public java.lang.String getType() { 917 return type_; 1046 918 } 1047 919 /** 1048 920 * <code>required string type = 1;</code> 1049 921 */ 1050 @Override 1051 public com.google.protobuf.ByteString 922 public com.google.protobuf.ByteString 1052 923 getTypeBytes() { 1053 java.lang.Object ref = type_; 1054 if (ref instanceof java.lang.String) { 1055 com.google.protobuf.ByteString b = 1056 com.google.protobuf.ByteString.copyFromUtf8( 1057 (java.lang.String) ref); 1058 type_ = b; 1059 return b; 1060 } else { 1061 return (com.google.protobuf.ByteString) ref; 1062 } 924 return com.google.protobuf.ByteString.copyFromUtf8(type_); 925 } 926 /** 927 * <code>required string type = 1;</code> 928 */ 929 private void setType( 930 java.lang.String value) { 931 if (value == null) { 932 throw new NullPointerException(); 933 } 934 bitField0_ |= 0x00000001; 935 type_ = value; 936 } 937 /** 938 * <code>required string type = 1;</code> 939 */ 940 private void clearType() { 941 bitField0_ = (bitField0_ & ~0x00000001); 942 type_ = getDefaultInstance().getType(); 943 } 944 /** 945 * <code>required string type = 1;</code> 946 */ 947 private void setTypeBytes( 948 com.google.protobuf.ByteString value) { 949 if (value == null) { 950 throw new NullPointerException(); 951 } 952 bitField0_ |= 0x00000001; 953 type_ = value.toStringUtf8(); 1063 954 } 1064 955 … … 1068 959 * <code>optional bytes indexdata = 2;</code> 1069 960 */ 1070 @Override 1071 public boolean hasIndexdata() { 961 public boolean hasIndexdata() { 1072 962 return ((bitField0_ & 0x00000002) == 0x00000002); 1073 963 } … … 1075 965 * <code>optional bytes indexdata = 2;</code> 1076 966 */ 1077 @Override 1078 public com.google.protobuf.ByteString getIndexdata() { 967 public com.google.protobuf.ByteString getIndexdata() { 1079 968 return indexdata_; 969 } 970 /** 971 * <code>optional bytes indexdata = 2;</code> 972 */ 973 private void setIndexdata(com.google.protobuf.ByteString value) { 974 if (value == null) { 975 throw new NullPointerException(); 976 } 977 bitField0_ |= 0x00000002; 978 indexdata_ = value; 979 } 980 /** 981 * <code>optional bytes indexdata = 2;</code> 982 */ 983 private void clearIndexdata() { 984 bitField0_ = (bitField0_ & ~0x00000002); 985 indexdata_ = getDefaultInstance().getIndexdata(); 1080 986 } 1081 987 … … 1085 991 * <code>required int32 datasize = 3;</code> 1086 992 */ 1087 @Override 1088 public boolean hasDatasize() { 993 public boolean hasDatasize() { 1089 994 return ((bitField0_ & 0x00000004) == 0x00000004); 1090 995 } … … 1092 997 * <code>required int32 datasize = 3;</code> 1093 998 */ 1094 @Override 1095 public int getDatasize() { 999 public int getDatasize() { 1096 1000 return datasize_; 1097 1001 } 1098 1099 private void initFields() { 1100 type_ = ""; 1101 indexdata_ = com.google.protobuf.ByteString.EMPTY; 1002 /** 1003 * <code>required int32 datasize = 3;</code> 1004 */ 1005 private void setDatasize(int value) { 1006 bitField0_ |= 0x00000004; 1007 datasize_ = value; 1008 } 1009 /** 1010 * <code>required int32 datasize = 3;</code> 1011 */ 1012 private void clearDatasize() { 1013 bitField0_ = (bitField0_ & ~0x00000004); 1102 1014 datasize_ = 0; 1103 1015 } 1104 private byte memoizedIsInitialized = -1; 1105 @Override 1106 public final boolean isInitialized() { 1107 byte isInitialized = memoizedIsInitialized; 1108 if (isInitialized == 1) return true; 1109 if (isInitialized == 0) return false; 1110 1111 if (!hasType()) { 1112 memoizedIsInitialized = 0; 1113 return false; 1114 } 1115 if (!hasDatasize()) { 1116 memoizedIsInitialized = 0; 1117 return false; 1118 } 1119 memoizedIsInitialized = 1; 1120 return true; 1121 } 1122 1123 @Override 1124 public void writeTo(com.google.protobuf.CodedOutputStream output) 1016 1017 public void writeTo(com.google.protobuf.CodedOutputStream output) 1125 1018 throws java.io.IOException { 1126 getSerializedSize();1127 1019 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1128 output.write Bytes(1, getTypeBytes());1020 output.writeString(1, getType()); 1129 1021 } 1130 1022 if (((bitField0_ & 0x00000002) == 0x00000002)) { … … 1134 1026 output.writeInt32(3, datasize_); 1135 1027 } 1136 output.writeRawBytes(unknownFields); 1137 } 1138 1139 private int memoizedSerializedSize = -1; 1140 @Override 1141 public int getSerializedSize() { 1028 unknownFields.writeTo(output); 1029 } 1030 1031 public int getSerializedSize() { 1142 1032 int size = memoizedSerializedSize; 1143 1033 if (size != -1) return size; … … 1146 1036 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1147 1037 size += com.google.protobuf.CodedOutputStream 1148 .compute BytesSize(1, getTypeBytes());1038 .computeStringSize(1, getType()); 1149 1039 } 1150 1040 if (((bitField0_ & 0x00000002) == 0x00000002)) { … … 1156 1046 .computeInt32Size(3, datasize_); 1157 1047 } 1158 size += unknownFields. size();1048 size += unknownFields.getSerializedSize(); 1159 1049 memoizedSerializedSize = size; 1160 1050 return size; 1161 1051 } 1162 1052 1163 private static final long serialVersionUID = 0L; 1164 @java.lang.Override 1165 protected java.lang.Object writeReplace() 1166 throws java.io.ObjectStreamException { 1167 return super.writeReplace(); 1168 } 1169 1053 public static crosby.binary.Fileformat.BlobHeader parseFrom( 1054 java.nio.ByteBuffer data) 1055 throws com.google.protobuf.InvalidProtocolBufferException { 1056 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1057 DEFAULT_INSTANCE, data); 1058 } 1059 public static crosby.binary.Fileformat.BlobHeader parseFrom( 1060 java.nio.ByteBuffer data, 1061 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1062 throws com.google.protobuf.InvalidProtocolBufferException { 1063 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1064 DEFAULT_INSTANCE, data, extensionRegistry); 1065 } 1170 1066 public static crosby.binary.Fileformat.BlobHeader parseFrom( 1171 1067 com.google.protobuf.ByteString data) 1172 1068 throws com.google.protobuf.InvalidProtocolBufferException { 1173 return PARSER.parseFrom(data); 1069 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1070 DEFAULT_INSTANCE, data); 1174 1071 } 1175 1072 public static crosby.binary.Fileformat.BlobHeader parseFrom( … … 1177 1074 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1178 1075 throws com.google.protobuf.InvalidProtocolBufferException { 1179 return PARSER.parseFrom(data, extensionRegistry); 1076 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1077 DEFAULT_INSTANCE, data, extensionRegistry); 1180 1078 } 1181 1079 public static crosby.binary.Fileformat.BlobHeader parseFrom(byte[] data) 1182 1080 throws com.google.protobuf.InvalidProtocolBufferException { 1183 return PARSER.parseFrom(data); 1081 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1082 DEFAULT_INSTANCE, data); 1184 1083 } 1185 1084 public static crosby.binary.Fileformat.BlobHeader parseFrom( … … 1187 1086 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1188 1087 throws com.google.protobuf.InvalidProtocolBufferException { 1189 return PARSER.parseFrom(data, extensionRegistry); 1088 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1089 DEFAULT_INSTANCE, data, extensionRegistry); 1190 1090 } 1191 1091 public static crosby.binary.Fileformat.BlobHeader parseFrom(java.io.InputStream input) 1192 1092 throws java.io.IOException { 1193 return PARSER.parseFrom(input); 1093 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1094 DEFAULT_INSTANCE, input); 1194 1095 } 1195 1096 public static crosby.binary.Fileformat.BlobHeader parseFrom( … … 1197 1098 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1198 1099 throws java.io.IOException { 1199 return PARSER.parseFrom(input, extensionRegistry); 1100 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1101 DEFAULT_INSTANCE, input, extensionRegistry); 1200 1102 } 1201 1103 public static crosby.binary.Fileformat.BlobHeader parseDelimitedFrom(java.io.InputStream input) 1202 1104 throws java.io.IOException { 1203 return PARSER.parseDelimitedFrom(input);1105 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 1204 1106 } 1205 1107 public static crosby.binary.Fileformat.BlobHeader parseDelimitedFrom( … … 1207 1109 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1208 1110 throws java.io.IOException { 1209 return PARSER.parseDelimitedFrom(input, extensionRegistry);1111 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 1210 1112 } 1211 1113 public static crosby.binary.Fileformat.BlobHeader parseFrom( 1212 1114 com.google.protobuf.CodedInputStream input) 1213 1115 throws java.io.IOException { 1214 return PARSER.parseFrom(input); 1116 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1117 DEFAULT_INSTANCE, input); 1215 1118 } 1216 1119 public static crosby.binary.Fileformat.BlobHeader parseFrom( … … 1218 1121 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1219 1122 throws java.io.IOException { 1220 return PARSER.parseFrom(input, extensionRegistry); 1221 } 1222 1223 public static Builder newBuilder() { return Builder.create(); } 1224 @Override 1225 public Builder newBuilderForType() { return newBuilder(); } 1123 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1124 DEFAULT_INSTANCE, input, extensionRegistry); 1125 } 1126 1127 public static Builder newBuilder() { 1128 return DEFAULT_INSTANCE.toBuilder(); 1129 } 1226 1130 public static Builder newBuilder(crosby.binary.Fileformat.BlobHeader prototype) { 1227 return newBuilder().mergeFrom(prototype); 1228 } 1229 @Override 1230 public Builder toBuilder() { return newBuilder(this); } 1131 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1132 } 1231 1133 1232 1134 /** … … 1235 1137 public static final class Builder extends 1236 1138 com.google.protobuf.GeneratedMessageLite.Builder< 1237 crosby.binary.Fileformat.BlobHeader, Builder> 1238 implements 1139 crosby.binary.Fileformat.BlobHeader, Builder> implements 1239 1140 // @@protoc_insertion_point(builder_implements:OSMPBF.BlobHeader) 1240 1141 crosby.binary.Fileformat.BlobHeaderOrBuilder { 1241 1142 // Construct using crosby.binary.Fileformat.BlobHeader.newBuilder() 1242 1143 private Builder() { 1243 maybeForceBuilderInitialization(); 1244 } 1245 1246 private void maybeForceBuilderInitialization() { 1247 } 1248 private static Builder create() { 1249 return new Builder(); 1250 } 1251 1252 @Override 1253 public Builder clear() { 1254 super.clear(); 1255 type_ = ""; 1256 bitField0_ = (bitField0_ & ~0x00000001); 1257 indexdata_ = com.google.protobuf.ByteString.EMPTY; 1258 bitField0_ = (bitField0_ & ~0x00000002); 1259 datasize_ = 0; 1260 bitField0_ = (bitField0_ & ~0x00000004); 1261 return this; 1262 } 1263 1264 @Override 1265 public Builder clone() { 1266 return create().mergeFrom(buildPartial()); 1267 } 1268 1269 @Override 1270 public crosby.binary.Fileformat.BlobHeader getDefaultInstanceForType() { 1271 return crosby.binary.Fileformat.BlobHeader.getDefaultInstance(); 1272 } 1273 1274 @Override 1275 public crosby.binary.Fileformat.BlobHeader build() { 1276 crosby.binary.Fileformat.BlobHeader result = buildPartial(); 1277 if (!result.isInitialized()) { 1278 throw newUninitializedMessageException(result); 1279 } 1280 return result; 1281 } 1282 1283 @Override 1284 public crosby.binary.Fileformat.BlobHeader buildPartial() { 1285 crosby.binary.Fileformat.BlobHeader result = new crosby.binary.Fileformat.BlobHeader(this); 1286 int from_bitField0_ = bitField0_; 1287 int to_bitField0_ = 0; 1288 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 1289 to_bitField0_ |= 0x00000001; 1290 } 1291 result.type_ = type_; 1292 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 1293 to_bitField0_ |= 0x00000002; 1294 } 1295 result.indexdata_ = indexdata_; 1296 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 1297 to_bitField0_ |= 0x00000004; 1298 } 1299 result.datasize_ = datasize_; 1300 result.bitField0_ = to_bitField0_; 1301 return result; 1302 } 1303 1304 @Override 1305 public Builder mergeFrom(crosby.binary.Fileformat.BlobHeader other) { 1306 if (other == crosby.binary.Fileformat.BlobHeader.getDefaultInstance()) return this; 1307 if (other.hasType()) { 1308 bitField0_ |= 0x00000001; 1309 type_ = other.type_; 1310 1311 } 1312 if (other.hasIndexdata()) { 1313 setIndexdata(other.getIndexdata()); 1314 } 1315 if (other.hasDatasize()) { 1316 setDatasize(other.getDatasize()); 1317 } 1318 setUnknownFields( 1319 getUnknownFields().concat(other.unknownFields)); 1320 return this; 1321 } 1322 1323 @Override 1324 public final boolean isInitialized() { 1325 if (!hasType()) { 1326 1327 return false; 1328 } 1329 if (!hasDatasize()) { 1330 1331 return false; 1332 } 1333 return true; 1334 } 1335 1336 @Override 1337 public Builder mergeFrom( 1338 com.google.protobuf.CodedInputStream input, 1339 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1340 throws java.io.IOException { 1341 crosby.binary.Fileformat.BlobHeader parsedMessage = null; 1342 try { 1343 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1344 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1345 parsedMessage = (crosby.binary.Fileformat.BlobHeader) e.getUnfinishedMessage(); 1346 throw e; 1347 } finally { 1348 if (parsedMessage != null) { 1349 mergeFrom(parsedMessage); 1350 } 1351 } 1352 return this; 1353 } 1354 private int bitField0_; 1355 1356 private java.lang.Object type_ = ""; 1144 super(DEFAULT_INSTANCE); 1145 } 1146 1147 1357 1148 /** 1358 1149 * <code>required string type = 1;</code> 1359 1150 */ 1360 @Override 1361 public boolean hasType() { 1362 return ((bitField0_ & 0x00000001) == 0x00000001); 1151 public boolean hasType() { 1152 return instance.hasType(); 1363 1153 } 1364 1154 /** 1365 1155 * <code>required string type = 1;</code> 1366 1156 */ 1367 @Override 1368 public java.lang.String getType() { 1369 java.lang.Object ref = type_; 1370 if (!(ref instanceof java.lang.String)) { 1371 com.google.protobuf.ByteString bs = 1372 (com.google.protobuf.ByteString) ref; 1373 java.lang.String s = bs.toStringUtf8(); 1374 if (bs.isValidUtf8()) { 1375 type_ = s; 1376 } 1377 return s; 1378 } else { 1379 return (java.lang.String) ref; 1380 } 1157 public java.lang.String getType() { 1158 return instance.getType(); 1381 1159 } 1382 1160 /** 1383 1161 * <code>required string type = 1;</code> 1384 1162 */ 1385 @Override 1386 public com.google.protobuf.ByteString 1163 public com.google.protobuf.ByteString 1387 1164 getTypeBytes() { 1388 java.lang.Object ref = type_; 1389 if (ref instanceof String) { 1390 com.google.protobuf.ByteString b = 1391 com.google.protobuf.ByteString.copyFromUtf8( 1392 (java.lang.String) ref); 1393 type_ = b; 1394 return b; 1395 } else { 1396 return (com.google.protobuf.ByteString) ref; 1397 } 1165 return instance.getTypeBytes(); 1398 1166 } 1399 1167 /** … … 1402 1170 public Builder setType( 1403 1171 java.lang.String value) { 1404 if (value == null) { 1405 throw new NullPointerException(); 1406 } 1407 bitField0_ |= 0x00000001; 1408 type_ = value; 1409 1172 copyOnWrite(); 1173 instance.setType(value); 1410 1174 return this; 1411 1175 } … … 1414 1178 */ 1415 1179 public Builder clearType() { 1416 bitField0_ = (bitField0_ & ~0x00000001); 1417 type_ = getDefaultInstance().getType(); 1418 1180 copyOnWrite(); 1181 instance.clearType(); 1419 1182 return this; 1420 1183 } … … 1424 1187 public Builder setTypeBytes( 1425 1188 com.google.protobuf.ByteString value) { 1426 if (value == null) { 1427 throw new NullPointerException(); 1428 } 1429 bitField0_ |= 0x00000001; 1430 type_ = value; 1431 1432 return this; 1433 } 1434 1435 private com.google.protobuf.ByteString indexdata_ = com.google.protobuf.ByteString.EMPTY; 1189 copyOnWrite(); 1190 instance.setTypeBytes(value); 1191 return this; 1192 } 1193 1436 1194 /** 1437 1195 * <code>optional bytes indexdata = 2;</code> 1438 1196 */ 1439 @Override 1440 public boolean hasIndexdata() { 1441 return ((bitField0_ & 0x00000002) == 0x00000002); 1197 public boolean hasIndexdata() { 1198 return instance.hasIndexdata(); 1442 1199 } 1443 1200 /** 1444 1201 * <code>optional bytes indexdata = 2;</code> 1445 1202 */ 1446 @Override 1447 public com.google.protobuf.ByteString getIndexdata() { 1448 return indexdata_; 1203 public com.google.protobuf.ByteString getIndexdata() { 1204 return instance.getIndexdata(); 1449 1205 } 1450 1206 /** … … 1452 1208 */ 1453 1209 public Builder setIndexdata(com.google.protobuf.ByteString value) { 1454 if (value == null) { 1455 throw new NullPointerException(); 1456 } 1457 bitField0_ |= 0x00000002; 1458 indexdata_ = value; 1459 1210 copyOnWrite(); 1211 instance.setIndexdata(value); 1460 1212 return this; 1461 1213 } … … 1464 1216 */ 1465 1217 public Builder clearIndexdata() { 1466 bitField0_ = (bitField0_ & ~0x00000002); 1467 indexdata_ = getDefaultInstance().getIndexdata(); 1468 1469 return this; 1470 } 1471 1472 private int datasize_ ; 1218 copyOnWrite(); 1219 instance.clearIndexdata(); 1220 return this; 1221 } 1222 1473 1223 /** 1474 1224 * <code>required int32 datasize = 3;</code> 1475 1225 */ 1476 @Override 1477 public boolean hasDatasize() { 1478 return ((bitField0_ & 0x00000004) == 0x00000004); 1226 public boolean hasDatasize() { 1227 return instance.hasDatasize(); 1479 1228 } 1480 1229 /** 1481 1230 * <code>required int32 datasize = 3;</code> 1482 1231 */ 1483 @Override 1484 public int getDatasize() { 1485 return datasize_; 1232 public int getDatasize() { 1233 return instance.getDatasize(); 1486 1234 } 1487 1235 /** … … 1489 1237 */ 1490 1238 public Builder setDatasize(int value) { 1491 bitField0_ |= 0x00000004; 1492 datasize_ = value; 1493 1239 copyOnWrite(); 1240 instance.setDatasize(value); 1494 1241 return this; 1495 1242 } … … 1498 1245 */ 1499 1246 public Builder clearDatasize() { 1500 bitField0_ = (bitField0_ & ~0x00000004); 1501 datasize_ = 0; 1502 1247 copyOnWrite(); 1248 instance.clearDatasize(); 1503 1249 return this; 1504 1250 } … … 1506 1252 // @@protoc_insertion_point(builder_scope:OSMPBF.BlobHeader) 1507 1253 } 1508 1254 private byte memoizedIsInitialized = -1; 1255 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 1256 protected final java.lang.Object dynamicMethod( 1257 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 1258 java.lang.Object arg0, java.lang.Object arg1) { 1259 switch (method) { 1260 case NEW_MUTABLE_INSTANCE: { 1261 return new crosby.binary.Fileformat.BlobHeader(); 1262 } 1263 case IS_INITIALIZED: { 1264 byte isInitialized = memoizedIsInitialized; 1265 if (isInitialized == 1) return DEFAULT_INSTANCE; 1266 if (isInitialized == 0) return null; 1267 1268 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 1269 if (!hasType()) { 1270 if (shouldMemoize) { 1271 memoizedIsInitialized = 0; 1272 } 1273 return null; 1274 } 1275 if (!hasDatasize()) { 1276 if (shouldMemoize) { 1277 memoizedIsInitialized = 0; 1278 } 1279 return null; 1280 } 1281 if (shouldMemoize) memoizedIsInitialized = 1; 1282 return DEFAULT_INSTANCE; 1283 1284 } 1285 case MAKE_IMMUTABLE: { 1286 return null; 1287 } 1288 case NEW_BUILDER: { 1289 return new Builder(); 1290 } 1291 case VISIT: { 1292 Visitor visitor = (Visitor) arg0; 1293 crosby.binary.Fileformat.BlobHeader other = (crosby.binary.Fileformat.BlobHeader) arg1; 1294 type_ = visitor.visitString( 1295 hasType(), type_, 1296 other.hasType(), other.type_); 1297 indexdata_ = visitor.visitByteString( 1298 hasIndexdata(), indexdata_, 1299 other.hasIndexdata(), other.indexdata_); 1300 datasize_ = visitor.visitInt( 1301 hasDatasize(), datasize_, 1302 other.hasDatasize(), other.datasize_); 1303 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 1304 .INSTANCE) { 1305 bitField0_ |= other.bitField0_; 1306 } 1307 return this; 1308 } 1309 case MERGE_FROM_STREAM: { 1310 com.google.protobuf.CodedInputStream input = 1311 (com.google.protobuf.CodedInputStream) arg0; 1312 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 1313 (com.google.protobuf.ExtensionRegistryLite) arg1; 1314 try { 1315 boolean done = false; 1316 while (!done) { 1317 int tag = input.readTag(); 1318 switch (tag) { 1319 case 0: 1320 done = true; 1321 break; 1322 default: { 1323 if (!parseUnknownField(tag, input)) { 1324 done = true; 1325 } 1326 break; 1327 } 1328 case 10: { 1329 java.lang.String s = input.readString(); 1330 bitField0_ |= 0x00000001; 1331 type_ = s; 1332 break; 1333 } 1334 case 18: { 1335 bitField0_ |= 0x00000002; 1336 indexdata_ = input.readBytes(); 1337 break; 1338 } 1339 case 24: { 1340 bitField0_ |= 0x00000004; 1341 datasize_ = input.readInt32(); 1342 break; 1343 } 1344 } 1345 } 1346 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1347 throw new RuntimeException(e.setUnfinishedMessage(this)); 1348 } catch (java.io.IOException e) { 1349 throw new RuntimeException( 1350 new com.google.protobuf.InvalidProtocolBufferException( 1351 e.getMessage()).setUnfinishedMessage(this)); 1352 } finally { 1353 } 1354 } 1355 // fall through 1356 case GET_DEFAULT_INSTANCE: { 1357 return DEFAULT_INSTANCE; 1358 } 1359 case GET_PARSER: { 1360 if (PARSER == null) { synchronized (crosby.binary.Fileformat.BlobHeader.class) { 1361 if (PARSER == null) { 1362 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 1363 } 1364 } 1365 } 1366 return PARSER; 1367 } 1368 } 1369 throw new UnsupportedOperationException(); 1370 } 1371 1372 1373 // @@protoc_insertion_point(class_scope:OSMPBF.BlobHeader) 1374 private static final crosby.binary.Fileformat.BlobHeader DEFAULT_INSTANCE; 1509 1375 static { 1510 defaultInstance = new BlobHeader(true); 1511 defaultInstance.initFields(); 1512 } 1513 1514 // @@protoc_insertion_point(class_scope:OSMPBF.BlobHeader) 1376 DEFAULT_INSTANCE = new BlobHeader(); 1377 DEFAULT_INSTANCE.makeImmutable(); 1378 } 1379 1380 public static crosby.binary.Fileformat.BlobHeader getDefaultInstance() { 1381 return DEFAULT_INSTANCE; 1382 } 1383 1384 private static volatile com.google.protobuf.Parser<BlobHeader> PARSER; 1385 1386 public static com.google.protobuf.Parser<BlobHeader> parser() { 1387 return DEFAULT_INSTANCE.getParserForType(); 1388 } 1515 1389 } 1516 1390 -
applications/editors/josm/plugins/pbf/gen/crosby/binary/Osmformat.java
r31905 r33772 23 23 24 24 /** 25 * <pre> 26 * Additional tags to aid in parsing this dataset 27 * </pre> 28 * 25 29 * <code>repeated string required_features = 4;</code> 26 * 27 * <pre> 28 * Additional tags to aid in parsing this dataset 29 * </pre> 30 */ 31 com.google.protobuf.ProtocolStringList 30 */ 31 java.util.List<java.lang.String> 32 32 getRequiredFeaturesList(); 33 33 /** 34 * <pre> 35 * Additional tags to aid in parsing this dataset 36 * </pre> 37 * 34 38 * <code>repeated string required_features = 4;</code> 35 *36 * <pre>37 * Additional tags to aid in parsing this dataset38 * </pre>39 39 */ 40 40 int getRequiredFeaturesCount(); 41 41 /** 42 * <pre> 43 * Additional tags to aid in parsing this dataset 44 * </pre> 45 * 42 46 * <code>repeated string required_features = 4;</code> 43 *44 * <pre>45 * Additional tags to aid in parsing this dataset46 * </pre>47 47 */ 48 48 java.lang.String getRequiredFeatures(int index); 49 49 /** 50 * <pre> 51 * Additional tags to aid in parsing this dataset 52 * </pre> 53 * 50 54 * <code>repeated string required_features = 4;</code> 51 *52 * <pre>53 * Additional tags to aid in parsing this dataset54 * </pre>55 55 */ 56 56 com.google.protobuf.ByteString … … 60 60 * <code>repeated string optional_features = 5;</code> 61 61 */ 62 com.google.protobuf.ProtocolStringList62 java.util.List<java.lang.String> 63 63 getOptionalFeaturesList(); 64 64 /** … … 91 91 92 92 /** 93 * <pre> 94 * From the bbox field. 95 * </pre> 96 * 93 97 * <code>optional string source = 17;</code> 94 * 98 */ 99 boolean hasSource(); 100 /** 95 101 * <pre> 96 102 * From the bbox field. 97 103 * </pre> 98 */ 99 boolean hasSource(); 100 /** 104 * 101 105 * <code>optional string source = 17;</code> 102 * 106 */ 107 java.lang.String getSource(); 108 /** 103 109 * <pre> 104 110 * From the bbox field. 105 111 * </pre> 106 */ 107 java.lang.String getSource(); 108 /** 112 * 109 113 * <code>optional string source = 17;</code> 110 *111 * <pre>112 * From the bbox field.113 * </pre>114 114 */ 115 115 com.google.protobuf.ByteString … … 117 117 118 118 /** 119 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 120 * 121 * <pre> 122 * replication timestamp, expressed in seconds since the epoch, 119 * <pre> 120 * replication timestamp, expressed in seconds since the epoch, 123 121 * otherwise the same value as in the "timestamp=..." field 124 122 * in the state.txt file used by Osmosis 125 123 * </pre> 124 * 125 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 126 126 */ 127 127 boolean hasOsmosisReplicationTimestamp(); 128 128 /** 129 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 130 * 131 * <pre> 132 * replication timestamp, expressed in seconds since the epoch, 129 * <pre> 130 * replication timestamp, expressed in seconds since the epoch, 133 131 * otherwise the same value as in the "timestamp=..." field 134 132 * in the state.txt file used by Osmosis 135 133 * </pre> 134 * 135 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 136 136 */ 137 137 long getOsmosisReplicationTimestamp(); 138 138 139 139 /** 140 * <pre> 141 * replication sequence number (sequenceNumber in state.txt) 142 * </pre> 143 * 140 144 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 141 * 145 */ 146 boolean hasOsmosisReplicationSequenceNumber(); 147 /** 142 148 * <pre> 143 149 * replication sequence number (sequenceNumber in state.txt) 144 150 * </pre> 145 */ 146 boolean hasOsmosisReplicationSequenceNumber(); 147 /** 151 * 148 152 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 149 *150 * <pre>151 * replication sequence number (sequenceNumber in state.txt)152 * </pre>153 153 */ 154 154 long getOsmosisReplicationSequenceNumber(); 155 155 156 156 /** 157 * <pre> 158 * replication base URL (from Osmosis' configuration.txt file) 159 * </pre> 160 * 157 161 * <code>optional string osmosis_replication_base_url = 34;</code> 158 * 162 */ 163 boolean hasOsmosisReplicationBaseUrl(); 164 /** 159 165 * <pre> 160 166 * replication base URL (from Osmosis' configuration.txt file) 161 167 * </pre> 162 */ 163 boolean hasOsmosisReplicationBaseUrl(); 164 /** 168 * 165 169 * <code>optional string osmosis_replication_base_url = 34;</code> 166 * 170 */ 171 java.lang.String getOsmosisReplicationBaseUrl(); 172 /** 167 173 * <pre> 168 174 * replication base URL (from Osmosis' configuration.txt file) 169 175 * </pre> 170 */ 171 java.lang.String getOsmosisReplicationBaseUrl(); 172 /** 176 * 173 177 * <code>optional string osmosis_replication_base_url = 34;</code> 174 *175 * <pre>176 * replication base URL (from Osmosis' configuration.txt file)177 * </pre>178 178 */ 179 179 com.google.protobuf.ByteString … … 183 183 * Protobuf type {@code OSMPBF.HeaderBlock} 184 184 */ 185 public static final class HeaderBlock extends 186 com.google.protobuf.GeneratedMessageLite implements 185 public static final class HeaderBlock extends 186 com.google.protobuf.GeneratedMessageLite< 187 HeaderBlock, HeaderBlock.Builder> implements 187 188 // @@protoc_insertion_point(message_implements:OSMPBF.HeaderBlock) 188 189 HeaderBlockOrBuilder { 189 // Use HeaderBlock.newBuilder() to construct. 190 private HeaderBlock(com.google.protobuf.GeneratedMessageLite.Builder builder) { 191 super(builder); 192 this.unknownFields = builder.getUnknownFields(); 193 } 194 private HeaderBlock(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 195 196 private static final HeaderBlock defaultInstance; 197 public static HeaderBlock getDefaultInstance() { 198 return defaultInstance; 199 } 200 201 @Override 202 public HeaderBlock getDefaultInstanceForType() { 203 return defaultInstance; 204 } 205 206 private final com.google.protobuf.ByteString unknownFields; 207 private HeaderBlock( 208 com.google.protobuf.CodedInputStream input, 209 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 210 throws com.google.protobuf.InvalidProtocolBufferException { 211 initFields(); 212 int mutable_bitField0_ = 0; 213 com.google.protobuf.ByteString.Output unknownFieldsOutput = 214 com.google.protobuf.ByteString.newOutput(); 215 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 216 com.google.protobuf.CodedOutputStream.newInstance( 217 unknownFieldsOutput); 218 try { 219 boolean done = false; 220 while (!done) { 221 int tag = input.readTag(); 222 switch (tag) { 223 case 0: 224 done = true; 225 break; 226 default: { 227 if (!parseUnknownField(input, unknownFieldsCodedOutput, 228 extensionRegistry, tag)) { 229 done = true; 230 } 231 break; 232 } 233 case 10: { 234 crosby.binary.Osmformat.HeaderBBox.Builder subBuilder = null; 235 if (((bitField0_ & 0x00000001) == 0x00000001)) { 236 subBuilder = bbox_.toBuilder(); 237 } 238 bbox_ = input.readMessage(crosby.binary.Osmformat.HeaderBBox.PARSER, extensionRegistry); 239 if (subBuilder != null) { 240 subBuilder.mergeFrom(bbox_); 241 bbox_ = subBuilder.buildPartial(); 242 } 243 bitField0_ |= 0x00000001; 244 break; 245 } 246 case 34: { 247 com.google.protobuf.ByteString bs = input.readBytes(); 248 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 249 requiredFeatures_ = new com.google.protobuf.LazyStringArrayList(); 250 mutable_bitField0_ |= 0x00000002; 251 } 252 requiredFeatures_.add(bs); 253 break; 254 } 255 case 42: { 256 com.google.protobuf.ByteString bs = input.readBytes(); 257 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 258 optionalFeatures_ = new com.google.protobuf.LazyStringArrayList(); 259 mutable_bitField0_ |= 0x00000004; 260 } 261 optionalFeatures_.add(bs); 262 break; 263 } 264 case 130: { 265 com.google.protobuf.ByteString bs = input.readBytes(); 266 bitField0_ |= 0x00000002; 267 writingprogram_ = bs; 268 break; 269 } 270 case 138: { 271 com.google.protobuf.ByteString bs = input.readBytes(); 272 bitField0_ |= 0x00000004; 273 source_ = bs; 274 break; 275 } 276 case 256: { 277 bitField0_ |= 0x00000008; 278 osmosisReplicationTimestamp_ = input.readInt64(); 279 break; 280 } 281 case 264: { 282 bitField0_ |= 0x00000010; 283 osmosisReplicationSequenceNumber_ = input.readInt64(); 284 break; 285 } 286 case 274: { 287 com.google.protobuf.ByteString bs = input.readBytes(); 288 bitField0_ |= 0x00000020; 289 osmosisReplicationBaseUrl_ = bs; 290 break; 291 } 292 } 293 } 294 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 295 throw e.setUnfinishedMessage(this); 296 } catch (java.io.IOException e) { 297 throw new com.google.protobuf.InvalidProtocolBufferException( 298 e.getMessage()).setUnfinishedMessage(this); 299 } finally { 300 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 301 requiredFeatures_ = requiredFeatures_.getUnmodifiableView(); 302 } 303 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 304 optionalFeatures_ = optionalFeatures_.getUnmodifiableView(); 305 } 306 try { 307 unknownFieldsCodedOutput.flush(); 308 } catch (java.io.IOException e) { 309 // Should not happen 310 } finally { 311 unknownFields = unknownFieldsOutput.toByteString(); 312 } 313 makeExtensionsImmutable(); 314 } 315 } 316 public static com.google.protobuf.Parser<HeaderBlock> PARSER = 317 new com.google.protobuf.AbstractParser<HeaderBlock>() { 318 @Override 319 public HeaderBlock parsePartialFrom( 320 com.google.protobuf.CodedInputStream input, 321 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 322 throws com.google.protobuf.InvalidProtocolBufferException { 323 return new HeaderBlock(input, extensionRegistry); 324 } 325 }; 326 327 @java.lang.Override 328 public com.google.protobuf.Parser<HeaderBlock> getParserForType() { 329 return PARSER; 330 } 331 190 private HeaderBlock() { 191 requiredFeatures_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); 192 optionalFeatures_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); 193 writingprogram_ = ""; 194 source_ = ""; 195 osmosisReplicationBaseUrl_ = ""; 196 } 332 197 private int bitField0_; 333 198 public static final int BBOX_FIELD_NUMBER = 1; … … 336 201 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 337 202 */ 338 @Override 339 public boolean hasBbox() { 203 public boolean hasBbox() { 340 204 return ((bitField0_ & 0x00000001) == 0x00000001); 341 205 } … … 343 207 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 344 208 */ 345 @Override 346 public crosby.binary.Osmformat.HeaderBBox getBbox() { 347 return bbox_; 209 public crosby.binary.Osmformat.HeaderBBox getBbox() { 210 return bbox_ == null ? crosby.binary.Osmformat.HeaderBBox.getDefaultInstance() : bbox_; 211 } 212 /** 213 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 214 */ 215 private void setBbox(crosby.binary.Osmformat.HeaderBBox value) { 216 if (value == null) { 217 throw new NullPointerException(); 218 } 219 bbox_ = value; 220 bitField0_ |= 0x00000001; 221 } 222 /** 223 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 224 */ 225 private void setBbox( 226 crosby.binary.Osmformat.HeaderBBox.Builder builderForValue) { 227 bbox_ = builderForValue.build(); 228 bitField0_ |= 0x00000001; 229 } 230 /** 231 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 232 */ 233 private void mergeBbox(crosby.binary.Osmformat.HeaderBBox value) { 234 if (bbox_ != null && 235 bbox_ != crosby.binary.Osmformat.HeaderBBox.getDefaultInstance()) { 236 bbox_ = 237 crosby.binary.Osmformat.HeaderBBox.newBuilder(bbox_).mergeFrom(value).buildPartial(); 238 } else { 239 bbox_ = value; 240 } 241 bitField0_ |= 0x00000001; 242 } 243 /** 244 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 245 */ 246 private void clearBbox() { bbox_ = null; 247 bitField0_ = (bitField0_ & ~0x00000001); 348 248 } 349 249 350 250 public static final int REQUIRED_FEATURES_FIELD_NUMBER = 4; 351 private com.google.protobuf.LazyStringList requiredFeatures_; 352 /** 251 private com.google.protobuf.Internal.ProtobufList<java.lang.String> requiredFeatures_; 252 /** 253 * <pre> 254 * Additional tags to aid in parsing this dataset 255 * </pre> 256 * 353 257 * <code>repeated string required_features = 4;</code> 354 * 355 * <pre> 356 * Additional tags to aid in parsing this dataset 357 * </pre> 358 */ 359 @Override 360 public com.google.protobuf.ProtocolStringList 361 getRequiredFeaturesList() { 258 */ 259 public java.util.List<java.lang.String> getRequiredFeaturesList() { 362 260 return requiredFeatures_; 363 261 } 364 262 /** 263 * <pre> 264 * Additional tags to aid in parsing this dataset 265 * </pre> 266 * 365 267 * <code>repeated string required_features = 4;</code> 366 * 367 * <pre> 368 * Additional tags to aid in parsing this dataset 369 * </pre> 370 */ 371 @Override 372 public int getRequiredFeaturesCount() { 268 */ 269 public int getRequiredFeaturesCount() { 373 270 return requiredFeatures_.size(); 374 271 } 375 272 /** 273 * <pre> 274 * Additional tags to aid in parsing this dataset 275 * </pre> 276 * 376 277 * <code>repeated string required_features = 4;</code> 377 * 378 * <pre> 379 * Additional tags to aid in parsing this dataset 380 * </pre> 381 */ 382 @Override 383 public java.lang.String getRequiredFeatures(int index) { 278 */ 279 public java.lang.String getRequiredFeatures(int index) { 384 280 return requiredFeatures_.get(index); 385 281 } 386 282 /** 283 * <pre> 284 * Additional tags to aid in parsing this dataset 285 * </pre> 286 * 387 287 * <code>repeated string required_features = 4;</code> 388 * 389 * <pre> 390 * Additional tags to aid in parsing this dataset 391 * </pre> 392 */ 393 @Override 394 public com.google.protobuf.ByteString 288 */ 289 public com.google.protobuf.ByteString 395 290 getRequiredFeaturesBytes(int index) { 396 return requiredFeatures_.getByteString(index); 291 return com.google.protobuf.ByteString.copyFromUtf8( 292 requiredFeatures_.get(index)); 293 } 294 private void ensureRequiredFeaturesIsMutable() { 295 if (!requiredFeatures_.isModifiable()) { 296 requiredFeatures_ = 297 com.google.protobuf.GeneratedMessageLite.mutableCopy(requiredFeatures_); 298 } 299 } 300 /** 301 * <pre> 302 * Additional tags to aid in parsing this dataset 303 * </pre> 304 * 305 * <code>repeated string required_features = 4;</code> 306 */ 307 private void setRequiredFeatures( 308 int index, java.lang.String value) { 309 if (value == null) { 310 throw new NullPointerException(); 311 } 312 ensureRequiredFeaturesIsMutable(); 313 requiredFeatures_.set(index, value); 314 } 315 /** 316 * <pre> 317 * Additional tags to aid in parsing this dataset 318 * </pre> 319 * 320 * <code>repeated string required_features = 4;</code> 321 */ 322 private void addRequiredFeatures( 323 java.lang.String value) { 324 if (value == null) { 325 throw new NullPointerException(); 326 } 327 ensureRequiredFeaturesIsMutable(); 328 requiredFeatures_.add(value); 329 } 330 /** 331 * <pre> 332 * Additional tags to aid in parsing this dataset 333 * </pre> 334 * 335 * <code>repeated string required_features = 4;</code> 336 */ 337 private void addAllRequiredFeatures( 338 java.lang.Iterable<java.lang.String> values) { 339 ensureRequiredFeaturesIsMutable(); 340 com.google.protobuf.AbstractMessageLite.addAll( 341 values, requiredFeatures_); 342 } 343 /** 344 * <pre> 345 * Additional tags to aid in parsing this dataset 346 * </pre> 347 * 348 * <code>repeated string required_features = 4;</code> 349 */ 350 private void clearRequiredFeatures() { 351 requiredFeatures_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); 352 } 353 /** 354 * <pre> 355 * Additional tags to aid in parsing this dataset 356 * </pre> 357 * 358 * <code>repeated string required_features = 4;</code> 359 */ 360 private void addRequiredFeaturesBytes( 361 com.google.protobuf.ByteString value) { 362 if (value == null) { 363 throw new NullPointerException(); 364 } 365 ensureRequiredFeaturesIsMutable(); 366 requiredFeatures_.add(value.toStringUtf8()); 397 367 } 398 368 399 369 public static final int OPTIONAL_FEATURES_FIELD_NUMBER = 5; 400 private com.google.protobuf. LazyStringListoptionalFeatures_;370 private com.google.protobuf.Internal.ProtobufList<java.lang.String> optionalFeatures_; 401 371 /** 402 372 * <code>repeated string optional_features = 5;</code> 403 373 */ 404 @Override 405 public com.google.protobuf.ProtocolStringList 406 getOptionalFeaturesList() { 374 public java.util.List<java.lang.String> getOptionalFeaturesList() { 407 375 return optionalFeatures_; 408 376 } … … 410 378 * <code>repeated string optional_features = 5;</code> 411 379 */ 412 @Override 413 public int getOptionalFeaturesCount() { 380 public int getOptionalFeaturesCount() { 414 381 return optionalFeatures_.size(); 415 382 } … … 417 384 * <code>repeated string optional_features = 5;</code> 418 385 */ 419 @Override 420 public java.lang.String getOptionalFeatures(int index) { 386 public java.lang.String getOptionalFeatures(int index) { 421 387 return optionalFeatures_.get(index); 422 388 } … … 424 390 * <code>repeated string optional_features = 5;</code> 425 391 */ 426 @Override 427 public com.google.protobuf.ByteString 392 public com.google.protobuf.ByteString 428 393 getOptionalFeaturesBytes(int index) { 429 return optionalFeatures_.getByteString(index); 394 return com.google.protobuf.ByteString.copyFromUtf8( 395 optionalFeatures_.get(index)); 396 } 397 private void ensureOptionalFeaturesIsMutable() { 398 if (!optionalFeatures_.isModifiable()) { 399 optionalFeatures_ = 400 com.google.protobuf.GeneratedMessageLite.mutableCopy(optionalFeatures_); 401 } 402 } 403 /** 404 * <code>repeated string optional_features = 5;</code> 405 */ 406 private void setOptionalFeatures( 407 int index, java.lang.String value) { 408 if (value == null) { 409 throw new NullPointerException(); 410 } 411 ensureOptionalFeaturesIsMutable(); 412 optionalFeatures_.set(index, value); 413 } 414 /** 415 * <code>repeated string optional_features = 5;</code> 416 */ 417 private void addOptionalFeatures( 418 java.lang.String value) { 419 if (value == null) { 420 throw new NullPointerException(); 421 } 422 ensureOptionalFeaturesIsMutable(); 423 optionalFeatures_.add(value); 424 } 425 /** 426 * <code>repeated string optional_features = 5;</code> 427 */ 428 private void addAllOptionalFeatures( 429 java.lang.Iterable<java.lang.String> values) { 430 ensureOptionalFeaturesIsMutable(); 431 com.google.protobuf.AbstractMessageLite.addAll( 432 values, optionalFeatures_); 433 } 434 /** 435 * <code>repeated string optional_features = 5;</code> 436 */ 437 private void clearOptionalFeatures() { 438 optionalFeatures_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); 439 } 440 /** 441 * <code>repeated string optional_features = 5;</code> 442 */ 443 private void addOptionalFeaturesBytes( 444 com.google.protobuf.ByteString value) { 445 if (value == null) { 446 throw new NullPointerException(); 447 } 448 ensureOptionalFeaturesIsMutable(); 449 optionalFeatures_.add(value.toStringUtf8()); 430 450 } 431 451 432 452 public static final int WRITINGPROGRAM_FIELD_NUMBER = 16; 433 private java.lang. Objectwritingprogram_;453 private java.lang.String writingprogram_; 434 454 /** 435 455 * <code>optional string writingprogram = 16;</code> 436 456 */ 437 @Override 438 public boolean hasWritingprogram() { 457 public boolean hasWritingprogram() { 439 458 return ((bitField0_ & 0x00000002) == 0x00000002); 440 459 } … … 442 461 * <code>optional string writingprogram = 16;</code> 443 462 */ 444 @Override 445 public java.lang.String getWritingprogram() { 446 java.lang.Object ref = writingprogram_; 447 if (ref instanceof java.lang.String) { 448 return (java.lang.String) ref; 449 } else { 450 com.google.protobuf.ByteString bs = 451 (com.google.protobuf.ByteString) ref; 452 java.lang.String s = bs.toStringUtf8(); 453 if (bs.isValidUtf8()) { 454 writingprogram_ = s; 455 } 456 return s; 457 } 463 public java.lang.String getWritingprogram() { 464 return writingprogram_; 458 465 } 459 466 /** 460 467 * <code>optional string writingprogram = 16;</code> 461 468 */ 462 @Override 463 public com.google.protobuf.ByteString 469 public com.google.protobuf.ByteString 464 470 getWritingprogramBytes() { 465 java.lang.Object ref = writingprogram_; 466 if (ref instanceof java.lang.String) { 467 com.google.protobuf.ByteString b = 468 com.google.protobuf.ByteString.copyFromUtf8( 469 (java.lang.String) ref); 470 writingprogram_ = b; 471 return b; 472 } else { 473 return (com.google.protobuf.ByteString) ref; 474 } 471 return com.google.protobuf.ByteString.copyFromUtf8(writingprogram_); 472 } 473 /** 474 * <code>optional string writingprogram = 16;</code> 475 */ 476 private void setWritingprogram( 477 java.lang.String value) { 478 if (value == null) { 479 throw new NullPointerException(); 480 } 481 bitField0_ |= 0x00000002; 482 writingprogram_ = value; 483 } 484 /** 485 * <code>optional string writingprogram = 16;</code> 486 */ 487 private void clearWritingprogram() { 488 bitField0_ = (bitField0_ & ~0x00000002); 489 writingprogram_ = getDefaultInstance().getWritingprogram(); 490 } 491 /** 492 * <code>optional string writingprogram = 16;</code> 493 */ 494 private void setWritingprogramBytes( 495 com.google.protobuf.ByteString value) { 496 if (value == null) { 497 throw new NullPointerException(); 498 } 499 bitField0_ |= 0x00000002; 500 writingprogram_ = value.toStringUtf8(); 475 501 } 476 502 477 503 public static final int SOURCE_FIELD_NUMBER = 17; 478 private java.lang.Object source_; 479 /** 504 private java.lang.String source_; 505 /** 506 * <pre> 507 * From the bbox field. 508 * </pre> 509 * 480 510 * <code>optional string source = 17;</code> 481 * 511 */ 512 public boolean hasSource() { 513 return ((bitField0_ & 0x00000004) == 0x00000004); 514 } 515 /** 482 516 * <pre> 483 517 * From the bbox field. 484 518 * </pre> 485 */ 486 @Override 487 public boolean hasSource() { 488 return ((bitField0_ & 0x00000004) == 0x00000004); 489 } 490 /** 519 * 491 520 * <code>optional string source = 17;</code> 492 * 521 */ 522 public java.lang.String getSource() { 523 return source_; 524 } 525 /** 493 526 * <pre> 494 527 * From the bbox field. 495 528 * </pre> 496 */ 497 @Override 498 public java.lang.String getSource() { 499 java.lang.Object ref = source_; 500 if (ref instanceof java.lang.String) { 501 return (java.lang.String) ref; 502 } else { 503 com.google.protobuf.ByteString bs = 504 (com.google.protobuf.ByteString) ref; 505 java.lang.String s = bs.toStringUtf8(); 506 if (bs.isValidUtf8()) { 507 source_ = s; 508 } 509 return s; 510 } 511 } 512 /** 529 * 513 530 * <code>optional string source = 17;</code> 514 * 531 */ 532 public com.google.protobuf.ByteString 533 getSourceBytes() { 534 return com.google.protobuf.ByteString.copyFromUtf8(source_); 535 } 536 /** 515 537 * <pre> 516 538 * From the bbox field. 517 539 * </pre> 518 */ 519 @Override 520 public com.google.protobuf.ByteString 521 getSourceBytes() { 522 java.lang.Object ref = source_; 523 if (ref instanceof java.lang.String) { 524 com.google.protobuf.ByteString b = 525 com.google.protobuf.ByteString.copyFromUtf8( 526 (java.lang.String) ref); 527 source_ = b; 528 return b; 529 } else { 530 return (com.google.protobuf.ByteString) ref; 531 } 540 * 541 * <code>optional string source = 17;</code> 542 */ 543 private void setSource( 544 java.lang.String value) { 545 if (value == null) { 546 throw new NullPointerException(); 547 } 548 bitField0_ |= 0x00000004; 549 source_ = value; 550 } 551 /** 552 * <pre> 553 * From the bbox field. 554 * </pre> 555 * 556 * <code>optional string source = 17;</code> 557 */ 558 private void clearSource() { 559 bitField0_ = (bitField0_ & ~0x00000004); 560 source_ = getDefaultInstance().getSource(); 561 } 562 /** 563 * <pre> 564 * From the bbox field. 565 * </pre> 566 * 567 * <code>optional string source = 17;</code> 568 */ 569 private void setSourceBytes( 570 com.google.protobuf.ByteString value) { 571 if (value == null) { 572 throw new NullPointerException(); 573 } 574 bitField0_ |= 0x00000004; 575 source_ = value.toStringUtf8(); 532 576 } 533 577 … … 535 579 private long osmosisReplicationTimestamp_; 536 580 /** 537 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 538 * 539 * <pre> 540 * replication timestamp, expressed in seconds since the epoch, 581 * <pre> 582 * replication timestamp, expressed in seconds since the epoch, 541 583 * otherwise the same value as in the "timestamp=..." field 542 584 * in the state.txt file used by Osmosis 543 585 * </pre> 544 */ 545 @Override 546 public boolean hasOsmosisReplicationTimestamp() { 586 * 587 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 588 */ 589 public boolean hasOsmosisReplicationTimestamp() { 547 590 return ((bitField0_ & 0x00000008) == 0x00000008); 548 591 } 549 592 /** 550 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 551 * 552 * <pre> 553 * replication timestamp, expressed in seconds since the epoch, 593 * <pre> 594 * replication timestamp, expressed in seconds since the epoch, 554 595 * otherwise the same value as in the "timestamp=..." field 555 596 * in the state.txt file used by Osmosis 556 597 * </pre> 557 */ 558 @Override 559 public long getOsmosisReplicationTimestamp() { 598 * 599 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 600 */ 601 public long getOsmosisReplicationTimestamp() { 560 602 return osmosisReplicationTimestamp_; 603 } 604 /** 605 * <pre> 606 * replication timestamp, expressed in seconds since the epoch, 607 * otherwise the same value as in the "timestamp=..." field 608 * in the state.txt file used by Osmosis 609 * </pre> 610 * 611 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 612 */ 613 private void setOsmosisReplicationTimestamp(long value) { 614 bitField0_ |= 0x00000008; 615 osmosisReplicationTimestamp_ = value; 616 } 617 /** 618 * <pre> 619 * replication timestamp, expressed in seconds since the epoch, 620 * otherwise the same value as in the "timestamp=..." field 621 * in the state.txt file used by Osmosis 622 * </pre> 623 * 624 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 625 */ 626 private void clearOsmosisReplicationTimestamp() { 627 bitField0_ = (bitField0_ & ~0x00000008); 628 osmosisReplicationTimestamp_ = 0L; 561 629 } 562 630 … … 564 632 private long osmosisReplicationSequenceNumber_; 565 633 /** 634 * <pre> 635 * replication sequence number (sequenceNumber in state.txt) 636 * </pre> 637 * 566 638 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 567 * 639 */ 640 public boolean hasOsmosisReplicationSequenceNumber() { 641 return ((bitField0_ & 0x00000010) == 0x00000010); 642 } 643 /** 568 644 * <pre> 569 645 * replication sequence number (sequenceNumber in state.txt) 570 646 * </pre> 571 */ 572 @Override 573 public boolean hasOsmosisReplicationSequenceNumber() { 574 return ((bitField0_ & 0x00000010) == 0x00000010); 575 } 576 /** 647 * 577 648 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 578 * 649 */ 650 public long getOsmosisReplicationSequenceNumber() { 651 return osmosisReplicationSequenceNumber_; 652 } 653 /** 579 654 * <pre> 580 655 * replication sequence number (sequenceNumber in state.txt) 581 656 * </pre> 582 */ 583 @Override 584 public long getOsmosisReplicationSequenceNumber() { 585 return osmosisReplicationSequenceNumber_; 657 * 658 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 659 */ 660 private void setOsmosisReplicationSequenceNumber(long value) { 661 bitField0_ |= 0x00000010; 662 osmosisReplicationSequenceNumber_ = value; 663 } 664 /** 665 * <pre> 666 * replication sequence number (sequenceNumber in state.txt) 667 * </pre> 668 * 669 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 670 */ 671 private void clearOsmosisReplicationSequenceNumber() { 672 bitField0_ = (bitField0_ & ~0x00000010); 673 osmosisReplicationSequenceNumber_ = 0L; 586 674 } 587 675 588 676 public static final int OSMOSIS_REPLICATION_BASE_URL_FIELD_NUMBER = 34; 589 private java.lang.Object osmosisReplicationBaseUrl_; 590 /** 677 private java.lang.String osmosisReplicationBaseUrl_; 678 /** 679 * <pre> 680 * replication base URL (from Osmosis' configuration.txt file) 681 * </pre> 682 * 591 683 * <code>optional string osmosis_replication_base_url = 34;</code> 592 * 684 */ 685 public boolean hasOsmosisReplicationBaseUrl() { 686 return ((bitField0_ & 0x00000020) == 0x00000020); 687 } 688 /** 593 689 * <pre> 594 690 * replication base URL (from Osmosis' configuration.txt file) 595 691 * </pre> 596 */ 597 @Override 598 public boolean hasOsmosisReplicationBaseUrl() { 599 return ((bitField0_ & 0x00000020) == 0x00000020); 600 } 601 /** 692 * 602 693 * <code>optional string osmosis_replication_base_url = 34;</code> 603 * 694 */ 695 public java.lang.String getOsmosisReplicationBaseUrl() { 696 return osmosisReplicationBaseUrl_; 697 } 698 /** 604 699 * <pre> 605 700 * replication base URL (from Osmosis' configuration.txt file) 606 701 * </pre> 607 */ 608 @Override 609 public java.lang.String getOsmosisReplicationBaseUrl() { 610 java.lang.Object ref = osmosisReplicationBaseUrl_; 611 if (ref instanceof java.lang.String) { 612 return (java.lang.String) ref; 613 } else { 614 com.google.protobuf.ByteString bs = 615 (com.google.protobuf.ByteString) ref; 616 java.lang.String s = bs.toStringUtf8(); 617 if (bs.isValidUtf8()) { 618 osmosisReplicationBaseUrl_ = s; 619 } 620 return s; 621 } 622 } 623 /** 702 * 624 703 * <code>optional string osmosis_replication_base_url = 34;</code> 625 * 704 */ 705 public com.google.protobuf.ByteString 706 getOsmosisReplicationBaseUrlBytes() { 707 return com.google.protobuf.ByteString.copyFromUtf8(osmosisReplicationBaseUrl_); 708 } 709 /** 626 710 * <pre> 627 711 * replication base URL (from Osmosis' configuration.txt file) 628 712 * </pre> 629 */ 630 @Override 631 public com.google.protobuf.ByteString 632 getOsmosisReplicationBaseUrlBytes() { 633 java.lang.Object ref = osmosisReplicationBaseUrl_; 634 if (ref instanceof java.lang.String) { 635 com.google.protobuf.ByteString b = 636 com.google.protobuf.ByteString.copyFromUtf8( 637 (java.lang.String) ref); 638 osmosisReplicationBaseUrl_ = b; 639 return b; 640 } else { 641 return (com.google.protobuf.ByteString) ref; 642 } 643 } 644 645 private void initFields() { 646 bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 647 requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 648 optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 649 writingprogram_ = ""; 650 source_ = ""; 651 osmosisReplicationTimestamp_ = 0L; 652 osmosisReplicationSequenceNumber_ = 0L; 653 osmosisReplicationBaseUrl_ = ""; 654 } 655 private byte memoizedIsInitialized = -1; 656 @Override 657 public final boolean isInitialized() { 658 byte isInitialized = memoizedIsInitialized; 659 if (isInitialized == 1) return true; 660 if (isInitialized == 0) return false; 661 662 if (hasBbox()) { 663 if (!getBbox().isInitialized()) { 664 memoizedIsInitialized = 0; 665 return false; 666 } 667 } 668 memoizedIsInitialized = 1; 669 return true; 670 } 671 672 @Override 673 public void writeTo(com.google.protobuf.CodedOutputStream output) 713 * 714 * <code>optional string osmosis_replication_base_url = 34;</code> 715 */ 716 private void setOsmosisReplicationBaseUrl( 717 java.lang.String value) { 718 if (value == null) { 719 throw new NullPointerException(); 720 } 721 bitField0_ |= 0x00000020; 722 osmosisReplicationBaseUrl_ = value; 723 } 724 /** 725 * <pre> 726 * replication base URL (from Osmosis' configuration.txt file) 727 * </pre> 728 * 729 * <code>optional string osmosis_replication_base_url = 34;</code> 730 */ 731 private void clearOsmosisReplicationBaseUrl() { 732 bitField0_ = (bitField0_ & ~0x00000020); 733 osmosisReplicationBaseUrl_ = getDefaultInstance().getOsmosisReplicationBaseUrl(); 734 } 735 /** 736 * <pre> 737 * replication base URL (from Osmosis' configuration.txt file) 738 * </pre> 739 * 740 * <code>optional string osmosis_replication_base_url = 34;</code> 741 */ 742 private void setOsmosisReplicationBaseUrlBytes( 743 com.google.protobuf.ByteString value) { 744 if (value == null) { 745 throw new NullPointerException(); 746 } 747 bitField0_ |= 0x00000020; 748 osmosisReplicationBaseUrl_ = value.toStringUtf8(); 749 } 750 751 public void writeTo(com.google.protobuf.CodedOutputStream output) 674 752 throws java.io.IOException { 675 getSerializedSize();676 753 if (((bitField0_ & 0x00000001) == 0x00000001)) { 677 output.writeMessage(1, bbox_);754 output.writeMessage(1, getBbox()); 678 755 } 679 756 for (int i = 0; i < requiredFeatures_.size(); i++) { 680 output.write Bytes(4, requiredFeatures_.getByteString(i));757 output.writeString(4, requiredFeatures_.get(i)); 681 758 } 682 759 for (int i = 0; i < optionalFeatures_.size(); i++) { 683 output.write Bytes(5, optionalFeatures_.getByteString(i));760 output.writeString(5, optionalFeatures_.get(i)); 684 761 } 685 762 if (((bitField0_ & 0x00000002) == 0x00000002)) { 686 output.write Bytes(16, getWritingprogramBytes());763 output.writeString(16, getWritingprogram()); 687 764 } 688 765 if (((bitField0_ & 0x00000004) == 0x00000004)) { 689 output.write Bytes(17, getSourceBytes());766 output.writeString(17, getSource()); 690 767 } 691 768 if (((bitField0_ & 0x00000008) == 0x00000008)) { … … 696 773 } 697 774 if (((bitField0_ & 0x00000020) == 0x00000020)) { 698 output.writeBytes(34, getOsmosisReplicationBaseUrlBytes()); 699 } 700 output.writeRawBytes(unknownFields); 701 } 702 703 private int memoizedSerializedSize = -1; 704 @Override 705 public int getSerializedSize() { 775 output.writeString(34, getOsmosisReplicationBaseUrl()); 776 } 777 unknownFields.writeTo(output); 778 } 779 780 public int getSerializedSize() { 706 781 int size = memoizedSerializedSize; 707 782 if (size != -1) return size; … … 710 785 if (((bitField0_ & 0x00000001) == 0x00000001)) { 711 786 size += com.google.protobuf.CodedOutputStream 712 .computeMessageSize(1, bbox_);787 .computeMessageSize(1, getBbox()); 713 788 } 714 789 { … … 716 791 for (int i = 0; i < requiredFeatures_.size(); i++) { 717 792 dataSize += com.google.protobuf.CodedOutputStream 718 .compute BytesSizeNoTag(requiredFeatures_.getByteString(i));793 .computeStringSizeNoTag(requiredFeatures_.get(i)); 719 794 } 720 795 size += dataSize; … … 725 800 for (int i = 0; i < optionalFeatures_.size(); i++) { 726 801 dataSize += com.google.protobuf.CodedOutputStream 727 .compute BytesSizeNoTag(optionalFeatures_.getByteString(i));802 .computeStringSizeNoTag(optionalFeatures_.get(i)); 728 803 } 729 804 size += dataSize; … … 732 807 if (((bitField0_ & 0x00000002) == 0x00000002)) { 733 808 size += com.google.protobuf.CodedOutputStream 734 .compute BytesSize(16, getWritingprogramBytes());809 .computeStringSize(16, getWritingprogram()); 735 810 } 736 811 if (((bitField0_ & 0x00000004) == 0x00000004)) { 737 812 size += com.google.protobuf.CodedOutputStream 738 .compute BytesSize(17, getSourceBytes());813 .computeStringSize(17, getSource()); 739 814 } 740 815 if (((bitField0_ & 0x00000008) == 0x00000008)) { … … 748 823 if (((bitField0_ & 0x00000020) == 0x00000020)) { 749 824 size += com.google.protobuf.CodedOutputStream 750 .compute BytesSize(34, getOsmosisReplicationBaseUrlBytes());751 } 752 size += unknownFields. size();825 .computeStringSize(34, getOsmosisReplicationBaseUrl()); 826 } 827 size += unknownFields.getSerializedSize(); 753 828 memoizedSerializedSize = size; 754 829 return size; 755 830 } 756 831 757 private static final long serialVersionUID = 0L; 758 @java.lang.Override 759 protected java.lang.Object writeReplace() 760 throws java.io.ObjectStreamException { 761 return super.writeReplace(); 762 } 763 832 public static crosby.binary.Osmformat.HeaderBlock parseFrom( 833 java.nio.ByteBuffer data) 834 throws com.google.protobuf.InvalidProtocolBufferException { 835 return com.google.protobuf.GeneratedMessageLite.parseFrom( 836 DEFAULT_INSTANCE, data); 837 } 838 public static crosby.binary.Osmformat.HeaderBlock parseFrom( 839 java.nio.ByteBuffer data, 840 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 841 throws com.google.protobuf.InvalidProtocolBufferException { 842 return com.google.protobuf.GeneratedMessageLite.parseFrom( 843 DEFAULT_INSTANCE, data, extensionRegistry); 844 } 764 845 public static crosby.binary.Osmformat.HeaderBlock parseFrom( 765 846 com.google.protobuf.ByteString data) 766 847 throws com.google.protobuf.InvalidProtocolBufferException { 767 return PARSER.parseFrom(data); 848 return com.google.protobuf.GeneratedMessageLite.parseFrom( 849 DEFAULT_INSTANCE, data); 768 850 } 769 851 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 771 853 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 772 854 throws com.google.protobuf.InvalidProtocolBufferException { 773 return PARSER.parseFrom(data, extensionRegistry); 855 return com.google.protobuf.GeneratedMessageLite.parseFrom( 856 DEFAULT_INSTANCE, data, extensionRegistry); 774 857 } 775 858 public static crosby.binary.Osmformat.HeaderBlock parseFrom(byte[] data) 776 859 throws com.google.protobuf.InvalidProtocolBufferException { 777 return PARSER.parseFrom(data); 860 return com.google.protobuf.GeneratedMessageLite.parseFrom( 861 DEFAULT_INSTANCE, data); 778 862 } 779 863 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 781 865 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 782 866 throws com.google.protobuf.InvalidProtocolBufferException { 783 return PARSER.parseFrom(data, extensionRegistry); 867 return com.google.protobuf.GeneratedMessageLite.parseFrom( 868 DEFAULT_INSTANCE, data, extensionRegistry); 784 869 } 785 870 public static crosby.binary.Osmformat.HeaderBlock parseFrom(java.io.InputStream input) 786 871 throws java.io.IOException { 787 return PARSER.parseFrom(input); 872 return com.google.protobuf.GeneratedMessageLite.parseFrom( 873 DEFAULT_INSTANCE, input); 788 874 } 789 875 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 791 877 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 792 878 throws java.io.IOException { 793 return PARSER.parseFrom(input, extensionRegistry); 879 return com.google.protobuf.GeneratedMessageLite.parseFrom( 880 DEFAULT_INSTANCE, input, extensionRegistry); 794 881 } 795 882 public static crosby.binary.Osmformat.HeaderBlock parseDelimitedFrom(java.io.InputStream input) 796 883 throws java.io.IOException { 797 return PARSER.parseDelimitedFrom(input);884 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 798 885 } 799 886 public static crosby.binary.Osmformat.HeaderBlock parseDelimitedFrom( … … 801 888 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 802 889 throws java.io.IOException { 803 return PARSER.parseDelimitedFrom(input, extensionRegistry);890 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 804 891 } 805 892 public static crosby.binary.Osmformat.HeaderBlock parseFrom( 806 893 com.google.protobuf.CodedInputStream input) 807 894 throws java.io.IOException { 808 return PARSER.parseFrom(input); 895 return com.google.protobuf.GeneratedMessageLite.parseFrom( 896 DEFAULT_INSTANCE, input); 809 897 } 810 898 public static crosby.binary.Osmformat.HeaderBlock parseFrom( … … 812 900 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 813 901 throws java.io.IOException { 814 return PARSER.parseFrom(input, extensionRegistry); 815 } 816 817 public static Builder newBuilder() { return Builder.create(); } 818 @Override 819 public Builder newBuilderForType() { return newBuilder(); } 902 return com.google.protobuf.GeneratedMessageLite.parseFrom( 903 DEFAULT_INSTANCE, input, extensionRegistry); 904 } 905 906 public static Builder newBuilder() { 907 return DEFAULT_INSTANCE.toBuilder(); 908 } 820 909 public static Builder newBuilder(crosby.binary.Osmformat.HeaderBlock prototype) { 821 return newBuilder().mergeFrom(prototype); 822 } 823 @Override 824 public Builder toBuilder() { return newBuilder(this); } 910 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 911 } 825 912 826 913 /** … … 829 916 public static final class Builder extends 830 917 com.google.protobuf.GeneratedMessageLite.Builder< 831 crosby.binary.Osmformat.HeaderBlock, Builder> 832 implements 918 crosby.binary.Osmformat.HeaderBlock, Builder> implements 833 919 // @@protoc_insertion_point(builder_implements:OSMPBF.HeaderBlock) 834 920 crosby.binary.Osmformat.HeaderBlockOrBuilder { 835 921 // Construct using crosby.binary.Osmformat.HeaderBlock.newBuilder() 836 922 private Builder() { 837 maybeForceBuilderInitialization(); 838 } 839 840 private void maybeForceBuilderInitialization() { 841 } 842 private static Builder create() { 843 return new Builder(); 844 } 845 846 @Override 847 public Builder clear() { 848 super.clear(); 849 bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 850 bitField0_ = (bitField0_ & ~0x00000001); 851 requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 852 bitField0_ = (bitField0_ & ~0x00000002); 853 optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 854 bitField0_ = (bitField0_ & ~0x00000004); 855 writingprogram_ = ""; 856 bitField0_ = (bitField0_ & ~0x00000008); 857 source_ = ""; 858 bitField0_ = (bitField0_ & ~0x00000010); 859 osmosisReplicationTimestamp_ = 0L; 860 bitField0_ = (bitField0_ & ~0x00000020); 861 osmosisReplicationSequenceNumber_ = 0L; 862 bitField0_ = (bitField0_ & ~0x00000040); 863 osmosisReplicationBaseUrl_ = ""; 864 bitField0_ = (bitField0_ & ~0x00000080); 865 return this; 866 } 867 868 @Override 869 public Builder clone() { 870 return create().mergeFrom(buildPartial()); 871 } 872 873 @Override 874 public crosby.binary.Osmformat.HeaderBlock getDefaultInstanceForType() { 875 return crosby.binary.Osmformat.HeaderBlock.getDefaultInstance(); 876 } 877 878 @Override 879 public crosby.binary.Osmformat.HeaderBlock build() { 880 crosby.binary.Osmformat.HeaderBlock result = buildPartial(); 881 if (!result.isInitialized()) { 882 throw newUninitializedMessageException(result); 883 } 884 return result; 885 } 886 887 @Override 888 public crosby.binary.Osmformat.HeaderBlock buildPartial() { 889 crosby.binary.Osmformat.HeaderBlock result = new crosby.binary.Osmformat.HeaderBlock(this); 890 int from_bitField0_ = bitField0_; 891 int to_bitField0_ = 0; 892 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 893 to_bitField0_ |= 0x00000001; 894 } 895 result.bbox_ = bbox_; 896 if (((bitField0_ & 0x00000002) == 0x00000002)) { 897 requiredFeatures_ = requiredFeatures_.getUnmodifiableView(); 898 bitField0_ = (bitField0_ & ~0x00000002); 899 } 900 result.requiredFeatures_ = requiredFeatures_; 901 if (((bitField0_ & 0x00000004) == 0x00000004)) { 902 optionalFeatures_ = optionalFeatures_.getUnmodifiableView(); 903 bitField0_ = (bitField0_ & ~0x00000004); 904 } 905 result.optionalFeatures_ = optionalFeatures_; 906 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 907 to_bitField0_ |= 0x00000002; 908 } 909 result.writingprogram_ = writingprogram_; 910 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 911 to_bitField0_ |= 0x00000004; 912 } 913 result.source_ = source_; 914 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 915 to_bitField0_ |= 0x00000008; 916 } 917 result.osmosisReplicationTimestamp_ = osmosisReplicationTimestamp_; 918 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 919 to_bitField0_ |= 0x00000010; 920 } 921 result.osmosisReplicationSequenceNumber_ = osmosisReplicationSequenceNumber_; 922 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 923 to_bitField0_ |= 0x00000020; 924 } 925 result.osmosisReplicationBaseUrl_ = osmosisReplicationBaseUrl_; 926 result.bitField0_ = to_bitField0_; 927 return result; 928 } 929 930 @Override 931 public Builder mergeFrom(crosby.binary.Osmformat.HeaderBlock other) { 932 if (other == crosby.binary.Osmformat.HeaderBlock.getDefaultInstance()) return this; 933 if (other.hasBbox()) { 934 mergeBbox(other.getBbox()); 935 } 936 if (!other.requiredFeatures_.isEmpty()) { 937 if (requiredFeatures_.isEmpty()) { 938 requiredFeatures_ = other.requiredFeatures_; 939 bitField0_ = (bitField0_ & ~0x00000002); 940 } else { 941 ensureRequiredFeaturesIsMutable(); 942 requiredFeatures_.addAll(other.requiredFeatures_); 943 } 944 945 } 946 if (!other.optionalFeatures_.isEmpty()) { 947 if (optionalFeatures_.isEmpty()) { 948 optionalFeatures_ = other.optionalFeatures_; 949 bitField0_ = (bitField0_ & ~0x00000004); 950 } else { 951 ensureOptionalFeaturesIsMutable(); 952 optionalFeatures_.addAll(other.optionalFeatures_); 953 } 954 955 } 956 if (other.hasWritingprogram()) { 957 bitField0_ |= 0x00000008; 958 writingprogram_ = other.writingprogram_; 959 960 } 961 if (other.hasSource()) { 962 bitField0_ |= 0x00000010; 963 source_ = other.source_; 964 965 } 966 if (other.hasOsmosisReplicationTimestamp()) { 967 setOsmosisReplicationTimestamp(other.getOsmosisReplicationTimestamp()); 968 } 969 if (other.hasOsmosisReplicationSequenceNumber()) { 970 setOsmosisReplicationSequenceNumber(other.getOsmosisReplicationSequenceNumber()); 971 } 972 if (other.hasOsmosisReplicationBaseUrl()) { 973 bitField0_ |= 0x00000080; 974 osmosisReplicationBaseUrl_ = other.osmosisReplicationBaseUrl_; 975 976 } 977 setUnknownFields( 978 getUnknownFields().concat(other.unknownFields)); 979 return this; 980 } 981 982 @Override 983 public final boolean isInitialized() { 984 if (hasBbox()) { 985 if (!getBbox().isInitialized()) { 986 987 return false; 988 } 989 } 990 return true; 991 } 992 993 @Override 994 public Builder mergeFrom( 995 com.google.protobuf.CodedInputStream input, 996 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 997 throws java.io.IOException { 998 crosby.binary.Osmformat.HeaderBlock parsedMessage = null; 999 try { 1000 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1001 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1002 parsedMessage = (crosby.binary.Osmformat.HeaderBlock) e.getUnfinishedMessage(); 1003 throw e; 1004 } finally { 1005 if (parsedMessage != null) { 1006 mergeFrom(parsedMessage); 1007 } 1008 } 1009 return this; 1010 } 1011 private int bitField0_; 1012 1013 private crosby.binary.Osmformat.HeaderBBox bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 923 super(DEFAULT_INSTANCE); 924 } 925 926 1014 927 /** 1015 928 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 1016 929 */ 1017 @Override 1018 public boolean hasBbox() { 1019 return ((bitField0_ & 0x00000001) == 0x00000001); 930 public boolean hasBbox() { 931 return instance.hasBbox(); 1020 932 } 1021 933 /** 1022 934 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 1023 935 */ 1024 @Override 1025 public crosby.binary.Osmformat.HeaderBBox getBbox() { 1026 return bbox_; 936 public crosby.binary.Osmformat.HeaderBBox getBbox() { 937 return instance.getBbox(); 1027 938 } 1028 939 /** … … 1030 941 */ 1031 942 public Builder setBbox(crosby.binary.Osmformat.HeaderBBox value) { 1032 if (value == null) { 1033 throw new NullPointerException(); 1034 } 1035 bbox_ = value; 1036 1037 bitField0_ |= 0x00000001; 1038 return this; 1039 } 943 copyOnWrite(); 944 instance.setBbox(value); 945 return this; 946 } 1040 947 /** 1041 948 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> … … 1043 950 public Builder setBbox( 1044 951 crosby.binary.Osmformat.HeaderBBox.Builder builderForValue) { 1045 bbox_ = builderForValue.build(); 1046 1047 bitField0_ |= 0x00000001; 952 copyOnWrite(); 953 instance.setBbox(builderForValue); 1048 954 return this; 1049 955 } … … 1052 958 */ 1053 959 public Builder mergeBbox(crosby.binary.Osmformat.HeaderBBox value) { 1054 if (((bitField0_ & 0x00000001) == 0x00000001) && 1055 bbox_ != crosby.binary.Osmformat.HeaderBBox.getDefaultInstance()) { 1056 bbox_ = 1057 crosby.binary.Osmformat.HeaderBBox.newBuilder(bbox_).mergeFrom(value).buildPartial(); 1058 } else { 1059 bbox_ = value; 1060 } 1061 1062 bitField0_ |= 0x00000001; 960 copyOnWrite(); 961 instance.mergeBbox(value); 1063 962 return this; 1064 963 } … … 1066 965 * <code>optional .OSMPBF.HeaderBBox bbox = 1;</code> 1067 966 */ 1068 public Builder clearBbox() { 1069 bbox_ = crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 1070 1071 bitField0_ = (bitField0_ & ~0x00000001); 1072 return this; 1073 } 1074 1075 private com.google.protobuf.LazyStringList requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1076 private void ensureRequiredFeaturesIsMutable() { 1077 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 1078 requiredFeatures_ = new com.google.protobuf.LazyStringArrayList(requiredFeatures_); 1079 bitField0_ |= 0x00000002; 1080 } 1081 } 1082 /** 967 public Builder clearBbox() { copyOnWrite(); 968 instance.clearBbox(); 969 return this; 970 } 971 972 /** 973 * <pre> 974 * Additional tags to aid in parsing this dataset 975 * </pre> 976 * 1083 977 * <code>repeated string required_features = 4;</code> 1084 * 1085 * <pre> 1086 * Additional tags to aid in parsing this dataset 1087 * </pre> 1088 */ 1089 @Override 1090 public com.google.protobuf.ProtocolStringList 978 */ 979 public java.util.List<java.lang.String> 1091 980 getRequiredFeaturesList() { 1092 return requiredFeatures_.getUnmodifiableView(); 1093 } 1094 /** 981 return java.util.Collections.unmodifiableList( 982 instance.getRequiredFeaturesList()); 983 } 984 /** 985 * <pre> 986 * Additional tags to aid in parsing this dataset 987 * </pre> 988 * 1095 989 * <code>repeated string required_features = 4;</code> 1096 * 1097 * <pre> 1098 * Additional tags to aid in parsing this dataset 1099 * </pre> 1100 */ 1101 @Override 1102 public int getRequiredFeaturesCount() { 1103 return requiredFeatures_.size(); 1104 } 1105 /** 990 */ 991 public int getRequiredFeaturesCount() { 992 return instance.getRequiredFeaturesCount(); 993 } 994 /** 995 * <pre> 996 * Additional tags to aid in parsing this dataset 997 * </pre> 998 * 1106 999 * <code>repeated string required_features = 4;</code> 1107 * 1108 * <pre> 1109 * Additional tags to aid in parsing this dataset 1110 * </pre> 1111 */ 1112 @Override 1113 public java.lang.String getRequiredFeatures(int index) { 1114 return requiredFeatures_.get(index); 1115 } 1116 /** 1000 */ 1001 public java.lang.String getRequiredFeatures(int index) { 1002 return instance.getRequiredFeatures(index); 1003 } 1004 /** 1005 * <pre> 1006 * Additional tags to aid in parsing this dataset 1007 * </pre> 1008 * 1117 1009 * <code>repeated string required_features = 4;</code> 1118 * 1119 * <pre> 1120 * Additional tags to aid in parsing this dataset 1121 * </pre> 1122 */ 1123 @Override 1124 public com.google.protobuf.ByteString 1010 */ 1011 public com.google.protobuf.ByteString 1125 1012 getRequiredFeaturesBytes(int index) { 1126 return requiredFeatures_.getByteString(index); 1127 } 1128 /** 1013 return instance.getRequiredFeaturesBytes(index); 1014 } 1015 /** 1016 * <pre> 1017 * Additional tags to aid in parsing this dataset 1018 * </pre> 1019 * 1129 1020 * <code>repeated string required_features = 4;</code> 1130 *1131 * <pre>1132 * Additional tags to aid in parsing this dataset1133 * </pre>1134 1021 */ 1135 1022 public Builder setRequiredFeatures( 1136 1023 int index, java.lang.String value) { 1137 if (value == null) {1138 throw new NullPointerException();1139 }1140 ensureRequiredFeaturesIsMutable();1141 requiredFeatures_.set(index, value);1142 1143 return this;1144 }1145 /**1024 copyOnWrite(); 1025 instance.setRequiredFeatures(index, value); 1026 return this; 1027 } 1028 /** 1029 * <pre> 1030 * Additional tags to aid in parsing this dataset 1031 * </pre> 1032 * 1146 1033 * <code>repeated string required_features = 4;</code> 1147 *1148 * <pre>1149 * Additional tags to aid in parsing this dataset1150 * </pre>1151 1034 */ 1152 1035 public Builder addRequiredFeatures( 1153 1036 java.lang.String value) { 1154 if (value == null) {1155 throw new NullPointerException();1156 }1157 ensureRequiredFeaturesIsMutable();1158 requiredFeatures_.add(value);1159 1160 return this;1161 }1162 /**1037 copyOnWrite(); 1038 instance.addRequiredFeatures(value); 1039 return this; 1040 } 1041 /** 1042 * <pre> 1043 * Additional tags to aid in parsing this dataset 1044 * </pre> 1045 * 1163 1046 * <code>repeated string required_features = 4;</code> 1164 *1165 * <pre>1166 * Additional tags to aid in parsing this dataset1167 * </pre>1168 1047 */ 1169 1048 public Builder addAllRequiredFeatures( 1170 1049 java.lang.Iterable<java.lang.String> values) { 1171 ensureRequiredFeaturesIsMutable(); 1172 com.google.protobuf.AbstractMessageLite.Builder.addAll( 1173 values, requiredFeatures_); 1174 1175 return this; 1176 } 1177 /** 1050 copyOnWrite(); 1051 instance.addAllRequiredFeatures(values); 1052 return this; 1053 } 1054 /** 1055 * <pre> 1056 * Additional tags to aid in parsing this dataset 1057 * </pre> 1058 * 1178 1059 * <code>repeated string required_features = 4;</code> 1179 *1180 * <pre>1181 * Additional tags to aid in parsing this dataset1182 * </pre>1183 1060 */ 1184 1061 public Builder clearRequiredFeatures() { 1185 requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1186 bitField0_ = (bitField0_ & ~0x00000002); 1187 1188 return this; 1189 } 1190 /** 1062 copyOnWrite(); 1063 instance.clearRequiredFeatures(); 1064 return this; 1065 } 1066 /** 1067 * <pre> 1068 * Additional tags to aid in parsing this dataset 1069 * </pre> 1070 * 1191 1071 * <code>repeated string required_features = 4;</code> 1192 *1193 * <pre>1194 * Additional tags to aid in parsing this dataset1195 * </pre>1196 1072 */ 1197 1073 public Builder addRequiredFeaturesBytes( 1198 1074 com.google.protobuf.ByteString value) { 1199 if (value == null) { 1200 throw new NullPointerException(); 1201 } 1202 ensureRequiredFeaturesIsMutable(); 1203 requiredFeatures_.add(value); 1204 1205 return this; 1206 } 1207 1208 private com.google.protobuf.LazyStringList optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1209 private void ensureOptionalFeaturesIsMutable() { 1210 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 1211 optionalFeatures_ = new com.google.protobuf.LazyStringArrayList(optionalFeatures_); 1212 bitField0_ |= 0x00000004; 1213 } 1214 } 1075 copyOnWrite(); 1076 instance.addRequiredFeaturesBytes(value); 1077 return this; 1078 } 1079 1215 1080 /** 1216 1081 * <code>repeated string optional_features = 5;</code> 1217 1082 */ 1218 @Override 1219 public com.google.protobuf.ProtocolStringList 1083 public java.util.List<java.lang.String> 1220 1084 getOptionalFeaturesList() { 1221 return optionalFeatures_.getUnmodifiableView(); 1085 return java.util.Collections.unmodifiableList( 1086 instance.getOptionalFeaturesList()); 1222 1087 } 1223 1088 /** 1224 1089 * <code>repeated string optional_features = 5;</code> 1225 1090 */ 1226 @Override 1227 public int getOptionalFeaturesCount() { 1228 return optionalFeatures_.size(); 1091 public int getOptionalFeaturesCount() { 1092 return instance.getOptionalFeaturesCount(); 1229 1093 } 1230 1094 /** 1231 1095 * <code>repeated string optional_features = 5;</code> 1232 1096 */ 1233 @Override 1234 public java.lang.String getOptionalFeatures(int index) { 1235 return optionalFeatures_.get(index); 1097 public java.lang.String getOptionalFeatures(int index) { 1098 return instance.getOptionalFeatures(index); 1236 1099 } 1237 1100 /** 1238 1101 * <code>repeated string optional_features = 5;</code> 1239 1102 */ 1240 @Override 1241 public com.google.protobuf.ByteString 1103 public com.google.protobuf.ByteString 1242 1104 getOptionalFeaturesBytes(int index) { 1243 return optionalFeatures_.getByteString(index);1105 return instance.getOptionalFeaturesBytes(index); 1244 1106 } 1245 1107 /** … … 1248 1110 public Builder setOptionalFeatures( 1249 1111 int index, java.lang.String value) { 1250 if (value == null) { 1251 throw new NullPointerException(); 1252 } 1253 ensureOptionalFeaturesIsMutable(); 1254 optionalFeatures_.set(index, value); 1255 1112 copyOnWrite(); 1113 instance.setOptionalFeatures(index, value); 1256 1114 return this; 1257 1115 } … … 1261 1119 public Builder addOptionalFeatures( 1262 1120 java.lang.String value) { 1263 if (value == null) { 1264 throw new NullPointerException(); 1265 } 1266 ensureOptionalFeaturesIsMutable(); 1267 optionalFeatures_.add(value); 1268 1121 copyOnWrite(); 1122 instance.addOptionalFeatures(value); 1269 1123 return this; 1270 1124 } … … 1274 1128 public Builder addAllOptionalFeatures( 1275 1129 java.lang.Iterable<java.lang.String> values) { 1276 ensureOptionalFeaturesIsMutable(); 1277 com.google.protobuf.AbstractMessageLite.Builder.addAll( 1278 values, optionalFeatures_); 1279 1130 copyOnWrite(); 1131 instance.addAllOptionalFeatures(values); 1280 1132 return this; 1281 1133 } … … 1284 1136 */ 1285 1137 public Builder clearOptionalFeatures() { 1286 optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1287 bitField0_ = (bitField0_ & ~0x00000004); 1288 1138 copyOnWrite(); 1139 instance.clearOptionalFeatures(); 1289 1140 return this; 1290 1141 } … … 1294 1145 public Builder addOptionalFeaturesBytes( 1295 1146 com.google.protobuf.ByteString value) { 1296 if (value == null) { 1297 throw new NullPointerException(); 1298 } 1299 ensureOptionalFeaturesIsMutable(); 1300 optionalFeatures_.add(value); 1301 1302 return this; 1303 } 1304 1305 private java.lang.Object writingprogram_ = ""; 1147 copyOnWrite(); 1148 instance.addOptionalFeaturesBytes(value); 1149 return this; 1150 } 1151 1306 1152 /** 1307 1153 * <code>optional string writingprogram = 16;</code> 1308 1154 */ 1309 @Override 1310 public boolean hasWritingprogram() { 1311 return ((bitField0_ & 0x00000008) == 0x00000008); 1155 public boolean hasWritingprogram() { 1156 return instance.hasWritingprogram(); 1312 1157 } 1313 1158 /** 1314 1159 * <code>optional string writingprogram = 16;</code> 1315 1160 */ 1316 @Override 1317 public java.lang.String getWritingprogram() { 1318 java.lang.Object ref = writingprogram_; 1319 if (!(ref instanceof java.lang.String)) { 1320 com.google.protobuf.ByteString bs = 1321 (com.google.protobuf.ByteString) ref; 1322 java.lang.String s = bs.toStringUtf8(); 1323 if (bs.isValidUtf8()) { 1324 writingprogram_ = s; 1325 } 1326 return s; 1327 } else { 1328 return (java.lang.String) ref; 1329 } 1161 public java.lang.String getWritingprogram() { 1162 return instance.getWritingprogram(); 1330 1163 } 1331 1164 /** 1332 1165 * <code>optional string writingprogram = 16;</code> 1333 1166 */ 1334 @Override 1335 public com.google.protobuf.ByteString 1167 public com.google.protobuf.ByteString 1336 1168 getWritingprogramBytes() { 1337 java.lang.Object ref = writingprogram_; 1338 if (ref instanceof String) { 1339 com.google.protobuf.ByteString b = 1340 com.google.protobuf.ByteString.copyFromUtf8( 1341 (java.lang.String) ref); 1342 writingprogram_ = b; 1343 return b; 1344 } else { 1345 return (com.google.protobuf.ByteString) ref; 1346 } 1169 return instance.getWritingprogramBytes(); 1347 1170 } 1348 1171 /** … … 1351 1174 public Builder setWritingprogram( 1352 1175 java.lang.String value) { 1353 if (value == null) { 1354 throw new NullPointerException(); 1355 } 1356 bitField0_ |= 0x00000008; 1357 writingprogram_ = value; 1358 1176 copyOnWrite(); 1177 instance.setWritingprogram(value); 1359 1178 return this; 1360 1179 } … … 1363 1182 */ 1364 1183 public Builder clearWritingprogram() { 1365 bitField0_ = (bitField0_ & ~0x00000008); 1366 writingprogram_ = getDefaultInstance().getWritingprogram(); 1367 1184 copyOnWrite(); 1185 instance.clearWritingprogram(); 1368 1186 return this; 1369 1187 } … … 1373 1191 public Builder setWritingprogramBytes( 1374 1192 com.google.protobuf.ByteString value) { 1375 if (value == null) { 1376 throw new NullPointerException(); 1377 } 1378 bitField0_ |= 0x00000008; 1379 writingprogram_ = value; 1380 1381 return this; 1382 } 1383 1384 private java.lang.Object source_ = ""; 1385 /** 1193 copyOnWrite(); 1194 instance.setWritingprogramBytes(value); 1195 return this; 1196 } 1197 1198 /** 1199 * <pre> 1200 * From the bbox field. 1201 * </pre> 1202 * 1386 1203 * <code>optional string source = 17;</code> 1387 * 1204 */ 1205 public boolean hasSource() { 1206 return instance.hasSource(); 1207 } 1208 /** 1388 1209 * <pre> 1389 1210 * From the bbox field. 1390 1211 * </pre> 1391 */ 1392 @Override 1393 public boolean hasSource() { 1394 return ((bitField0_ & 0x00000010) == 0x00000010); 1395 } 1396 /** 1212 * 1397 1213 * <code>optional string source = 17;</code> 1398 * 1214 */ 1215 public java.lang.String getSource() { 1216 return instance.getSource(); 1217 } 1218 /** 1399 1219 * <pre> 1400 1220 * From the bbox field. 1401 1221 * </pre> 1402 */ 1403 @Override 1404 public java.lang.String getSource() { 1405 java.lang.Object ref = source_; 1406 if (!(ref instanceof java.lang.String)) { 1407 com.google.protobuf.ByteString bs = 1408 (com.google.protobuf.ByteString) ref; 1409 java.lang.String s = bs.toStringUtf8(); 1410 if (bs.isValidUtf8()) { 1411 source_ = s; 1412 } 1413 return s; 1414 } else { 1415 return (java.lang.String) ref; 1416 } 1417 } 1418 /** 1222 * 1419 1223 * <code>optional string source = 17;</code> 1420 * 1224 */ 1225 public com.google.protobuf.ByteString 1226 getSourceBytes() { 1227 return instance.getSourceBytes(); 1228 } 1229 /** 1421 1230 * <pre> 1422 1231 * From the bbox field. 1423 1232 * </pre> 1424 */ 1425 @Override 1426 public com.google.protobuf.ByteString 1427 getSourceBytes() { 1428 java.lang.Object ref = source_; 1429 if (ref instanceof String) { 1430 com.google.protobuf.ByteString b = 1431 com.google.protobuf.ByteString.copyFromUtf8( 1432 (java.lang.String) ref); 1433 source_ = b; 1434 return b; 1435 } else { 1436 return (com.google.protobuf.ByteString) ref; 1437 } 1438 } 1439 /** 1233 * 1440 1234 * <code>optional string source = 17;</code> 1441 *1442 * <pre>1443 * From the bbox field.1444 * </pre>1445 1235 */ 1446 1236 public Builder setSource( 1447 1237 java.lang.String value) { 1448 if (value == null) {1449 throw new NullPointerException();1450 }1451 bitField0_ |= 0x00000010;1452 source_ = value;1453 1454 return this;1455 }1456 /**1238 copyOnWrite(); 1239 instance.setSource(value); 1240 return this; 1241 } 1242 /** 1243 * <pre> 1244 * From the bbox field. 1245 * </pre> 1246 * 1457 1247 * <code>optional string source = 17;</code> 1458 * 1248 */ 1249 public Builder clearSource() { 1250 copyOnWrite(); 1251 instance.clearSource(); 1252 return this; 1253 } 1254 /** 1459 1255 * <pre> 1460 1256 * From the bbox field. 1461 1257 * </pre> 1462 */ 1463 public Builder clearSource() { 1464 bitField0_ = (bitField0_ & ~0x00000010); 1465 source_ = getDefaultInstance().getSource(); 1466 1467 return this; 1468 } 1469 /** 1258 * 1470 1259 * <code>optional string source = 17;</code> 1471 *1472 * <pre>1473 * From the bbox field.1474 * </pre>1475 1260 */ 1476 1261 public Builder setSourceBytes( 1477 1262 com.google.protobuf.ByteString value) { 1478 if (value == null) { 1479 throw new NullPointerException(); 1480 } 1481 bitField0_ |= 0x00000010; 1482 source_ = value; 1483 1484 return this; 1485 } 1486 1487 private long osmosisReplicationTimestamp_ ; 1488 /** 1489 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1490 * 1491 * <pre> 1492 * replication timestamp, expressed in seconds since the epoch, 1263 copyOnWrite(); 1264 instance.setSourceBytes(value); 1265 return this; 1266 } 1267 1268 /** 1269 * <pre> 1270 * replication timestamp, expressed in seconds since the epoch, 1493 1271 * otherwise the same value as in the "timestamp=..." field 1494 1272 * in the state.txt file used by Osmosis 1495 1273 * </pre> 1496 */ 1497 @Override 1498 public boolean hasOsmosisReplicationTimestamp() { 1499 return ((bitField0_ & 0x00000020) == 0x00000020); 1500 } 1501 /** 1274 * 1502 1275 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1503 * 1504 * <pre> 1505 * replication timestamp, expressed in seconds since the epoch, 1276 */ 1277 public boolean hasOsmosisReplicationTimestamp() { 1278 return instance.hasOsmosisReplicationTimestamp(); 1279 } 1280 /** 1281 * <pre> 1282 * replication timestamp, expressed in seconds since the epoch, 1506 1283 * otherwise the same value as in the "timestamp=..." field 1507 1284 * in the state.txt file used by Osmosis 1508 1285 * </pre> 1509 */ 1510 @Override 1511 public long getOsmosisReplicationTimestamp() { 1512 return osmosisReplicationTimestamp_; 1513 } 1514 /** 1286 * 1515 1287 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1516 * 1517 * <pre> 1518 * replication timestamp, expressed in seconds since the epoch, 1288 */ 1289 public long getOsmosisReplicationTimestamp() { 1290 return instance.getOsmosisReplicationTimestamp(); 1291 } 1292 /** 1293 * <pre> 1294 * replication timestamp, expressed in seconds since the epoch, 1519 1295 * otherwise the same value as in the "timestamp=..." field 1520 1296 * in the state.txt file used by Osmosis 1521 1297 * </pre> 1298 * 1299 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1522 1300 */ 1523 1301 public Builder setOsmosisReplicationTimestamp(long value) { 1524 bitField0_ |= 0x00000020; 1525 osmosisReplicationTimestamp_ = value; 1526 1527 return this; 1528 } 1529 /** 1530 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1531 * 1532 * <pre> 1533 * replication timestamp, expressed in seconds since the epoch, 1302 copyOnWrite(); 1303 instance.setOsmosisReplicationTimestamp(value); 1304 return this; 1305 } 1306 /** 1307 * <pre> 1308 * replication timestamp, expressed in seconds since the epoch, 1534 1309 * otherwise the same value as in the "timestamp=..." field 1535 1310 * in the state.txt file used by Osmosis 1536 1311 * </pre> 1312 * 1313 * <code>optional int64 osmosis_replication_timestamp = 32;</code> 1537 1314 */ 1538 1315 public Builder clearOsmosisReplicationTimestamp() { 1539 bitField0_ = (bitField0_ & ~0x00000020); 1540 osmosisReplicationTimestamp_ = 0L; 1541 1542 return this; 1543 } 1544 1545 private long osmosisReplicationSequenceNumber_ ; 1546 /** 1316 copyOnWrite(); 1317 instance.clearOsmosisReplicationTimestamp(); 1318 return this; 1319 } 1320 1321 /** 1322 * <pre> 1323 * replication sequence number (sequenceNumber in state.txt) 1324 * </pre> 1325 * 1547 1326 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1548 * 1327 */ 1328 public boolean hasOsmosisReplicationSequenceNumber() { 1329 return instance.hasOsmosisReplicationSequenceNumber(); 1330 } 1331 /** 1549 1332 * <pre> 1550 1333 * replication sequence number (sequenceNumber in state.txt) 1551 1334 * </pre> 1552 */ 1553 @Override 1554 public boolean hasOsmosisReplicationSequenceNumber() { 1555 return ((bitField0_ & 0x00000040) == 0x00000040); 1556 } 1557 /** 1335 * 1558 1336 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1559 * 1337 */ 1338 public long getOsmosisReplicationSequenceNumber() { 1339 return instance.getOsmosisReplicationSequenceNumber(); 1340 } 1341 /** 1560 1342 * <pre> 1561 1343 * replication sequence number (sequenceNumber in state.txt) 1562 1344 * </pre> 1563 */ 1564 @Override 1565 public long getOsmosisReplicationSequenceNumber() { 1566 return osmosisReplicationSequenceNumber_; 1567 } 1568 /** 1345 * 1569 1346 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1570 * 1347 */ 1348 public Builder setOsmosisReplicationSequenceNumber(long value) { 1349 copyOnWrite(); 1350 instance.setOsmosisReplicationSequenceNumber(value); 1351 return this; 1352 } 1353 /** 1571 1354 * <pre> 1572 1355 * replication sequence number (sequenceNumber in state.txt) 1573 1356 * </pre> 1574 */ 1575 public Builder setOsmosisReplicationSequenceNumber(long value) { 1576 bitField0_ |= 0x00000040; 1577 osmosisReplicationSequenceNumber_ = value; 1578 1579 return this; 1580 } 1581 /** 1357 * 1582 1358 * <code>optional int64 osmosis_replication_sequence_number = 33;</code> 1583 *1584 * <pre>1585 * replication sequence number (sequenceNumber in state.txt)1586 * </pre>1587 1359 */ 1588 1360 public Builder clearOsmosisReplicationSequenceNumber() { 1589 bitField0_ = (bitField0_ & ~0x00000040); 1590 osmosisReplicationSequenceNumber_ = 0L; 1591 1592 return this; 1593 } 1594 1595 private java.lang.Object osmosisReplicationBaseUrl_ = ""; 1596 /** 1361 copyOnWrite(); 1362 instance.clearOsmosisReplicationSequenceNumber(); 1363 return this; 1364 } 1365 1366 /** 1367 * <pre> 1368 * replication base URL (from Osmosis' configuration.txt file) 1369 * </pre> 1370 * 1597 1371 * <code>optional string osmosis_replication_base_url = 34;</code> 1598 * 1372 */ 1373 public boolean hasOsmosisReplicationBaseUrl() { 1374 return instance.hasOsmosisReplicationBaseUrl(); 1375 } 1376 /** 1599 1377 * <pre> 1600 1378 * replication base URL (from Osmosis' configuration.txt file) 1601 1379 * </pre> 1602 */ 1603 @Override 1604 public boolean hasOsmosisReplicationBaseUrl() { 1605 return ((bitField0_ & 0x00000080) == 0x00000080); 1606 } 1607 /** 1380 * 1608 1381 * <code>optional string osmosis_replication_base_url = 34;</code> 1609 * 1382 */ 1383 public java.lang.String getOsmosisReplicationBaseUrl() { 1384 return instance.getOsmosisReplicationBaseUrl(); 1385 } 1386 /** 1610 1387 * <pre> 1611 1388 * replication base URL (from Osmosis' configuration.txt file) 1612 1389 * </pre> 1613 */ 1614 @Override 1615 public java.lang.String getOsmosisReplicationBaseUrl() { 1616 java.lang.Object ref = osmosisReplicationBaseUrl_; 1617 if (!(ref instanceof java.lang.String)) { 1618 com.google.protobuf.ByteString bs = 1619 (com.google.protobuf.ByteString) ref; 1620 java.lang.String s = bs.toStringUtf8(); 1621 if (bs.isValidUtf8()) { 1622 osmosisReplicationBaseUrl_ = s; 1623 } 1624 return s; 1625 } else { 1626 return (java.lang.String) ref; 1627 } 1628 } 1629 /** 1390 * 1630 1391 * <code>optional string osmosis_replication_base_url = 34;</code> 1631 * 1392 */ 1393 public com.google.protobuf.ByteString 1394 getOsmosisReplicationBaseUrlBytes() { 1395 return instance.getOsmosisReplicationBaseUrlBytes(); 1396 } 1397 /** 1632 1398 * <pre> 1633 1399 * replication base URL (from Osmosis' configuration.txt file) 1634 1400 * </pre> 1635 */ 1636 @Override 1637 public com.google.protobuf.ByteString 1638 getOsmosisReplicationBaseUrlBytes() { 1639 java.lang.Object ref = osmosisReplicationBaseUrl_; 1640 if (ref instanceof String) { 1641 com.google.protobuf.ByteString b = 1642 com.google.protobuf.ByteString.copyFromUtf8( 1643 (java.lang.String) ref); 1644 osmosisReplicationBaseUrl_ = b; 1645 return b; 1646 } else { 1647 return (com.google.protobuf.ByteString) ref; 1648 } 1649 } 1650 /** 1401 * 1651 1402 * <code>optional string osmosis_replication_base_url = 34;</code> 1652 *1653 * <pre>1654 * replication base URL (from Osmosis' configuration.txt file)1655 * </pre>1656 1403 */ 1657 1404 public Builder setOsmosisReplicationBaseUrl( 1658 1405 java.lang.String value) { 1659 if (value == null) {1660 throw new NullPointerException();1661 }1662 bitField0_ |= 0x00000080;1663 osmosisReplicationBaseUrl_ = value;1664 1665 return this;1666 }1667 /**1406 copyOnWrite(); 1407 instance.setOsmosisReplicationBaseUrl(value); 1408 return this; 1409 } 1410 /** 1411 * <pre> 1412 * replication base URL (from Osmosis' configuration.txt file) 1413 * </pre> 1414 * 1668 1415 * <code>optional string osmosis_replication_base_url = 34;</code> 1669 * 1416 */ 1417 public Builder clearOsmosisReplicationBaseUrl() { 1418 copyOnWrite(); 1419 instance.clearOsmosisReplicationBaseUrl(); 1420 return this; 1421 } 1422 /** 1670 1423 * <pre> 1671 1424 * replication base URL (from Osmosis' configuration.txt file) 1672 1425 * </pre> 1673 */ 1674 public Builder clearOsmosisReplicationBaseUrl() { 1675 bitField0_ = (bitField0_ & ~0x00000080); 1676 osmosisReplicationBaseUrl_ = getDefaultInstance().getOsmosisReplicationBaseUrl(); 1677 1678 return this; 1679 } 1680 /** 1426 * 1681 1427 * <code>optional string osmosis_replication_base_url = 34;</code> 1682 *1683 * <pre>1684 * replication base URL (from Osmosis' configuration.txt file)1685 * </pre>1686 1428 */ 1687 1429 public Builder setOsmosisReplicationBaseUrlBytes( 1688 1430 com.google.protobuf.ByteString value) { 1689 if (value == null) { 1690 throw new NullPointerException(); 1691 } 1692 bitField0_ |= 0x00000080; 1693 osmosisReplicationBaseUrl_ = value; 1694 1431 copyOnWrite(); 1432 instance.setOsmosisReplicationBaseUrlBytes(value); 1695 1433 return this; 1696 1434 } … … 1698 1436 // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBlock) 1699 1437 } 1700 1438 private byte memoizedIsInitialized = -1; 1439 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 1440 protected final java.lang.Object dynamicMethod( 1441 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 1442 java.lang.Object arg0, java.lang.Object arg1) { 1443 switch (method) { 1444 case NEW_MUTABLE_INSTANCE: { 1445 return new crosby.binary.Osmformat.HeaderBlock(); 1446 } 1447 case IS_INITIALIZED: { 1448 byte isInitialized = memoizedIsInitialized; 1449 if (isInitialized == 1) return DEFAULT_INSTANCE; 1450 if (isInitialized == 0) return null; 1451 1452 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 1453 if (hasBbox()) { 1454 if (!getBbox().isInitialized()) { 1455 if (shouldMemoize) { 1456 memoizedIsInitialized = 0; 1457 } 1458 return null; 1459 } 1460 } 1461 if (shouldMemoize) memoizedIsInitialized = 1; 1462 return DEFAULT_INSTANCE; 1463 1464 } 1465 case MAKE_IMMUTABLE: { 1466 requiredFeatures_.makeImmutable(); 1467 optionalFeatures_.makeImmutable(); 1468 return null; 1469 } 1470 case NEW_BUILDER: { 1471 return new Builder(); 1472 } 1473 case VISIT: { 1474 Visitor visitor = (Visitor) arg0; 1475 crosby.binary.Osmformat.HeaderBlock other = (crosby.binary.Osmformat.HeaderBlock) arg1; 1476 bbox_ = visitor.visitMessage(bbox_, other.bbox_); 1477 requiredFeatures_= visitor.visitList(requiredFeatures_, other.requiredFeatures_); 1478 optionalFeatures_= visitor.visitList(optionalFeatures_, other.optionalFeatures_); 1479 writingprogram_ = visitor.visitString( 1480 hasWritingprogram(), writingprogram_, 1481 other.hasWritingprogram(), other.writingprogram_); 1482 source_ = visitor.visitString( 1483 hasSource(), source_, 1484 other.hasSource(), other.source_); 1485 osmosisReplicationTimestamp_ = visitor.visitLong( 1486 hasOsmosisReplicationTimestamp(), osmosisReplicationTimestamp_, 1487 other.hasOsmosisReplicationTimestamp(), other.osmosisReplicationTimestamp_); 1488 osmosisReplicationSequenceNumber_ = visitor.visitLong( 1489 hasOsmosisReplicationSequenceNumber(), osmosisReplicationSequenceNumber_, 1490 other.hasOsmosisReplicationSequenceNumber(), other.osmosisReplicationSequenceNumber_); 1491 osmosisReplicationBaseUrl_ = visitor.visitString( 1492 hasOsmosisReplicationBaseUrl(), osmosisReplicationBaseUrl_, 1493 other.hasOsmosisReplicationBaseUrl(), other.osmosisReplicationBaseUrl_); 1494 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 1495 .INSTANCE) { 1496 bitField0_ |= other.bitField0_; 1497 } 1498 return this; 1499 } 1500 case MERGE_FROM_STREAM: { 1501 com.google.protobuf.CodedInputStream input = 1502 (com.google.protobuf.CodedInputStream) arg0; 1503 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 1504 (com.google.protobuf.ExtensionRegistryLite) arg1; 1505 try { 1506 boolean done = false; 1507 while (!done) { 1508 int tag = input.readTag(); 1509 switch (tag) { 1510 case 0: 1511 done = true; 1512 break; 1513 default: { 1514 if (!parseUnknownField(tag, input)) { 1515 done = true; 1516 } 1517 break; 1518 } 1519 case 10: { 1520 crosby.binary.Osmformat.HeaderBBox.Builder subBuilder = null; 1521 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1522 subBuilder = bbox_.toBuilder(); 1523 } 1524 bbox_ = input.readMessage(crosby.binary.Osmformat.HeaderBBox.parser(), extensionRegistry); 1525 if (subBuilder != null) { 1526 subBuilder.mergeFrom(bbox_); 1527 bbox_ = subBuilder.buildPartial(); 1528 } 1529 bitField0_ |= 0x00000001; 1530 break; 1531 } 1532 case 34: { 1533 java.lang.String s = input.readString(); 1534 if (!requiredFeatures_.isModifiable()) { 1535 requiredFeatures_ = 1536 com.google.protobuf.GeneratedMessageLite.mutableCopy(requiredFeatures_); 1537 } 1538 requiredFeatures_.add(s); 1539 break; 1540 } 1541 case 42: { 1542 java.lang.String s = input.readString(); 1543 if (!optionalFeatures_.isModifiable()) { 1544 optionalFeatures_ = 1545 com.google.protobuf.GeneratedMessageLite.mutableCopy(optionalFeatures_); 1546 } 1547 optionalFeatures_.add(s); 1548 break; 1549 } 1550 case 130: { 1551 java.lang.String s = input.readString(); 1552 bitField0_ |= 0x00000002; 1553 writingprogram_ = s; 1554 break; 1555 } 1556 case 138: { 1557 java.lang.String s = input.readString(); 1558 bitField0_ |= 0x00000004; 1559 source_ = s; 1560 break; 1561 } 1562 case 256: { 1563 bitField0_ |= 0x00000008; 1564 osmosisReplicationTimestamp_ = input.readInt64(); 1565 break; 1566 } 1567 case 264: { 1568 bitField0_ |= 0x00000010; 1569 osmosisReplicationSequenceNumber_ = input.readInt64(); 1570 break; 1571 } 1572 case 274: { 1573 java.lang.String s = input.readString(); 1574 bitField0_ |= 0x00000020; 1575 osmosisReplicationBaseUrl_ = s; 1576 break; 1577 } 1578 } 1579 } 1580 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1581 throw new RuntimeException(e.setUnfinishedMessage(this)); 1582 } catch (java.io.IOException e) { 1583 throw new RuntimeException( 1584 new com.google.protobuf.InvalidProtocolBufferException( 1585 e.getMessage()).setUnfinishedMessage(this)); 1586 } finally { 1587 } 1588 } 1589 // fall through 1590 case GET_DEFAULT_INSTANCE: { 1591 return DEFAULT_INSTANCE; 1592 } 1593 case GET_PARSER: { 1594 if (PARSER == null) { synchronized (crosby.binary.Osmformat.HeaderBlock.class) { 1595 if (PARSER == null) { 1596 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 1597 } 1598 } 1599 } 1600 return PARSER; 1601 } 1602 } 1603 throw new UnsupportedOperationException(); 1604 } 1605 1606 1607 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBlock) 1608 private static final crosby.binary.Osmformat.HeaderBlock DEFAULT_INSTANCE; 1701 1609 static { 1702 defaultInstance = new HeaderBlock(true); 1703 defaultInstance.initFields(); 1704 } 1705 1706 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBlock) 1610 DEFAULT_INSTANCE = new HeaderBlock(); 1611 DEFAULT_INSTANCE.makeImmutable(); 1612 } 1613 1614 public static crosby.binary.Osmformat.HeaderBlock getDefaultInstance() { 1615 return DEFAULT_INSTANCE; 1616 } 1617 1618 private static volatile com.google.protobuf.Parser<HeaderBlock> PARSER; 1619 1620 public static com.google.protobuf.Parser<HeaderBlock> parser() { 1621 return DEFAULT_INSTANCE.getParserForType(); 1622 } 1707 1623 } 1708 1624 … … 1750 1666 * Protobuf type {@code OSMPBF.HeaderBBox} 1751 1667 */ 1752 public static final class HeaderBBox extends 1753 com.google.protobuf.GeneratedMessageLite implements 1668 public static final class HeaderBBox extends 1669 com.google.protobuf.GeneratedMessageLite< 1670 HeaderBBox, HeaderBBox.Builder> implements 1754 1671 // @@protoc_insertion_point(message_implements:OSMPBF.HeaderBBox) 1755 1672 HeaderBBoxOrBuilder { 1756 // Use HeaderBBox.newBuilder() to construct. 1757 private HeaderBBox(com.google.protobuf.GeneratedMessageLite.Builder builder) { 1758 super(builder); 1759 this.unknownFields = builder.getUnknownFields(); 1760 } 1761 private HeaderBBox(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 1762 1763 private static final HeaderBBox defaultInstance; 1764 public static HeaderBBox getDefaultInstance() { 1765 return defaultInstance; 1766 } 1767 1768 @Override 1769 public HeaderBBox getDefaultInstanceForType() { 1770 return defaultInstance; 1771 } 1772 1773 private final com.google.protobuf.ByteString unknownFields; 1774 private HeaderBBox( 1775 com.google.protobuf.CodedInputStream input, 1776 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1777 throws com.google.protobuf.InvalidProtocolBufferException { 1778 initFields(); 1779 int mutable_bitField0_ = 0; 1780 com.google.protobuf.ByteString.Output unknownFieldsOutput = 1781 com.google.protobuf.ByteString.newOutput(); 1782 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 1783 com.google.protobuf.CodedOutputStream.newInstance( 1784 unknownFieldsOutput); 1785 try { 1786 boolean done = false; 1787 while (!done) { 1788 int tag = input.readTag(); 1789 switch (tag) { 1790 case 0: 1791 done = true; 1792 break; 1793 default: { 1794 if (!parseUnknownField(input, unknownFieldsCodedOutput, 1795 extensionRegistry, tag)) { 1796 done = true; 1797 } 1798 break; 1799 } 1800 case 8: { 1801 bitField0_ |= 0x00000001; 1802 left_ = input.readSInt64(); 1803 break; 1804 } 1805 case 16: { 1806 bitField0_ |= 0x00000002; 1807 right_ = input.readSInt64(); 1808 break; 1809 } 1810 case 24: { 1811 bitField0_ |= 0x00000004; 1812 top_ = input.readSInt64(); 1813 break; 1814 } 1815 case 32: { 1816 bitField0_ |= 0x00000008; 1817 bottom_ = input.readSInt64(); 1818 break; 1819 } 1820 } 1821 } 1822 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1823 throw e.setUnfinishedMessage(this); 1824 } catch (java.io.IOException e) { 1825 throw new com.google.protobuf.InvalidProtocolBufferException( 1826 e.getMessage()).setUnfinishedMessage(this); 1827 } finally { 1828 try { 1829 unknownFieldsCodedOutput.flush(); 1830 } catch (java.io.IOException e) { 1831 // Should not happen 1832 } finally { 1833 unknownFields = unknownFieldsOutput.toByteString(); 1834 } 1835 makeExtensionsImmutable(); 1836 } 1837 } 1838 public static com.google.protobuf.Parser<HeaderBBox> PARSER = 1839 new com.google.protobuf.AbstractParser<HeaderBBox>() { 1840 @Override 1841 public HeaderBBox parsePartialFrom( 1842 com.google.protobuf.CodedInputStream input, 1843 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1844 throws com.google.protobuf.InvalidProtocolBufferException { 1845 return new HeaderBBox(input, extensionRegistry); 1846 } 1847 }; 1848 1849 @java.lang.Override 1850 public com.google.protobuf.Parser<HeaderBBox> getParserForType() { 1851 return PARSER; 1852 } 1853 1673 private HeaderBBox() { 1674 } 1854 1675 private int bitField0_; 1855 1676 public static final int LEFT_FIELD_NUMBER = 1; … … 1858 1679 * <code>required sint64 left = 1;</code> 1859 1680 */ 1860 @Override 1861 public boolean hasLeft() { 1681 public boolean hasLeft() { 1862 1682 return ((bitField0_ & 0x00000001) == 0x00000001); 1863 1683 } … … 1865 1685 * <code>required sint64 left = 1;</code> 1866 1686 */ 1867 @Override 1868 public long getLeft() { 1687 public long getLeft() { 1869 1688 return left_; 1689 } 1690 /** 1691 * <code>required sint64 left = 1;</code> 1692 */ 1693 private void setLeft(long value) { 1694 bitField0_ |= 0x00000001; 1695 left_ = value; 1696 } 1697 /** 1698 * <code>required sint64 left = 1;</code> 1699 */ 1700 private void clearLeft() { 1701 bitField0_ = (bitField0_ & ~0x00000001); 1702 left_ = 0L; 1870 1703 } 1871 1704 … … 1875 1708 * <code>required sint64 right = 2;</code> 1876 1709 */ 1877 @Override 1878 public boolean hasRight() { 1710 public boolean hasRight() { 1879 1711 return ((bitField0_ & 0x00000002) == 0x00000002); 1880 1712 } … … 1882 1714 * <code>required sint64 right = 2;</code> 1883 1715 */ 1884 @Override 1885 public long getRight() { 1716 public long getRight() { 1886 1717 return right_; 1718 } 1719 /** 1720 * <code>required sint64 right = 2;</code> 1721 */ 1722 private void setRight(long value) { 1723 bitField0_ |= 0x00000002; 1724 right_ = value; 1725 } 1726 /** 1727 * <code>required sint64 right = 2;</code> 1728 */ 1729 private void clearRight() { 1730 bitField0_ = (bitField0_ & ~0x00000002); 1731 right_ = 0L; 1887 1732 } 1888 1733 … … 1892 1737 * <code>required sint64 top = 3;</code> 1893 1738 */ 1894 @Override 1895 public boolean hasTop() { 1739 public boolean hasTop() { 1896 1740 return ((bitField0_ & 0x00000004) == 0x00000004); 1897 1741 } … … 1899 1743 * <code>required sint64 top = 3;</code> 1900 1744 */ 1901 @Override 1902 public long getTop() { 1745 public long getTop() { 1903 1746 return top_; 1747 } 1748 /** 1749 * <code>required sint64 top = 3;</code> 1750 */ 1751 private void setTop(long value) { 1752 bitField0_ |= 0x00000004; 1753 top_ = value; 1754 } 1755 /** 1756 * <code>required sint64 top = 3;</code> 1757 */ 1758 private void clearTop() { 1759 bitField0_ = (bitField0_ & ~0x00000004); 1760 top_ = 0L; 1904 1761 } 1905 1762 … … 1909 1766 * <code>required sint64 bottom = 4;</code> 1910 1767 */ 1911 @Override 1912 public boolean hasBottom() { 1768 public boolean hasBottom() { 1913 1769 return ((bitField0_ & 0x00000008) == 0x00000008); 1914 1770 } … … 1916 1772 * <code>required sint64 bottom = 4;</code> 1917 1773 */ 1918 @Override 1919 public long getBottom() { 1774 public long getBottom() { 1920 1775 return bottom_; 1921 1776 } 1922 1923 private void initFields() { 1924 left_ = 0L; 1925 right_ = 0L; 1926 top_ = 0L; 1777 /** 1778 * <code>required sint64 bottom = 4;</code> 1779 */ 1780 private void setBottom(long value) { 1781 bitField0_ |= 0x00000008; 1782 bottom_ = value; 1783 } 1784 /** 1785 * <code>required sint64 bottom = 4;</code> 1786 */ 1787 private void clearBottom() { 1788 bitField0_ = (bitField0_ & ~0x00000008); 1927 1789 bottom_ = 0L; 1928 1790 } 1929 private byte memoizedIsInitialized = -1; 1930 @Override 1931 public final boolean isInitialized() { 1932 byte isInitialized = memoizedIsInitialized; 1933 if (isInitialized == 1) return true; 1934 if (isInitialized == 0) return false; 1935 1936 if (!hasLeft()) { 1937 memoizedIsInitialized = 0; 1938 return false; 1939 } 1940 if (!hasRight()) { 1941 memoizedIsInitialized = 0; 1942 return false; 1943 } 1944 if (!hasTop()) { 1945 memoizedIsInitialized = 0; 1946 return false; 1947 } 1948 if (!hasBottom()) { 1949 memoizedIsInitialized = 0; 1950 return false; 1951 } 1952 memoizedIsInitialized = 1; 1953 return true; 1954 } 1955 1956 @Override 1957 public void writeTo(com.google.protobuf.CodedOutputStream output) 1791 1792 public void writeTo(com.google.protobuf.CodedOutputStream output) 1958 1793 throws java.io.IOException { 1959 getSerializedSize();1960 1794 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1961 1795 output.writeSInt64(1, left_); … … 1970 1804 output.writeSInt64(4, bottom_); 1971 1805 } 1972 output.writeRawBytes(unknownFields); 1973 } 1974 1975 private int memoizedSerializedSize = -1; 1976 @Override 1977 public int getSerializedSize() { 1806 unknownFields.writeTo(output); 1807 } 1808 1809 public int getSerializedSize() { 1978 1810 int size = memoizedSerializedSize; 1979 1811 if (size != -1) return size; … … 1996 1828 .computeSInt64Size(4, bottom_); 1997 1829 } 1998 size += unknownFields. size();1830 size += unknownFields.getSerializedSize(); 1999 1831 memoizedSerializedSize = size; 2000 1832 return size; 2001 1833 } 2002 1834 2003 private static final long serialVersionUID = 0L; 2004 @java.lang.Override 2005 protected java.lang.Object writeReplace() 2006 throws java.io.ObjectStreamException { 2007 return super.writeReplace(); 2008 } 2009 1835 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 1836 java.nio.ByteBuffer data) 1837 throws com.google.protobuf.InvalidProtocolBufferException { 1838 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1839 DEFAULT_INSTANCE, data); 1840 } 1841 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 1842 java.nio.ByteBuffer data, 1843 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1844 throws com.google.protobuf.InvalidProtocolBufferException { 1845 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1846 DEFAULT_INSTANCE, data, extensionRegistry); 1847 } 2010 1848 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 2011 1849 com.google.protobuf.ByteString data) 2012 1850 throws com.google.protobuf.InvalidProtocolBufferException { 2013 return PARSER.parseFrom(data); 1851 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1852 DEFAULT_INSTANCE, data); 2014 1853 } 2015 1854 public static crosby.binary.Osmformat.HeaderBBox parseFrom( … … 2017 1856 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2018 1857 throws com.google.protobuf.InvalidProtocolBufferException { 2019 return PARSER.parseFrom(data, extensionRegistry); 1858 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1859 DEFAULT_INSTANCE, data, extensionRegistry); 2020 1860 } 2021 1861 public static crosby.binary.Osmformat.HeaderBBox parseFrom(byte[] data) 2022 1862 throws com.google.protobuf.InvalidProtocolBufferException { 2023 return PARSER.parseFrom(data); 1863 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1864 DEFAULT_INSTANCE, data); 2024 1865 } 2025 1866 public static crosby.binary.Osmformat.HeaderBBox parseFrom( … … 2027 1868 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2028 1869 throws com.google.protobuf.InvalidProtocolBufferException { 2029 return PARSER.parseFrom(data, extensionRegistry); 1870 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1871 DEFAULT_INSTANCE, data, extensionRegistry); 2030 1872 } 2031 1873 public static crosby.binary.Osmformat.HeaderBBox parseFrom(java.io.InputStream input) 2032 1874 throws java.io.IOException { 2033 return PARSER.parseFrom(input); 1875 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1876 DEFAULT_INSTANCE, input); 2034 1877 } 2035 1878 public static crosby.binary.Osmformat.HeaderBBox parseFrom( … … 2037 1880 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2038 1881 throws java.io.IOException { 2039 return PARSER.parseFrom(input, extensionRegistry); 1882 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1883 DEFAULT_INSTANCE, input, extensionRegistry); 2040 1884 } 2041 1885 public static crosby.binary.Osmformat.HeaderBBox parseDelimitedFrom(java.io.InputStream input) 2042 1886 throws java.io.IOException { 2043 return PARSER.parseDelimitedFrom(input);1887 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 2044 1888 } 2045 1889 public static crosby.binary.Osmformat.HeaderBBox parseDelimitedFrom( … … 2047 1891 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2048 1892 throws java.io.IOException { 2049 return PARSER.parseDelimitedFrom(input, extensionRegistry);1893 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 2050 1894 } 2051 1895 public static crosby.binary.Osmformat.HeaderBBox parseFrom( 2052 1896 com.google.protobuf.CodedInputStream input) 2053 1897 throws java.io.IOException { 2054 return PARSER.parseFrom(input); 1898 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1899 DEFAULT_INSTANCE, input); 2055 1900 } 2056 1901 public static crosby.binary.Osmformat.HeaderBBox parseFrom( … … 2058 1903 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2059 1904 throws java.io.IOException { 2060 return PARSER.parseFrom(input, extensionRegistry); 2061 } 2062 2063 public static Builder newBuilder() { return Builder.create(); } 2064 @Override 2065 public Builder newBuilderForType() { return newBuilder(); } 1905 return com.google.protobuf.GeneratedMessageLite.parseFrom( 1906 DEFAULT_INSTANCE, input, extensionRegistry); 1907 } 1908 1909 public static Builder newBuilder() { 1910 return DEFAULT_INSTANCE.toBuilder(); 1911 } 2066 1912 public static Builder newBuilder(crosby.binary.Osmformat.HeaderBBox prototype) { 2067 return newBuilder().mergeFrom(prototype); 2068 } 2069 @Override 2070 public Builder toBuilder() { return newBuilder(this); } 1913 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1914 } 2071 1915 2072 1916 /** … … 2075 1919 public static final class Builder extends 2076 1920 com.google.protobuf.GeneratedMessageLite.Builder< 2077 crosby.binary.Osmformat.HeaderBBox, Builder> 2078 implements 1921 crosby.binary.Osmformat.HeaderBBox, Builder> implements 2079 1922 // @@protoc_insertion_point(builder_implements:OSMPBF.HeaderBBox) 2080 1923 crosby.binary.Osmformat.HeaderBBoxOrBuilder { 2081 1924 // Construct using crosby.binary.Osmformat.HeaderBBox.newBuilder() 2082 1925 private Builder() { 2083 maybeForceBuilderInitialization(); 2084 } 2085 2086 private void maybeForceBuilderInitialization() { 2087 } 2088 private static Builder create() { 2089 return new Builder(); 2090 } 2091 2092 @Override 2093 public Builder clear() { 2094 super.clear(); 2095 left_ = 0L; 2096 bitField0_ = (bitField0_ & ~0x00000001); 2097 right_ = 0L; 2098 bitField0_ = (bitField0_ & ~0x00000002); 2099 top_ = 0L; 2100 bitField0_ = (bitField0_ & ~0x00000004); 2101 bottom_ = 0L; 2102 bitField0_ = (bitField0_ & ~0x00000008); 2103 return this; 2104 } 2105 2106 @Override 2107 public Builder clone() { 2108 return create().mergeFrom(buildPartial()); 2109 } 2110 2111 @Override 2112 public crosby.binary.Osmformat.HeaderBBox getDefaultInstanceForType() { 2113 return crosby.binary.Osmformat.HeaderBBox.getDefaultInstance(); 2114 } 2115 2116 @Override 2117 public crosby.binary.Osmformat.HeaderBBox build() { 2118 crosby.binary.Osmformat.HeaderBBox result = buildPartial(); 2119 if (!result.isInitialized()) { 2120 throw newUninitializedMessageException(result); 2121 } 2122 return result; 2123 } 2124 2125 @Override 2126 public crosby.binary.Osmformat.HeaderBBox buildPartial() { 2127 crosby.binary.Osmformat.HeaderBBox result = new crosby.binary.Osmformat.HeaderBBox(this); 2128 int from_bitField0_ = bitField0_; 2129 int to_bitField0_ = 0; 2130 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2131 to_bitField0_ |= 0x00000001; 2132 } 2133 result.left_ = left_; 2134 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 2135 to_bitField0_ |= 0x00000002; 2136 } 2137 result.right_ = right_; 2138 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 2139 to_bitField0_ |= 0x00000004; 2140 } 2141 result.top_ = top_; 2142 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 2143 to_bitField0_ |= 0x00000008; 2144 } 2145 result.bottom_ = bottom_; 2146 result.bitField0_ = to_bitField0_; 2147 return result; 2148 } 2149 2150 @Override 2151 public Builder mergeFrom(crosby.binary.Osmformat.HeaderBBox other) { 2152 if (other == crosby.binary.Osmformat.HeaderBBox.getDefaultInstance()) return this; 2153 if (other.hasLeft()) { 2154 setLeft(other.getLeft()); 2155 } 2156 if (other.hasRight()) { 2157 setRight(other.getRight()); 2158 } 2159 if (other.hasTop()) { 2160 setTop(other.getTop()); 2161 } 2162 if (other.hasBottom()) { 2163 setBottom(other.getBottom()); 2164 } 2165 setUnknownFields( 2166 getUnknownFields().concat(other.unknownFields)); 2167 return this; 2168 } 2169 2170 @Override 2171 public final boolean isInitialized() { 2172 if (!hasLeft()) { 2173 2174 return false; 2175 } 2176 if (!hasRight()) { 2177 2178 return false; 2179 } 2180 if (!hasTop()) { 2181 2182 return false; 2183 } 2184 if (!hasBottom()) { 2185 2186 return false; 2187 } 2188 return true; 2189 } 2190 2191 @Override 2192 public Builder mergeFrom( 2193 com.google.protobuf.CodedInputStream input, 2194 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2195 throws java.io.IOException { 2196 crosby.binary.Osmformat.HeaderBBox parsedMessage = null; 2197 try { 2198 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2199 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2200 parsedMessage = (crosby.binary.Osmformat.HeaderBBox) e.getUnfinishedMessage(); 2201 throw e; 2202 } finally { 2203 if (parsedMessage != null) { 2204 mergeFrom(parsedMessage); 1926 super(DEFAULT_INSTANCE); 1927 } 1928 1929 1930 /** 1931 * <code>required sint64 left = 1;</code> 1932 */ 1933 public boolean hasLeft() { 1934 return instance.hasLeft(); 1935 } 1936 /** 1937 * <code>required sint64 left = 1;</code> 1938 */ 1939 public long getLeft() { 1940 return instance.getLeft(); 1941 } 1942 /** 1943 * <code>required sint64 left = 1;</code> 1944 */ 1945 public Builder setLeft(long value) { 1946 copyOnWrite(); 1947 instance.setLeft(value); 1948 return this; 1949 } 1950 /** 1951 * <code>required sint64 left = 1;</code> 1952 */ 1953 public Builder clearLeft() { 1954 copyOnWrite(); 1955 instance.clearLeft(); 1956 return this; 1957 } 1958 1959 /** 1960 * <code>required sint64 right = 2;</code> 1961 */ 1962 public boolean hasRight() { 1963 return instance.hasRight(); 1964 } 1965 /** 1966 * <code>required sint64 right = 2;</code> 1967 */ 1968 public long getRight() { 1969 return instance.getRight(); 1970 } 1971 /** 1972 * <code>required sint64 right = 2;</code> 1973 */ 1974 public Builder setRight(long value) { 1975 copyOnWrite(); 1976 instance.setRight(value); 1977 return this; 1978 } 1979 /** 1980 * <code>required sint64 right = 2;</code> 1981 */ 1982 public Builder clearRight() { 1983 copyOnWrite(); 1984 instance.clearRight(); 1985 return this; 1986 } 1987 1988 /** 1989 * <code>required sint64 top = 3;</code> 1990 */ 1991 public boolean hasTop() { 1992 return instance.hasTop(); 1993 } 1994 /** 1995 * <code>required sint64 top = 3;</code> 1996 */ 1997 public long getTop() { 1998 return instance.getTop(); 1999 } 2000 /** 2001 * <code>required sint64 top = 3;</code> 2002 */ 2003 public Builder setTop(long value) { 2004 copyOnWrite(); 2005 instance.setTop(value); 2006 return this; 2007 } 2008 /** 2009 * <code>required sint64 top = 3;</code> 2010 */ 2011 public Builder clearTop() { 2012 copyOnWrite(); 2013 instance.clearTop(); 2014 return this; 2015 } 2016 2017 /** 2018 * <code>required sint64 bottom = 4;</code> 2019 */ 2020 public boolean hasBottom() { 2021 return instance.hasBottom(); 2022 } 2023 /** 2024 * <code>required sint64 bottom = 4;</code> 2025 */ 2026 public long getBottom() { 2027 return instance.getBottom(); 2028 } 2029 /** 2030 * <code>required sint64 bottom = 4;</code> 2031 */ 2032 public Builder setBottom(long value) { 2033 copyOnWrite(); 2034 instance.setBottom(value); 2035 return this; 2036 } 2037 /** 2038 * <code>required sint64 bottom = 4;</code> 2039 */ 2040 public Builder clearBottom() { 2041 copyOnWrite(); 2042 instance.clearBottom(); 2043 return this; 2044 } 2045 2046 // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBBox) 2047 } 2048 private byte memoizedIsInitialized = -1; 2049 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 2050 protected final java.lang.Object dynamicMethod( 2051 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 2052 java.lang.Object arg0, java.lang.Object arg1) { 2053 switch (method) { 2054 case NEW_MUTABLE_INSTANCE: { 2055 return new crosby.binary.Osmformat.HeaderBBox(); 2056 } 2057 case IS_INITIALIZED: { 2058 byte isInitialized = memoizedIsInitialized; 2059 if (isInitialized == 1) return DEFAULT_INSTANCE; 2060 if (isInitialized == 0) return null; 2061 2062 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 2063 if (!hasLeft()) { 2064 if (shouldMemoize) { 2065 memoizedIsInitialized = 0; 2066 } 2067 return null; 2205 2068 } 2206 } 2207 return this; 2208 } 2209 private int bitField0_; 2210 2211 private long left_ ; 2212 /** 2213 * <code>required sint64 left = 1;</code> 2214 */ 2215 @Override 2216 public boolean hasLeft() { 2217 return ((bitField0_ & 0x00000001) == 0x00000001); 2218 } 2219 /** 2220 * <code>required sint64 left = 1;</code> 2221 */ 2222 @Override 2223 public long getLeft() { 2224 return left_; 2225 } 2226 /** 2227 * <code>required sint64 left = 1;</code> 2228 */ 2229 public Builder setLeft(long value) { 2230 bitField0_ |= 0x00000001; 2231 left_ = value; 2232 2233 return this; 2234 } 2235 /** 2236 * <code>required sint64 left = 1;</code> 2237 */ 2238 public Builder clearLeft() { 2239 bitField0_ = (bitField0_ & ~0x00000001); 2240 left_ = 0L; 2241 2242 return this; 2243 } 2244 2245 private long right_ ; 2246 /** 2247 * <code>required sint64 right = 2;</code> 2248 */ 2249 @Override 2250 public boolean hasRight() { 2251 return ((bitField0_ & 0x00000002) == 0x00000002); 2252 } 2253 /** 2254 * <code>required sint64 right = 2;</code> 2255 */ 2256 @Override 2257 public long getRight() { 2258 return right_; 2259 } 2260 /** 2261 * <code>required sint64 right = 2;</code> 2262 */ 2263 public Builder setRight(long value) { 2264 bitField0_ |= 0x00000002; 2265 right_ = value; 2266 2267 return this; 2268 } 2269 /** 2270 * <code>required sint64 right = 2;</code> 2271 */ 2272 public Builder clearRight() { 2273 bitField0_ = (bitField0_ & ~0x00000002); 2274 right_ = 0L; 2275 2276 return this; 2277 } 2278 2279 private long top_ ; 2280 /** 2281 * <code>required sint64 top = 3;</code> 2282 */ 2283 @Override 2284 public boolean hasTop() { 2285 return ((bitField0_ & 0x00000004) == 0x00000004); 2286 } 2287 /** 2288 * <code>required sint64 top = 3;</code> 2289 */ 2290 @Override 2291 public long getTop() { 2292 return top_; 2293 } 2294 /** 2295 * <code>required sint64 top = 3;</code> 2296 */ 2297 public Builder setTop(long value) { 2298 bitField0_ |= 0x00000004; 2299 top_ = value; 2300 2301 return this; 2302 } 2303 /** 2304 * <code>required sint64 top = 3;</code> 2305 */ 2306 public Builder clearTop() { 2307 bitField0_ = (bitField0_ & ~0x00000004); 2308 top_ = 0L; 2309 2310 return this; 2311 } 2312 2313 private long bottom_ ; 2314 /** 2315 * <code>required sint64 bottom = 4;</code> 2316 */ 2317 @Override 2318 public boolean hasBottom() { 2319 return ((bitField0_ & 0x00000008) == 0x00000008); 2320 } 2321 /** 2322 * <code>required sint64 bottom = 4;</code> 2323 */ 2324 @Override 2325 public long getBottom() { 2326 return bottom_; 2327 } 2328 /** 2329 * <code>required sint64 bottom = 4;</code> 2330 */ 2331 public Builder setBottom(long value) { 2332 bitField0_ |= 0x00000008; 2333 bottom_ = value; 2334 2335 return this; 2336 } 2337 /** 2338 * <code>required sint64 bottom = 4;</code> 2339 */ 2340 public Builder clearBottom() { 2341 bitField0_ = (bitField0_ & ~0x00000008); 2342 bottom_ = 0L; 2343 2344 return this; 2345 } 2346 2347 // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBBox) 2348 } 2349 2069 if (!hasRight()) { 2070 if (shouldMemoize) { 2071 memoizedIsInitialized = 0; 2072 } 2073 return null; 2074 } 2075 if (!hasTop()) { 2076 if (shouldMemoize) { 2077 memoizedIsInitialized = 0; 2078 } 2079 return null; 2080 } 2081 if (!hasBottom()) { 2082 if (shouldMemoize) { 2083 memoizedIsInitialized = 0; 2084 } 2085 return null; 2086 } 2087 if (shouldMemoize) memoizedIsInitialized = 1; 2088 return DEFAULT_INSTANCE; 2089 2090 } 2091 case MAKE_IMMUTABLE: { 2092 return null; 2093 } 2094 case NEW_BUILDER: { 2095 return new Builder(); 2096 } 2097 case VISIT: { 2098 Visitor visitor = (Visitor) arg0; 2099 crosby.binary.Osmformat.HeaderBBox other = (crosby.binary.Osmformat.HeaderBBox) arg1; 2100 left_ = visitor.visitLong( 2101 hasLeft(), left_, 2102 other.hasLeft(), other.left_); 2103 right_ = visitor.visitLong( 2104 hasRight(), right_, 2105 other.hasRight(), other.right_); 2106 top_ = visitor.visitLong( 2107 hasTop(), top_, 2108 other.hasTop(), other.top_); 2109 bottom_ = visitor.visitLong( 2110 hasBottom(), bottom_, 2111 other.hasBottom(), other.bottom_); 2112 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 2113 .INSTANCE) { 2114 bitField0_ |= other.bitField0_; 2115 } 2116 return this; 2117 } 2118 case MERGE_FROM_STREAM: { 2119 com.google.protobuf.CodedInputStream input = 2120 (com.google.protobuf.CodedInputStream) arg0; 2121 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 2122 (com.google.protobuf.ExtensionRegistryLite) arg1; 2123 try { 2124 boolean done = false; 2125 while (!done) { 2126 int tag = input.readTag(); 2127 switch (tag) { 2128 case 0: 2129 done = true; 2130 break; 2131 default: { 2132 if (!parseUnknownField(tag, input)) { 2133 done = true; 2134 } 2135 break; 2136 } 2137 case 8: { 2138 bitField0_ |= 0x00000001; 2139 left_ = input.readSInt64(); 2140 break; 2141 } 2142 case 16: { 2143 bitField0_ |= 0x00000002; 2144 right_ = input.readSInt64(); 2145 break; 2146 } 2147 case 24: { 2148 bitField0_ |= 0x00000004; 2149 top_ = input.readSInt64(); 2150 break; 2151 } 2152 case 32: { 2153 bitField0_ |= 0x00000008; 2154 bottom_ = input.readSInt64(); 2155 break; 2156 } 2157 } 2158 } 2159 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2160 throw new RuntimeException(e.setUnfinishedMessage(this)); 2161 } catch (java.io.IOException e) { 2162 throw new RuntimeException( 2163 new com.google.protobuf.InvalidProtocolBufferException( 2164 e.getMessage()).setUnfinishedMessage(this)); 2165 } finally { 2166 } 2167 } 2168 // fall through 2169 case GET_DEFAULT_INSTANCE: { 2170 return DEFAULT_INSTANCE; 2171 } 2172 case GET_PARSER: { 2173 if (PARSER == null) { synchronized (crosby.binary.Osmformat.HeaderBBox.class) { 2174 if (PARSER == null) { 2175 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 2176 } 2177 } 2178 } 2179 return PARSER; 2180 } 2181 } 2182 throw new UnsupportedOperationException(); 2183 } 2184 2185 2186 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBBox) 2187 private static final crosby.binary.Osmformat.HeaderBBox DEFAULT_INSTANCE; 2350 2188 static { 2351 defaultInstance = new HeaderBBox(true); 2352 defaultInstance.initFields(); 2353 } 2354 2355 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBBox) 2189 DEFAULT_INSTANCE = new HeaderBBox(); 2190 DEFAULT_INSTANCE.makeImmutable(); 2191 } 2192 2193 public static crosby.binary.Osmformat.HeaderBBox getDefaultInstance() { 2194 return DEFAULT_INSTANCE; 2195 } 2196 2197 private static volatile com.google.protobuf.Parser<HeaderBBox> PARSER; 2198 2199 public static com.google.protobuf.Parser<HeaderBBox> parser() { 2200 return DEFAULT_INSTANCE.getParserForType(); 2201 } 2356 2202 } 2357 2203 … … 2372 2218 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2373 2219 */ 2374 java.util.List<crosby.binary.Osmformat.PrimitiveGroup> 2220 java.util.List<crosby.binary.Osmformat.PrimitiveGroup> 2375 2221 getPrimitivegroupList(); 2376 2222 /** … … 2384 2230 2385 2231 /** 2232 * <pre> 2233 * Granularity, units of nanodegrees, used to store coordinates in this block 2234 * </pre> 2235 * 2386 2236 * <code>optional int32 granularity = 17 [default = 100];</code> 2387 * 2237 */ 2238 boolean hasGranularity(); 2239 /** 2388 2240 * <pre> 2389 2241 * Granularity, units of nanodegrees, used to store coordinates in this block 2390 2242 * </pre> 2391 */ 2392 boolean hasGranularity(); 2393 /** 2243 * 2394 2244 * <code>optional int32 granularity = 17 [default = 100];</code> 2395 *2396 * <pre>2397 * Granularity, units of nanodegrees, used to store coordinates in this block2398 * </pre>2399 2245 */ 2400 2246 int getGranularity(); 2401 2247 2402 2248 /** 2249 * <pre> 2250 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2251 * </pre> 2252 * 2403 2253 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2404 * 2254 */ 2255 boolean hasLatOffset(); 2256 /** 2405 2257 * <pre> 2406 2258 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2407 2259 * </pre> 2408 */ 2409 boolean hasLatOffset(); 2410 /** 2260 * 2411 2261 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2412 *2413 * <pre>2414 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.2415 * </pre>2416 2262 */ 2417 2263 long getLatOffset(); … … 2427 2273 2428 2274 /** 2275 * <pre> 2276 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2277 * </pre> 2278 * 2429 2279 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2430 * 2280 */ 2281 boolean hasDateGranularity(); 2282 /** 2431 2283 * <pre> 2432 2284 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2433 2285 * </pre> 2434 */ 2435 boolean hasDateGranularity(); 2436 /** 2286 * 2437 2287 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2438 *2439 * <pre>2440 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.2441 * </pre>2442 2288 */ 2443 2289 int getDateGranularity(); … … 2446 2292 * Protobuf type {@code OSMPBF.PrimitiveBlock} 2447 2293 */ 2448 public static final class PrimitiveBlock extends 2449 com.google.protobuf.GeneratedMessageLite implements 2294 public static final class PrimitiveBlock extends 2295 com.google.protobuf.GeneratedMessageLite< 2296 PrimitiveBlock, PrimitiveBlock.Builder> implements 2450 2297 // @@protoc_insertion_point(message_implements:OSMPBF.PrimitiveBlock) 2451 2298 PrimitiveBlockOrBuilder { 2452 // Use PrimitiveBlock.newBuilder() to construct. 2453 private PrimitiveBlock(com.google.protobuf.GeneratedMessageLite.Builder builder) { 2454 super(builder); 2455 this.unknownFields = builder.getUnknownFields(); 2456 } 2457 private PrimitiveBlock(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 2458 2459 private static final PrimitiveBlock defaultInstance; 2460 public static PrimitiveBlock getDefaultInstance() { 2461 return defaultInstance; 2462 } 2463 2464 @Override 2465 public PrimitiveBlock getDefaultInstanceForType() { 2466 return defaultInstance; 2467 } 2468 2469 private final com.google.protobuf.ByteString unknownFields; 2470 private PrimitiveBlock( 2471 com.google.protobuf.CodedInputStream input, 2472 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2473 throws com.google.protobuf.InvalidProtocolBufferException { 2474 initFields(); 2475 int mutable_bitField0_ = 0; 2476 com.google.protobuf.ByteString.Output unknownFieldsOutput = 2477 com.google.protobuf.ByteString.newOutput(); 2478 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 2479 com.google.protobuf.CodedOutputStream.newInstance( 2480 unknownFieldsOutput); 2481 try { 2482 boolean done = false; 2483 while (!done) { 2484 int tag = input.readTag(); 2485 switch (tag) { 2486 case 0: 2487 done = true; 2488 break; 2489 default: { 2490 if (!parseUnknownField(input, unknownFieldsCodedOutput, 2491 extensionRegistry, tag)) { 2492 done = true; 2493 } 2494 break; 2495 } 2496 case 10: { 2497 crosby.binary.Osmformat.StringTable.Builder subBuilder = null; 2498 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2499 subBuilder = stringtable_.toBuilder(); 2500 } 2501 stringtable_ = input.readMessage(crosby.binary.Osmformat.StringTable.PARSER, extensionRegistry); 2502 if (subBuilder != null) { 2503 subBuilder.mergeFrom(stringtable_); 2504 stringtable_ = subBuilder.buildPartial(); 2505 } 2506 bitField0_ |= 0x00000001; 2507 break; 2508 } 2509 case 18: { 2510 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 2511 primitivegroup_ = new java.util.ArrayList<>(); 2512 mutable_bitField0_ |= 0x00000002; 2513 } 2514 primitivegroup_.add(input.readMessage(crosby.binary.Osmformat.PrimitiveGroup.PARSER, extensionRegistry)); 2515 break; 2516 } 2517 case 136: { 2518 bitField0_ |= 0x00000002; 2519 granularity_ = input.readInt32(); 2520 break; 2521 } 2522 case 144: { 2523 bitField0_ |= 0x00000010; 2524 dateGranularity_ = input.readInt32(); 2525 break; 2526 } 2527 case 152: { 2528 bitField0_ |= 0x00000004; 2529 latOffset_ = input.readInt64(); 2530 break; 2531 } 2532 case 160: { 2533 bitField0_ |= 0x00000008; 2534 lonOffset_ = input.readInt64(); 2535 break; 2536 } 2537 } 2538 } 2539 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2540 throw e.setUnfinishedMessage(this); 2541 } catch (java.io.IOException e) { 2542 throw new com.google.protobuf.InvalidProtocolBufferException( 2543 e.getMessage()).setUnfinishedMessage(this); 2544 } finally { 2545 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 2546 primitivegroup_ = java.util.Collections.unmodifiableList(primitivegroup_); 2547 } 2548 try { 2549 unknownFieldsCodedOutput.flush(); 2550 } catch (java.io.IOException e) { 2551 // Should not happen 2552 } finally { 2553 unknownFields = unknownFieldsOutput.toByteString(); 2554 } 2555 makeExtensionsImmutable(); 2556 } 2557 } 2558 public static com.google.protobuf.Parser<PrimitiveBlock> PARSER = 2559 new com.google.protobuf.AbstractParser<PrimitiveBlock>() { 2560 @Override 2561 public PrimitiveBlock parsePartialFrom( 2562 com.google.protobuf.CodedInputStream input, 2563 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2564 throws com.google.protobuf.InvalidProtocolBufferException { 2565 return new PrimitiveBlock(input, extensionRegistry); 2566 } 2567 }; 2568 2569 @java.lang.Override 2570 public com.google.protobuf.Parser<PrimitiveBlock> getParserForType() { 2571 return PARSER; 2572 } 2573 2299 private PrimitiveBlock() { 2300 primitivegroup_ = emptyProtobufList(); 2301 granularity_ = 100; 2302 dateGranularity_ = 1000; 2303 } 2574 2304 private int bitField0_; 2575 2305 public static final int STRINGTABLE_FIELD_NUMBER = 1; … … 2578 2308 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2579 2309 */ 2580 @Override 2581 public boolean hasStringtable() { 2310 public boolean hasStringtable() { 2582 2311 return ((bitField0_ & 0x00000001) == 0x00000001); 2583 2312 } … … 2585 2314 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2586 2315 */ 2587 @Override 2588 public crosby.binary.Osmformat.StringTable getStringtable() { 2589 return stringtable_; 2316 public crosby.binary.Osmformat.StringTable getStringtable() { 2317 return stringtable_ == null ? crosby.binary.Osmformat.StringTable.getDefaultInstance() : stringtable_; 2318 } 2319 /** 2320 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2321 */ 2322 private void setStringtable(crosby.binary.Osmformat.StringTable value) { 2323 if (value == null) { 2324 throw new NullPointerException(); 2325 } 2326 stringtable_ = value; 2327 bitField0_ |= 0x00000001; 2328 } 2329 /** 2330 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2331 */ 2332 private void setStringtable( 2333 crosby.binary.Osmformat.StringTable.Builder builderForValue) { 2334 stringtable_ = builderForValue.build(); 2335 bitField0_ |= 0x00000001; 2336 } 2337 /** 2338 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2339 */ 2340 private void mergeStringtable(crosby.binary.Osmformat.StringTable value) { 2341 if (stringtable_ != null && 2342 stringtable_ != crosby.binary.Osmformat.StringTable.getDefaultInstance()) { 2343 stringtable_ = 2344 crosby.binary.Osmformat.StringTable.newBuilder(stringtable_).mergeFrom(value).buildPartial(); 2345 } else { 2346 stringtable_ = value; 2347 } 2348 bitField0_ |= 0x00000001; 2349 } 2350 /** 2351 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 2352 */ 2353 private void clearStringtable() { stringtable_ = null; 2354 bitField0_ = (bitField0_ & ~0x00000001); 2590 2355 } 2591 2356 2592 2357 public static final int PRIMITIVEGROUP_FIELD_NUMBER = 2; 2593 private java.util.List<crosby.binary.Osmformat.PrimitiveGroup> primitivegroup_;2358 private com.google.protobuf.Internal.ProtobufList<crosby.binary.Osmformat.PrimitiveGroup> primitivegroup_; 2594 2359 /** 2595 2360 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2596 2361 */ 2597 @Override 2598 public java.util.List<crosby.binary.Osmformat.PrimitiveGroup> getPrimitivegroupList() { 2362 public java.util.List<crosby.binary.Osmformat.PrimitiveGroup> getPrimitivegroupList() { 2599 2363 return primitivegroup_; 2600 2364 } … … 2602 2366 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2603 2367 */ 2604 public java.util.List<? extends crosby.binary.Osmformat.PrimitiveGroupOrBuilder> 2368 public java.util.List<? extends crosby.binary.Osmformat.PrimitiveGroupOrBuilder> 2605 2369 getPrimitivegroupOrBuilderList() { 2606 2370 return primitivegroup_; … … 2609 2373 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2610 2374 */ 2611 @Override 2612 public int getPrimitivegroupCount() { 2375 public int getPrimitivegroupCount() { 2613 2376 return primitivegroup_.size(); 2614 2377 } … … 2616 2379 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2617 2380 */ 2618 @Override 2619 public crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { 2381 public crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { 2620 2382 return primitivegroup_.get(index); 2621 2383 } … … 2627 2389 return primitivegroup_.get(index); 2628 2390 } 2391 private void ensurePrimitivegroupIsMutable() { 2392 if (!primitivegroup_.isModifiable()) { 2393 primitivegroup_ = 2394 com.google.protobuf.GeneratedMessageLite.mutableCopy(primitivegroup_); 2395 } 2396 } 2397 2398 /** 2399 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2400 */ 2401 private void setPrimitivegroup( 2402 int index, crosby.binary.Osmformat.PrimitiveGroup value) { 2403 if (value == null) { 2404 throw new NullPointerException(); 2405 } 2406 ensurePrimitivegroupIsMutable(); 2407 primitivegroup_.set(index, value); 2408 } 2409 /** 2410 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2411 */ 2412 private void setPrimitivegroup( 2413 int index, crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 2414 ensurePrimitivegroupIsMutable(); 2415 primitivegroup_.set(index, builderForValue.build()); 2416 } 2417 /** 2418 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2419 */ 2420 private void addPrimitivegroup(crosby.binary.Osmformat.PrimitiveGroup value) { 2421 if (value == null) { 2422 throw new NullPointerException(); 2423 } 2424 ensurePrimitivegroupIsMutable(); 2425 primitivegroup_.add(value); 2426 } 2427 /** 2428 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2429 */ 2430 private void addPrimitivegroup( 2431 int index, crosby.binary.Osmformat.PrimitiveGroup value) { 2432 if (value == null) { 2433 throw new NullPointerException(); 2434 } 2435 ensurePrimitivegroupIsMutable(); 2436 primitivegroup_.add(index, value); 2437 } 2438 /** 2439 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2440 */ 2441 private void addPrimitivegroup( 2442 crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 2443 ensurePrimitivegroupIsMutable(); 2444 primitivegroup_.add(builderForValue.build()); 2445 } 2446 /** 2447 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2448 */ 2449 private void addPrimitivegroup( 2450 int index, crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 2451 ensurePrimitivegroupIsMutable(); 2452 primitivegroup_.add(index, builderForValue.build()); 2453 } 2454 /** 2455 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2456 */ 2457 private void addAllPrimitivegroup( 2458 java.lang.Iterable<? extends crosby.binary.Osmformat.PrimitiveGroup> values) { 2459 ensurePrimitivegroupIsMutable(); 2460 com.google.protobuf.AbstractMessageLite.addAll( 2461 values, primitivegroup_); 2462 } 2463 /** 2464 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2465 */ 2466 private void clearPrimitivegroup() { 2467 primitivegroup_ = emptyProtobufList(); 2468 } 2469 /** 2470 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 2471 */ 2472 private void removePrimitivegroup(int index) { 2473 ensurePrimitivegroupIsMutable(); 2474 primitivegroup_.remove(index); 2475 } 2629 2476 2630 2477 public static final int GRANULARITY_FIELD_NUMBER = 17; 2631 2478 private int granularity_; 2632 2479 /** 2480 * <pre> 2481 * Granularity, units of nanodegrees, used to store coordinates in this block 2482 * </pre> 2483 * 2633 2484 * <code>optional int32 granularity = 17 [default = 100];</code> 2634 * 2485 */ 2486 public boolean hasGranularity() { 2487 return ((bitField0_ & 0x00000002) == 0x00000002); 2488 } 2489 /** 2635 2490 * <pre> 2636 2491 * Granularity, units of nanodegrees, used to store coordinates in this block 2637 2492 * </pre> 2638 */ 2639 @Override 2640 public boolean hasGranularity() { 2641 return ((bitField0_ & 0x00000002) == 0x00000002); 2642 } 2643 /** 2493 * 2644 2494 * <code>optional int32 granularity = 17 [default = 100];</code> 2645 * 2495 */ 2496 public int getGranularity() { 2497 return granularity_; 2498 } 2499 /** 2646 2500 * <pre> 2647 2501 * Granularity, units of nanodegrees, used to store coordinates in this block 2648 2502 * </pre> 2649 */ 2650 @Override 2651 public int getGranularity() { 2652 return granularity_; 2503 * 2504 * <code>optional int32 granularity = 17 [default = 100];</code> 2505 */ 2506 private void setGranularity(int value) { 2507 bitField0_ |= 0x00000002; 2508 granularity_ = value; 2509 } 2510 /** 2511 * <pre> 2512 * Granularity, units of nanodegrees, used to store coordinates in this block 2513 * </pre> 2514 * 2515 * <code>optional int32 granularity = 17 [default = 100];</code> 2516 */ 2517 private void clearGranularity() { 2518 bitField0_ = (bitField0_ & ~0x00000002); 2519 granularity_ = 100; 2653 2520 } 2654 2521 … … 2656 2523 private long latOffset_; 2657 2524 /** 2525 * <pre> 2526 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2527 * </pre> 2528 * 2658 2529 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2659 * 2530 */ 2531 public boolean hasLatOffset() { 2532 return ((bitField0_ & 0x00000004) == 0x00000004); 2533 } 2534 /** 2660 2535 * <pre> 2661 2536 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2662 2537 * </pre> 2663 */ 2664 @Override 2665 public boolean hasLatOffset() { 2666 return ((bitField0_ & 0x00000004) == 0x00000004); 2667 } 2668 /** 2538 * 2669 2539 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2670 * 2540 */ 2541 public long getLatOffset() { 2542 return latOffset_; 2543 } 2544 /** 2671 2545 * <pre> 2672 2546 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2673 2547 * </pre> 2674 */ 2675 @Override 2676 public long getLatOffset() { 2677 return latOffset_; 2548 * 2549 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2550 */ 2551 private void setLatOffset(long value) { 2552 bitField0_ |= 0x00000004; 2553 latOffset_ = value; 2554 } 2555 /** 2556 * <pre> 2557 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2558 * </pre> 2559 * 2560 * <code>optional int64 lat_offset = 19 [default = 0];</code> 2561 */ 2562 private void clearLatOffset() { 2563 bitField0_ = (bitField0_ & ~0x00000004); 2564 latOffset_ = 0L; 2678 2565 } 2679 2566 … … 2683 2570 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2684 2571 */ 2685 @Override 2686 public boolean hasLonOffset() { 2572 public boolean hasLonOffset() { 2687 2573 return ((bitField0_ & 0x00000008) == 0x00000008); 2688 2574 } … … 2690 2576 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2691 2577 */ 2692 @Override 2693 public long getLonOffset() { 2578 public long getLonOffset() { 2694 2579 return lonOffset_; 2580 } 2581 /** 2582 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2583 */ 2584 private void setLonOffset(long value) { 2585 bitField0_ |= 0x00000008; 2586 lonOffset_ = value; 2587 } 2588 /** 2589 * <code>optional int64 lon_offset = 20 [default = 0];</code> 2590 */ 2591 private void clearLonOffset() { 2592 bitField0_ = (bitField0_ & ~0x00000008); 2593 lonOffset_ = 0L; 2695 2594 } 2696 2595 … … 2698 2597 private int dateGranularity_; 2699 2598 /** 2599 * <pre> 2600 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2601 * </pre> 2602 * 2700 2603 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2701 * 2604 */ 2605 public boolean hasDateGranularity() { 2606 return ((bitField0_ & 0x00000010) == 0x00000010); 2607 } 2608 /** 2702 2609 * <pre> 2703 2610 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2704 2611 * </pre> 2705 */ 2706 @Override 2707 public boolean hasDateGranularity() { 2708 return ((bitField0_ & 0x00000010) == 0x00000010); 2709 } 2710 /** 2612 * 2711 2613 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2712 * 2614 */ 2615 public int getDateGranularity() { 2616 return dateGranularity_; 2617 } 2618 /** 2713 2619 * <pre> 2714 2620 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2715 2621 * </pre> 2716 */ 2717 @Override 2718 public int getDateGranularity() { 2719 return dateGranularity_; 2720 } 2721 2722 private void initFields() { 2723 stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 2724 primitivegroup_ = java.util.Collections.emptyList(); 2725 granularity_ = 100; 2726 latOffset_ = 0L; 2727 lonOffset_ = 0L; 2622 * 2623 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2624 */ 2625 private void setDateGranularity(int value) { 2626 bitField0_ |= 0x00000010; 2627 dateGranularity_ = value; 2628 } 2629 /** 2630 * <pre> 2631 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 2632 * </pre> 2633 * 2634 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 2635 */ 2636 private void clearDateGranularity() { 2637 bitField0_ = (bitField0_ & ~0x00000010); 2728 2638 dateGranularity_ = 1000; 2729 2639 } 2730 private byte memoizedIsInitialized = -1; 2731 @Override 2732 public final boolean isInitialized() { 2733 byte isInitialized = memoizedIsInitialized; 2734 if (isInitialized == 1) return true; 2735 if (isInitialized == 0) return false; 2736 2737 if (!hasStringtable()) { 2738 memoizedIsInitialized = 0; 2739 return false; 2740 } 2741 for (int i = 0; i < getPrimitivegroupCount(); i++) { 2742 if (!getPrimitivegroup(i).isInitialized()) { 2743 memoizedIsInitialized = 0; 2744 return false; 2745 } 2746 } 2747 memoizedIsInitialized = 1; 2748 return true; 2749 } 2750 2751 @Override 2752 public void writeTo(com.google.protobuf.CodedOutputStream output) 2640 2641 public void writeTo(com.google.protobuf.CodedOutputStream output) 2753 2642 throws java.io.IOException { 2754 getSerializedSize();2755 2643 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2756 output.writeMessage(1, stringtable_);2644 output.writeMessage(1, getStringtable()); 2757 2645 } 2758 2646 for (int i = 0; i < primitivegroup_.size(); i++) { … … 2771 2659 output.writeInt64(20, lonOffset_); 2772 2660 } 2773 output.writeRawBytes(unknownFields); 2774 } 2775 2776 private int memoizedSerializedSize = -1; 2777 @Override 2778 public int getSerializedSize() { 2661 unknownFields.writeTo(output); 2662 } 2663 2664 public int getSerializedSize() { 2779 2665 int size = memoizedSerializedSize; 2780 2666 if (size != -1) return size; … … 2783 2669 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2784 2670 size += com.google.protobuf.CodedOutputStream 2785 .computeMessageSize(1, stringtable_);2671 .computeMessageSize(1, getStringtable()); 2786 2672 } 2787 2673 for (int i = 0; i < primitivegroup_.size(); i++) { … … 2805 2691 .computeInt64Size(20, lonOffset_); 2806 2692 } 2807 size += unknownFields. size();2693 size += unknownFields.getSerializedSize(); 2808 2694 memoizedSerializedSize = size; 2809 2695 return size; 2810 2696 } 2811 2697 2812 private static final long serialVersionUID = 0L; 2813 @java.lang.Override 2814 protected java.lang.Object writeReplace() 2815 throws java.io.ObjectStreamException { 2816 return super.writeReplace(); 2817 } 2818 2698 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( 2699 java.nio.ByteBuffer data) 2700 throws com.google.protobuf.InvalidProtocolBufferException { 2701 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2702 DEFAULT_INSTANCE, data); 2703 } 2704 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( 2705 java.nio.ByteBuffer data, 2706 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2707 throws com.google.protobuf.InvalidProtocolBufferException { 2708 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2709 DEFAULT_INSTANCE, data, extensionRegistry); 2710 } 2819 2711 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( 2820 2712 com.google.protobuf.ByteString data) 2821 2713 throws com.google.protobuf.InvalidProtocolBufferException { 2822 return PARSER.parseFrom(data); 2714 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2715 DEFAULT_INSTANCE, data); 2823 2716 } 2824 2717 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 2826 2719 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2827 2720 throws com.google.protobuf.InvalidProtocolBufferException { 2828 return PARSER.parseFrom(data, extensionRegistry); 2721 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2722 DEFAULT_INSTANCE, data, extensionRegistry); 2829 2723 } 2830 2724 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(byte[] data) 2831 2725 throws com.google.protobuf.InvalidProtocolBufferException { 2832 return PARSER.parseFrom(data); 2726 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2727 DEFAULT_INSTANCE, data); 2833 2728 } 2834 2729 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 2836 2731 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2837 2732 throws com.google.protobuf.InvalidProtocolBufferException { 2838 return PARSER.parseFrom(data, extensionRegistry); 2733 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2734 DEFAULT_INSTANCE, data, extensionRegistry); 2839 2735 } 2840 2736 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(java.io.InputStream input) 2841 2737 throws java.io.IOException { 2842 return PARSER.parseFrom(input); 2738 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2739 DEFAULT_INSTANCE, input); 2843 2740 } 2844 2741 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 2846 2743 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2847 2744 throws java.io.IOException { 2848 return PARSER.parseFrom(input, extensionRegistry); 2745 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2746 DEFAULT_INSTANCE, input, extensionRegistry); 2849 2747 } 2850 2748 public static crosby.binary.Osmformat.PrimitiveBlock parseDelimitedFrom(java.io.InputStream input) 2851 2749 throws java.io.IOException { 2852 return PARSER.parseDelimitedFrom(input);2750 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 2853 2751 } 2854 2752 public static crosby.binary.Osmformat.PrimitiveBlock parseDelimitedFrom( … … 2856 2754 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2857 2755 throws java.io.IOException { 2858 return PARSER.parseDelimitedFrom(input, extensionRegistry);2756 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 2859 2757 } 2860 2758 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( 2861 2759 com.google.protobuf.CodedInputStream input) 2862 2760 throws java.io.IOException { 2863 return PARSER.parseFrom(input); 2761 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2762 DEFAULT_INSTANCE, input); 2864 2763 } 2865 2764 public static crosby.binary.Osmformat.PrimitiveBlock parseFrom( … … 2867 2766 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2868 2767 throws java.io.IOException { 2869 return PARSER.parseFrom(input, extensionRegistry); 2870 } 2871 2872 public static Builder newBuilder() { return Builder.create(); } 2873 @Override 2874 public Builder newBuilderForType() { return newBuilder(); } 2768 return com.google.protobuf.GeneratedMessageLite.parseFrom( 2769 DEFAULT_INSTANCE, input, extensionRegistry); 2770 } 2771 2772 public static Builder newBuilder() { 2773 return DEFAULT_INSTANCE.toBuilder(); 2774 } 2875 2775 public static Builder newBuilder(crosby.binary.Osmformat.PrimitiveBlock prototype) { 2876 return newBuilder().mergeFrom(prototype); 2877 } 2878 @Override 2879 public Builder toBuilder() { return newBuilder(this); } 2776 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2777 } 2880 2778 2881 2779 /** … … 2884 2782 public static final class Builder extends 2885 2783 com.google.protobuf.GeneratedMessageLite.Builder< 2886 crosby.binary.Osmformat.PrimitiveBlock, Builder> 2887 implements 2784 crosby.binary.Osmformat.PrimitiveBlock, Builder> implements 2888 2785 // @@protoc_insertion_point(builder_implements:OSMPBF.PrimitiveBlock) 2889 2786 crosby.binary.Osmformat.PrimitiveBlockOrBuilder { 2890 2787 // Construct using crosby.binary.Osmformat.PrimitiveBlock.newBuilder() 2891 2788 private Builder() { 2892 maybeForceBuilderInitialization(); 2893 } 2894 2895 private void maybeForceBuilderInitialization() { 2896 } 2897 private static Builder create() { 2898 return new Builder(); 2899 } 2900 2901 @Override 2902 public Builder clear() { 2903 super.clear(); 2904 stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 2905 bitField0_ = (bitField0_ & ~0x00000001); 2906 primitivegroup_ = java.util.Collections.emptyList(); 2907 bitField0_ = (bitField0_ & ~0x00000002); 2908 granularity_ = 100; 2909 bitField0_ = (bitField0_ & ~0x00000004); 2910 latOffset_ = 0L; 2911 bitField0_ = (bitField0_ & ~0x00000008); 2912 lonOffset_ = 0L; 2913 bitField0_ = (bitField0_ & ~0x00000010); 2914 dateGranularity_ = 1000; 2915 bitField0_ = (bitField0_ & ~0x00000020); 2916 return this; 2917 } 2918 2919 @Override 2920 public Builder clone() { 2921 return create().mergeFrom(buildPartial()); 2922 } 2923 2924 @Override 2925 public crosby.binary.Osmformat.PrimitiveBlock getDefaultInstanceForType() { 2926 return crosby.binary.Osmformat.PrimitiveBlock.getDefaultInstance(); 2927 } 2928 2929 @Override 2930 public crosby.binary.Osmformat.PrimitiveBlock build() { 2931 crosby.binary.Osmformat.PrimitiveBlock result = buildPartial(); 2932 if (!result.isInitialized()) { 2933 throw newUninitializedMessageException(result); 2934 } 2935 return result; 2936 } 2937 2938 @Override 2939 public crosby.binary.Osmformat.PrimitiveBlock buildPartial() { 2940 crosby.binary.Osmformat.PrimitiveBlock result = new crosby.binary.Osmformat.PrimitiveBlock(this); 2941 int from_bitField0_ = bitField0_; 2942 int to_bitField0_ = 0; 2943 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2944 to_bitField0_ |= 0x00000001; 2945 } 2946 result.stringtable_ = stringtable_; 2947 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2948 primitivegroup_ = java.util.Collections.unmodifiableList(primitivegroup_); 2949 bitField0_ = (bitField0_ & ~0x00000002); 2950 } 2951 result.primitivegroup_ = primitivegroup_; 2952 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 2953 to_bitField0_ |= 0x00000002; 2954 } 2955 result.granularity_ = granularity_; 2956 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 2957 to_bitField0_ |= 0x00000004; 2958 } 2959 result.latOffset_ = latOffset_; 2960 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 2961 to_bitField0_ |= 0x00000008; 2962 } 2963 result.lonOffset_ = lonOffset_; 2964 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 2965 to_bitField0_ |= 0x00000010; 2966 } 2967 result.dateGranularity_ = dateGranularity_; 2968 result.bitField0_ = to_bitField0_; 2969 return result; 2970 } 2971 2972 @Override 2973 public Builder mergeFrom(crosby.binary.Osmformat.PrimitiveBlock other) { 2974 if (other == crosby.binary.Osmformat.PrimitiveBlock.getDefaultInstance()) return this; 2975 if (other.hasStringtable()) { 2976 mergeStringtable(other.getStringtable()); 2977 } 2978 if (!other.primitivegroup_.isEmpty()) { 2979 if (primitivegroup_.isEmpty()) { 2980 primitivegroup_ = other.primitivegroup_; 2981 bitField0_ = (bitField0_ & ~0x00000002); 2982 } else { 2983 ensurePrimitivegroupIsMutable(); 2984 primitivegroup_.addAll(other.primitivegroup_); 2985 } 2986 2987 } 2988 if (other.hasGranularity()) { 2989 setGranularity(other.getGranularity()); 2990 } 2991 if (other.hasLatOffset()) { 2992 setLatOffset(other.getLatOffset()); 2993 } 2994 if (other.hasLonOffset()) { 2995 setLonOffset(other.getLonOffset()); 2996 } 2997 if (other.hasDateGranularity()) { 2998 setDateGranularity(other.getDateGranularity()); 2999 } 3000 setUnknownFields( 3001 getUnknownFields().concat(other.unknownFields)); 3002 return this; 3003 } 3004 3005 @Override 3006 public final boolean isInitialized() { 3007 if (!hasStringtable()) { 3008 3009 return false; 3010 } 3011 for (int i = 0; i < getPrimitivegroupCount(); i++) { 3012 if (!getPrimitivegroup(i).isInitialized()) { 3013 3014 return false; 3015 } 3016 } 3017 return true; 3018 } 3019 3020 @Override 3021 public Builder mergeFrom( 3022 com.google.protobuf.CodedInputStream input, 3023 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3024 throws java.io.IOException { 3025 crosby.binary.Osmformat.PrimitiveBlock parsedMessage = null; 3026 try { 3027 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 3028 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3029 parsedMessage = (crosby.binary.Osmformat.PrimitiveBlock) e.getUnfinishedMessage(); 3030 throw e; 3031 } finally { 3032 if (parsedMessage != null) { 3033 mergeFrom(parsedMessage); 3034 } 3035 } 3036 return this; 3037 } 3038 private int bitField0_; 3039 3040 private crosby.binary.Osmformat.StringTable stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 2789 super(DEFAULT_INSTANCE); 2790 } 2791 2792 3041 2793 /** 3042 2794 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 3043 2795 */ 3044 @Override 3045 public boolean hasStringtable() { 3046 return ((bitField0_ & 0x00000001) == 0x00000001); 2796 public boolean hasStringtable() { 2797 return instance.hasStringtable(); 3047 2798 } 3048 2799 /** 3049 2800 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 3050 2801 */ 3051 @Override 3052 public crosby.binary.Osmformat.StringTable getStringtable() { 3053 return stringtable_; 2802 public crosby.binary.Osmformat.StringTable getStringtable() { 2803 return instance.getStringtable(); 3054 2804 } 3055 2805 /** … … 3057 2807 */ 3058 2808 public Builder setStringtable(crosby.binary.Osmformat.StringTable value) { 3059 if (value == null) { 3060 throw new NullPointerException(); 3061 } 3062 stringtable_ = value; 3063 3064 bitField0_ |= 0x00000001; 3065 return this; 3066 } 2809 copyOnWrite(); 2810 instance.setStringtable(value); 2811 return this; 2812 } 3067 2813 /** 3068 2814 * <code>required .OSMPBF.StringTable stringtable = 1;</code> … … 3070 2816 public Builder setStringtable( 3071 2817 crosby.binary.Osmformat.StringTable.Builder builderForValue) { 3072 stringtable_ = builderForValue.build(); 3073 3074 bitField0_ |= 0x00000001; 2818 copyOnWrite(); 2819 instance.setStringtable(builderForValue); 3075 2820 return this; 3076 2821 } … … 3079 2824 */ 3080 2825 public Builder mergeStringtable(crosby.binary.Osmformat.StringTable value) { 3081 if (((bitField0_ & 0x00000001) == 0x00000001) && 3082 stringtable_ != crosby.binary.Osmformat.StringTable.getDefaultInstance()) { 3083 stringtable_ = 3084 crosby.binary.Osmformat.StringTable.newBuilder(stringtable_).mergeFrom(value).buildPartial(); 3085 } else { 3086 stringtable_ = value; 3087 } 3088 3089 bitField0_ |= 0x00000001; 2826 copyOnWrite(); 2827 instance.mergeStringtable(value); 3090 2828 return this; 3091 2829 } … … 3093 2831 * <code>required .OSMPBF.StringTable stringtable = 1;</code> 3094 2832 */ 3095 public Builder clearStringtable() { 3096 stringtable_ = crosby.binary.Osmformat.StringTable.getDefaultInstance(); 3097 3098 bitField0_ = (bitField0_ & ~0x00000001); 3099 return this; 3100 } 3101 3102 private java.util.List<crosby.binary.Osmformat.PrimitiveGroup> primitivegroup_ = 3103 java.util.Collections.emptyList(); 3104 private void ensurePrimitivegroupIsMutable() { 3105 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 3106 primitivegroup_ = new java.util.ArrayList<>(primitivegroup_); 3107 bitField0_ |= 0x00000002; 3108 } 2833 public Builder clearStringtable() { copyOnWrite(); 2834 instance.clearStringtable(); 2835 return this; 3109 2836 } 3110 2837 … … 3112 2839 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3113 2840 */ 3114 @Override3115 public java.util.List<crosby.binary.Osmformat.PrimitiveGroup> getPrimitivegroupList() { 3116 return java.util.Collections.unmodifiableList(primitivegroup_);2841 public java.util.List<crosby.binary.Osmformat.PrimitiveGroup> getPrimitivegroupList() { 2842 return java.util.Collections.unmodifiableList( 2843 instance.getPrimitivegroupList()); 3117 2844 } 3118 2845 /** 3119 2846 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3120 2847 */ 3121 @Override 3122 public int getPrimitivegroupCount() { 3123 return primitivegroup_.size(); 3124 } 3125 /** 2848 public int getPrimitivegroupCount() { 2849 return instance.getPrimitivegroupCount(); 2850 }/** 3126 2851 * <code>repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;</code> 3127 2852 */ 3128 @Override 3129 public crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { 3130 return primitivegroup_.get(index); 2853 public crosby.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { 2854 return instance.getPrimitivegroup(index); 3131 2855 } 3132 2856 /** … … 3135 2859 public Builder setPrimitivegroup( 3136 2860 int index, crosby.binary.Osmformat.PrimitiveGroup value) { 3137 if (value == null) { 3138 throw new NullPointerException(); 3139 } 3140 ensurePrimitivegroupIsMutable(); 3141 primitivegroup_.set(index, value); 3142 2861 copyOnWrite(); 2862 instance.setPrimitivegroup(index, value); 3143 2863 return this; 3144 2864 } … … 3148 2868 public Builder setPrimitivegroup( 3149 2869 int index, crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 3150 ensurePrimitivegroupIsMutable(); 3151 primitivegroup_.set(index, builderForValue.build()); 3152 2870 copyOnWrite(); 2871 instance.setPrimitivegroup(index, builderForValue); 3153 2872 return this; 3154 2873 } … … 3157 2876 */ 3158 2877 public Builder addPrimitivegroup(crosby.binary.Osmformat.PrimitiveGroup value) { 3159 if (value == null) { 3160 throw new NullPointerException(); 3161 } 3162 ensurePrimitivegroupIsMutable(); 3163 primitivegroup_.add(value); 3164 2878 copyOnWrite(); 2879 instance.addPrimitivegroup(value); 3165 2880 return this; 3166 2881 } … … 3170 2885 public Builder addPrimitivegroup( 3171 2886 int index, crosby.binary.Osmformat.PrimitiveGroup value) { 3172 if (value == null) { 3173 throw new NullPointerException(); 3174 } 3175 ensurePrimitivegroupIsMutable(); 3176 primitivegroup_.add(index, value); 3177 2887 copyOnWrite(); 2888 instance.addPrimitivegroup(index, value); 3178 2889 return this; 3179 2890 } … … 3183 2894 public Builder addPrimitivegroup( 3184 2895 crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 3185 ensurePrimitivegroupIsMutable(); 3186 primitivegroup_.add(builderForValue.build()); 3187 2896 copyOnWrite(); 2897 instance.addPrimitivegroup(builderForValue); 3188 2898 return this; 3189 2899 } … … 3193 2903 public Builder addPrimitivegroup( 3194 2904 int index, crosby.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { 3195 ensurePrimitivegroupIsMutable(); 3196 primitivegroup_.add(index, builderForValue.build()); 3197 2905 copyOnWrite(); 2906 instance.addPrimitivegroup(index, builderForValue); 3198 2907 return this; 3199 2908 } … … 3203 2912 public Builder addAllPrimitivegroup( 3204 2913 java.lang.Iterable<? extends crosby.binary.Osmformat.PrimitiveGroup> values) { 3205 ensurePrimitivegroupIsMutable(); 3206 com.google.protobuf.AbstractMessageLite.Builder.addAll( 3207 values, primitivegroup_); 3208 2914 copyOnWrite(); 2915 instance.addAllPrimitivegroup(values); 3209 2916 return this; 3210 2917 } … … 3213 2920 */ 3214 2921 public Builder clearPrimitivegroup() { 3215 primitivegroup_ = java.util.Collections.emptyList(); 3216 bitField0_ = (bitField0_ & ~0x00000002); 3217 2922 copyOnWrite(); 2923 instance.clearPrimitivegroup(); 3218 2924 return this; 3219 2925 } … … 3222 2928 */ 3223 2929 public Builder removePrimitivegroup(int index) { 3224 ensurePrimitivegroupIsMutable(); 3225 primitivegroup_.remove(index); 3226 3227 return this; 3228 } 3229 3230 private int granularity_ = 100; 3231 /** 2930 copyOnWrite(); 2931 instance.removePrimitivegroup(index); 2932 return this; 2933 } 2934 2935 /** 2936 * <pre> 2937 * Granularity, units of nanodegrees, used to store coordinates in this block 2938 * </pre> 2939 * 3232 2940 * <code>optional int32 granularity = 17 [default = 100];</code> 3233 * 2941 */ 2942 public boolean hasGranularity() { 2943 return instance.hasGranularity(); 2944 } 2945 /** 3234 2946 * <pre> 3235 2947 * Granularity, units of nanodegrees, used to store coordinates in this block 3236 2948 * </pre> 3237 */ 3238 @Override 3239 public boolean hasGranularity() { 3240 return ((bitField0_ & 0x00000004) == 0x00000004); 3241 } 3242 /** 2949 * 3243 2950 * <code>optional int32 granularity = 17 [default = 100];</code> 3244 * 2951 */ 2952 public int getGranularity() { 2953 return instance.getGranularity(); 2954 } 2955 /** 3245 2956 * <pre> 3246 2957 * Granularity, units of nanodegrees, used to store coordinates in this block 3247 2958 * </pre> 3248 */ 3249 @Override 3250 public int getGranularity() { 3251 return granularity_; 3252 } 3253 /** 2959 * 3254 2960 * <code>optional int32 granularity = 17 [default = 100];</code> 3255 * 2961 */ 2962 public Builder setGranularity(int value) { 2963 copyOnWrite(); 2964 instance.setGranularity(value); 2965 return this; 2966 } 2967 /** 3256 2968 * <pre> 3257 2969 * Granularity, units of nanodegrees, used to store coordinates in this block 3258 2970 * </pre> 3259 */ 3260 public Builder setGranularity(int value) { 3261 bitField0_ |= 0x00000004; 3262 granularity_ = value; 3263 3264 return this; 3265 } 3266 /** 2971 * 3267 2972 * <code>optional int32 granularity = 17 [default = 100];</code> 3268 *3269 * <pre>3270 * Granularity, units of nanodegrees, used to store coordinates in this block3271 * </pre>3272 2973 */ 3273 2974 public Builder clearGranularity() { 3274 bitField0_ = (bitField0_ & ~0x00000004); 3275 granularity_ = 100; 3276 3277 return this; 3278 } 3279 3280 private long latOffset_ ; 3281 /** 2975 copyOnWrite(); 2976 instance.clearGranularity(); 2977 return this; 2978 } 2979 2980 /** 2981 * <pre> 2982 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 2983 * </pre> 2984 * 3282 2985 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3283 * 2986 */ 2987 public boolean hasLatOffset() { 2988 return instance.hasLatOffset(); 2989 } 2990 /** 3284 2991 * <pre> 3285 2992 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 3286 2993 * </pre> 3287 */ 3288 @Override 3289 public boolean hasLatOffset() { 3290 return ((bitField0_ & 0x00000008) == 0x00000008); 3291 } 3292 /** 2994 * 3293 2995 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3294 * 2996 */ 2997 public long getLatOffset() { 2998 return instance.getLatOffset(); 2999 } 3000 /** 3295 3001 * <pre> 3296 3002 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 3297 3003 * </pre> 3298 */ 3299 @Override 3300 public long getLatOffset() { 3301 return latOffset_; 3302 } 3303 /** 3004 * 3304 3005 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3305 * 3006 */ 3007 public Builder setLatOffset(long value) { 3008 copyOnWrite(); 3009 instance.setLatOffset(value); 3010 return this; 3011 } 3012 /** 3306 3013 * <pre> 3307 3014 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees. 3308 3015 * </pre> 3309 */ 3310 public Builder setLatOffset(long value) { 3311 bitField0_ |= 0x00000008; 3312 latOffset_ = value; 3313 3314 return this; 3315 } 3316 /** 3016 * 3317 3017 * <code>optional int64 lat_offset = 19 [default = 0];</code> 3318 *3319 * <pre>3320 * Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.3321 * </pre>3322 3018 */ 3323 3019 public Builder clearLatOffset() { 3324 bitField0_ = (bitField0_ & ~0x00000008); 3325 latOffset_ = 0L; 3326 3327 return this; 3328 } 3329 3330 private long lonOffset_ ; 3020 copyOnWrite(); 3021 instance.clearLatOffset(); 3022 return this; 3023 } 3024 3331 3025 /** 3332 3026 * <code>optional int64 lon_offset = 20 [default = 0];</code> 3333 3027 */ 3334 @Override 3335 public boolean hasLonOffset() { 3336 return ((bitField0_ & 0x00000010) == 0x00000010); 3028 public boolean hasLonOffset() { 3029 return instance.hasLonOffset(); 3337 3030 } 3338 3031 /** 3339 3032 * <code>optional int64 lon_offset = 20 [default = 0];</code> 3340 3033 */ 3341 @Override 3342 public long getLonOffset() { 3343 return lonOffset_; 3034 public long getLonOffset() { 3035 return instance.getLonOffset(); 3344 3036 } 3345 3037 /** … … 3347 3039 */ 3348 3040 public Builder setLonOffset(long value) { 3349 bitField0_ |= 0x00000010; 3350 lonOffset_ = value; 3351 3041 copyOnWrite(); 3042 instance.setLonOffset(value); 3352 3043 return this; 3353 3044 } … … 3356 3047 */ 3357 3048 public Builder clearLonOffset() { 3358 bitField0_ = (bitField0_ & ~0x00000010); 3359 lonOffset_ = 0L; 3360 3361 return this; 3362 } 3363 3364 private int dateGranularity_ = 1000; 3365 /** 3049 copyOnWrite(); 3050 instance.clearLonOffset(); 3051 return this; 3052 } 3053 3054 /** 3055 * <pre> 3056 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3057 * </pre> 3058 * 3366 3059 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3367 * 3060 */ 3061 public boolean hasDateGranularity() { 3062 return instance.hasDateGranularity(); 3063 } 3064 /** 3368 3065 * <pre> 3369 3066 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3370 3067 * </pre> 3371 */ 3372 @Override 3373 public boolean hasDateGranularity() { 3374 return ((bitField0_ & 0x00000020) == 0x00000020); 3375 } 3376 /** 3068 * 3377 3069 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3378 * 3070 */ 3071 public int getDateGranularity() { 3072 return instance.getDateGranularity(); 3073 } 3074 /** 3379 3075 * <pre> 3380 3076 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3381 3077 * </pre> 3382 */ 3383 @Override 3384 public int getDateGranularity() { 3385 return dateGranularity_; 3386 } 3387 /** 3078 * 3388 3079 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3389 * 3080 */ 3081 public Builder setDateGranularity(int value) { 3082 copyOnWrite(); 3083 instance.setDateGranularity(value); 3084 return this; 3085 } 3086 /** 3390 3087 * <pre> 3391 3088 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch. 3392 3089 * </pre> 3393 */ 3394 public Builder setDateGranularity(int value) { 3395 bitField0_ |= 0x00000020; 3396 dateGranularity_ = value; 3397 3398 return this; 3399 } 3400 /** 3090 * 3401 3091 * <code>optional int32 date_granularity = 18 [default = 1000];</code> 3402 *3403 * <pre>3404 * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.3405 * </pre>3406 3092 */ 3407 3093 public Builder clearDateGranularity() { 3408 bitField0_ = (bitField0_ & ~0x00000020); 3409 dateGranularity_ = 1000; 3410 3094 copyOnWrite(); 3095 instance.clearDateGranularity(); 3411 3096 return this; 3412 3097 } … … 3414 3099 // @@protoc_insertion_point(builder_scope:OSMPBF.PrimitiveBlock) 3415 3100 } 3416 3101 private byte memoizedIsInitialized = -1; 3102 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 3103 protected final java.lang.Object dynamicMethod( 3104 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 3105 java.lang.Object arg0, java.lang.Object arg1) { 3106 switch (method) { 3107 case NEW_MUTABLE_INSTANCE: { 3108 return new crosby.binary.Osmformat.PrimitiveBlock(); 3109 } 3110 case IS_INITIALIZED: { 3111 byte isInitialized = memoizedIsInitialized; 3112 if (isInitialized == 1) return DEFAULT_INSTANCE; 3113 if (isInitialized == 0) return null; 3114 3115 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 3116 if (!hasStringtable()) { 3117 if (shouldMemoize) { 3118 memoizedIsInitialized = 0; 3119 } 3120 return null; 3121 } 3122 for (int i = 0; i < getPrimitivegroupCount(); i++) { 3123 if (!getPrimitivegroup(i).isInitialized()) { 3124 if (shouldMemoize) { 3125 memoizedIsInitialized = 0; 3126 } 3127 return null; 3128 } 3129 } 3130 if (shouldMemoize) memoizedIsInitialized = 1; 3131 return DEFAULT_INSTANCE; 3132 3133 } 3134 case MAKE_IMMUTABLE: { 3135 primitivegroup_.makeImmutable(); 3136 return null; 3137 } 3138 case NEW_BUILDER: { 3139 return new Builder(); 3140 } 3141 case VISIT: { 3142 Visitor visitor = (Visitor) arg0; 3143 crosby.binary.Osmformat.PrimitiveBlock other = (crosby.binary.Osmformat.PrimitiveBlock) arg1; 3144 stringtable_ = visitor.visitMessage(stringtable_, other.stringtable_); 3145 primitivegroup_= visitor.visitList(primitivegroup_, other.primitivegroup_); 3146 granularity_ = visitor.visitInt( 3147 hasGranularity(), granularity_, 3148 other.hasGranularity(), other.granularity_); 3149 latOffset_ = visitor.visitLong( 3150 hasLatOffset(), latOffset_, 3151 other.hasLatOffset(), other.latOffset_); 3152 lonOffset_ = visitor.visitLong( 3153 hasLonOffset(), lonOffset_, 3154 other.hasLonOffset(), other.lonOffset_); 3155 dateGranularity_ = visitor.visitInt( 3156 hasDateGranularity(), dateGranularity_, 3157 other.hasDateGranularity(), other.dateGranularity_); 3158 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 3159 .INSTANCE) { 3160 bitField0_ |= other.bitField0_; 3161 } 3162 return this; 3163 } 3164 case MERGE_FROM_STREAM: { 3165 com.google.protobuf.CodedInputStream input = 3166 (com.google.protobuf.CodedInputStream) arg0; 3167 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 3168 (com.google.protobuf.ExtensionRegistryLite) arg1; 3169 try { 3170 boolean done = false; 3171 while (!done) { 3172 int tag = input.readTag(); 3173 switch (tag) { 3174 case 0: 3175 done = true; 3176 break; 3177 default: { 3178 if (!parseUnknownField(tag, input)) { 3179 done = true; 3180 } 3181 break; 3182 } 3183 case 10: { 3184 crosby.binary.Osmformat.StringTable.Builder subBuilder = null; 3185 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3186 subBuilder = stringtable_.toBuilder(); 3187 } 3188 stringtable_ = input.readMessage(crosby.binary.Osmformat.StringTable.parser(), extensionRegistry); 3189 if (subBuilder != null) { 3190 subBuilder.mergeFrom(stringtable_); 3191 stringtable_ = subBuilder.buildPartial(); 3192 } 3193 bitField0_ |= 0x00000001; 3194 break; 3195 } 3196 case 18: { 3197 if (!primitivegroup_.isModifiable()) { 3198 primitivegroup_ = 3199 com.google.protobuf.GeneratedMessageLite.mutableCopy(primitivegroup_); 3200 } 3201 primitivegroup_.add( 3202 input.readMessage(crosby.binary.Osmformat.PrimitiveGroup.parser(), extensionRegistry)); 3203 break; 3204 } 3205 case 136: { 3206 bitField0_ |= 0x00000002; 3207 granularity_ = input.readInt32(); 3208 break; 3209 } 3210 case 144: { 3211 bitField0_ |= 0x00000010; 3212 dateGranularity_ = input.readInt32(); 3213 break; 3214 } 3215 case 152: { 3216 bitField0_ |= 0x00000004; 3217 latOffset_ = input.readInt64(); 3218 break; 3219 } 3220 case 160: { 3221 bitField0_ |= 0x00000008; 3222 lonOffset_ = input.readInt64(); 3223 break; 3224 } 3225 } 3226 } 3227 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3228 throw new RuntimeException(e.setUnfinishedMessage(this)); 3229 } catch (java.io.IOException e) { 3230 throw new RuntimeException( 3231 new com.google.protobuf.InvalidProtocolBufferException( 3232 e.getMessage()).setUnfinishedMessage(this)); 3233 } finally { 3234 } 3235 } 3236 // fall through 3237 case GET_DEFAULT_INSTANCE: { 3238 return DEFAULT_INSTANCE; 3239 } 3240 case GET_PARSER: { 3241 if (PARSER == null) { synchronized (crosby.binary.Osmformat.PrimitiveBlock.class) { 3242 if (PARSER == null) { 3243 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 3244 } 3245 } 3246 } 3247 return PARSER; 3248 } 3249 } 3250 throw new UnsupportedOperationException(); 3251 } 3252 3253 3254 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveBlock) 3255 private static final crosby.binary.Osmformat.PrimitiveBlock DEFAULT_INSTANCE; 3417 3256 static { 3418 defaultInstance = new PrimitiveBlock(true); 3419 defaultInstance.initFields(); 3420 } 3421 3422 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveBlock) 3257 DEFAULT_INSTANCE = new PrimitiveBlock(); 3258 DEFAULT_INSTANCE.makeImmutable(); 3259 } 3260 3261 public static crosby.binary.Osmformat.PrimitiveBlock getDefaultInstance() { 3262 return DEFAULT_INSTANCE; 3263 } 3264 3265 private static volatile com.google.protobuf.Parser<PrimitiveBlock> PARSER; 3266 3267 public static com.google.protobuf.Parser<PrimitiveBlock> parser() { 3268 return DEFAULT_INSTANCE.getParserForType(); 3269 } 3423 3270 } 3424 3271 … … 3430 3277 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3431 3278 */ 3432 java.util.List<crosby.binary.Osmformat.Node> 3279 java.util.List<crosby.binary.Osmformat.Node> 3433 3280 getNodesList(); 3434 3281 /** … … 3453 3300 * <code>repeated .OSMPBF.Way ways = 3;</code> 3454 3301 */ 3455 java.util.List<crosby.binary.Osmformat.Way> 3302 java.util.List<crosby.binary.Osmformat.Way> 3456 3303 getWaysList(); 3457 3304 /** … … 3467 3314 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3468 3315 */ 3469 java.util.List<crosby.binary.Osmformat.Relation> 3316 java.util.List<crosby.binary.Osmformat.Relation> 3470 3317 getRelationsList(); 3471 3318 /** … … 3481 3328 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3482 3329 */ 3483 java.util.List<crosby.binary.Osmformat.ChangeSet> 3330 java.util.List<crosby.binary.Osmformat.ChangeSet> 3484 3331 getChangesetsList(); 3485 3332 /** … … 3493 3340 } 3494 3341 /** 3495 * Protobuf type {@code OSMPBF.PrimitiveGroup}3496 *3497 3342 * <pre> 3498 3343 * Group of OSMPrimitives. All primitives in a group must be the same type. 3499 3344 * </pre> 3345 * 3346 * Protobuf type {@code OSMPBF.PrimitiveGroup} 3500 3347 */ 3501 public static final class PrimitiveGroup extends 3502 com.google.protobuf.GeneratedMessageLite implements 3348 public static final class PrimitiveGroup extends 3349 com.google.protobuf.GeneratedMessageLite< 3350 PrimitiveGroup, PrimitiveGroup.Builder> implements 3503 3351 // @@protoc_insertion_point(message_implements:OSMPBF.PrimitiveGroup) 3504 3352 PrimitiveGroupOrBuilder { 3505 // Use PrimitiveGroup.newBuilder() to construct. 3506 private PrimitiveGroup(com.google.protobuf.GeneratedMessageLite.Builder builder) { 3507 super(builder); 3508 this.unknownFields = builder.getUnknownFields(); 3509 } 3510 private PrimitiveGroup(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 3511 3512 private static final PrimitiveGroup defaultInstance; 3513 public static PrimitiveGroup getDefaultInstance() { 3514 return defaultInstance; 3515 } 3516 3517 @Override 3518 public PrimitiveGroup getDefaultInstanceForType() { 3519 return defaultInstance; 3520 } 3521 3522 private final com.google.protobuf.ByteString unknownFields; 3523 private PrimitiveGroup( 3524 com.google.protobuf.CodedInputStream input, 3525 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3526 throws com.google.protobuf.InvalidProtocolBufferException { 3527 initFields(); 3528 int mutable_bitField0_ = 0; 3529 com.google.protobuf.ByteString.Output unknownFieldsOutput = 3530 com.google.protobuf.ByteString.newOutput(); 3531 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 3532 com.google.protobuf.CodedOutputStream.newInstance( 3533 unknownFieldsOutput); 3534 try { 3535 boolean done = false; 3536 while (!done) { 3537 int tag = input.readTag(); 3538 switch (tag) { 3539 case 0: 3540 done = true; 3541 break; 3542 default: { 3543 if (!parseUnknownField(input, unknownFieldsCodedOutput, 3544 extensionRegistry, tag)) { 3545 done = true; 3546 } 3547 break; 3548 } 3549 case 10: { 3550 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 3551 nodes_ = new java.util.ArrayList<>(); 3552 mutable_bitField0_ |= 0x00000001; 3553 } 3554 nodes_.add(input.readMessage(crosby.binary.Osmformat.Node.PARSER, extensionRegistry)); 3555 break; 3556 } 3557 case 18: { 3558 crosby.binary.Osmformat.DenseNodes.Builder subBuilder = null; 3559 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3560 subBuilder = dense_.toBuilder(); 3561 } 3562 dense_ = input.readMessage(crosby.binary.Osmformat.DenseNodes.PARSER, extensionRegistry); 3563 if (subBuilder != null) { 3564 subBuilder.mergeFrom(dense_); 3565 dense_ = subBuilder.buildPartial(); 3566 } 3567 bitField0_ |= 0x00000001; 3568 break; 3569 } 3570 case 26: { 3571 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 3572 ways_ = new java.util.ArrayList<>(); 3573 mutable_bitField0_ |= 0x00000004; 3574 } 3575 ways_.add(input.readMessage(crosby.binary.Osmformat.Way.PARSER, extensionRegistry)); 3576 break; 3577 } 3578 case 34: { 3579 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 3580 relations_ = new java.util.ArrayList<>(); 3581 mutable_bitField0_ |= 0x00000008; 3582 } 3583 relations_.add(input.readMessage(crosby.binary.Osmformat.Relation.PARSER, extensionRegistry)); 3584 break; 3585 } 3586 case 42: { 3587 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 3588 changesets_ = new java.util.ArrayList<>(); 3589 mutable_bitField0_ |= 0x00000010; 3590 } 3591 changesets_.add(input.readMessage(crosby.binary.Osmformat.ChangeSet.PARSER, extensionRegistry)); 3592 break; 3593 } 3594 } 3595 } 3596 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3597 throw e.setUnfinishedMessage(this); 3598 } catch (java.io.IOException e) { 3599 throw new com.google.protobuf.InvalidProtocolBufferException( 3600 e.getMessage()).setUnfinishedMessage(this); 3601 } finally { 3602 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 3603 nodes_ = java.util.Collections.unmodifiableList(nodes_); 3604 } 3605 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 3606 ways_ = java.util.Collections.unmodifiableList(ways_); 3607 } 3608 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 3609 relations_ = java.util.Collections.unmodifiableList(relations_); 3610 } 3611 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 3612 changesets_ = java.util.Collections.unmodifiableList(changesets_); 3613 } 3614 try { 3615 unknownFieldsCodedOutput.flush(); 3616 } catch (java.io.IOException e) { 3617 // Should not happen 3618 } finally { 3619 unknownFields = unknownFieldsOutput.toByteString(); 3620 } 3621 makeExtensionsImmutable(); 3622 } 3623 } 3624 public static com.google.protobuf.Parser<PrimitiveGroup> PARSER = 3625 new com.google.protobuf.AbstractParser<PrimitiveGroup>() { 3626 @Override 3627 public PrimitiveGroup parsePartialFrom( 3628 com.google.protobuf.CodedInputStream input, 3629 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3630 throws com.google.protobuf.InvalidProtocolBufferException { 3631 return new PrimitiveGroup(input, extensionRegistry); 3632 } 3633 }; 3634 3635 @java.lang.Override 3636 public com.google.protobuf.Parser<PrimitiveGroup> getParserForType() { 3637 return PARSER; 3638 } 3639 3353 private PrimitiveGroup() { 3354 nodes_ = emptyProtobufList(); 3355 ways_ = emptyProtobufList(); 3356 relations_ = emptyProtobufList(); 3357 changesets_ = emptyProtobufList(); 3358 } 3640 3359 private int bitField0_; 3641 3360 public static final int NODES_FIELD_NUMBER = 1; 3642 private java.util.List<crosby.binary.Osmformat.Node> nodes_;3361 private com.google.protobuf.Internal.ProtobufList<crosby.binary.Osmformat.Node> nodes_; 3643 3362 /** 3644 3363 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3645 3364 */ 3646 @Override 3647 public java.util.List<crosby.binary.Osmformat.Node> getNodesList() { 3365 public java.util.List<crosby.binary.Osmformat.Node> getNodesList() { 3648 3366 return nodes_; 3649 3367 } … … 3651 3369 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3652 3370 */ 3653 public java.util.List<? extends crosby.binary.Osmformat.NodeOrBuilder> 3371 public java.util.List<? extends crosby.binary.Osmformat.NodeOrBuilder> 3654 3372 getNodesOrBuilderList() { 3655 3373 return nodes_; … … 3658 3376 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3659 3377 */ 3660 @Override 3661 public int getNodesCount() { 3378 public int getNodesCount() { 3662 3379 return nodes_.size(); 3663 3380 } … … 3665 3382 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3666 3383 */ 3667 @Override 3668 public crosby.binary.Osmformat.Node getNodes(int index) { 3384 public crosby.binary.Osmformat.Node getNodes(int index) { 3669 3385 return nodes_.get(index); 3670 3386 } … … 3676 3392 return nodes_.get(index); 3677 3393 } 3394 private void ensureNodesIsMutable() { 3395 if (!nodes_.isModifiable()) { 3396 nodes_ = 3397 com.google.protobuf.GeneratedMessageLite.mutableCopy(nodes_); 3398 } 3399 } 3400 3401 /** 3402 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3403 */ 3404 private void setNodes( 3405 int index, crosby.binary.Osmformat.Node value) { 3406 if (value == null) { 3407 throw new NullPointerException(); 3408 } 3409 ensureNodesIsMutable(); 3410 nodes_.set(index, value); 3411 } 3412 /** 3413 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3414 */ 3415 private void setNodes( 3416 int index, crosby.binary.Osmformat.Node.Builder builderForValue) { 3417 ensureNodesIsMutable(); 3418 nodes_.set(index, builderForValue.build()); 3419 } 3420 /** 3421 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3422 */ 3423 private void addNodes(crosby.binary.Osmformat.Node value) { 3424 if (value == null) { 3425 throw new NullPointerException(); 3426 } 3427 ensureNodesIsMutable(); 3428 nodes_.add(value); 3429 } 3430 /** 3431 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3432 */ 3433 private void addNodes( 3434 int index, crosby.binary.Osmformat.Node value) { 3435 if (value == null) { 3436 throw new NullPointerException(); 3437 } 3438 ensureNodesIsMutable(); 3439 nodes_.add(index, value); 3440 } 3441 /** 3442 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3443 */ 3444 private void addNodes( 3445 crosby.binary.Osmformat.Node.Builder builderForValue) { 3446 ensureNodesIsMutable(); 3447 nodes_.add(builderForValue.build()); 3448 } 3449 /** 3450 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3451 */ 3452 private void addNodes( 3453 int index, crosby.binary.Osmformat.Node.Builder builderForValue) { 3454 ensureNodesIsMutable(); 3455 nodes_.add(index, builderForValue.build()); 3456 } 3457 /** 3458 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3459 */ 3460 private void addAllNodes( 3461 java.lang.Iterable<? extends crosby.binary.Osmformat.Node> values) { 3462 ensureNodesIsMutable(); 3463 com.google.protobuf.AbstractMessageLite.addAll( 3464 values, nodes_); 3465 } 3466 /** 3467 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3468 */ 3469 private void clearNodes() { 3470 nodes_ = emptyProtobufList(); 3471 } 3472 /** 3473 * <code>repeated .OSMPBF.Node nodes = 1;</code> 3474 */ 3475 private void removeNodes(int index) { 3476 ensureNodesIsMutable(); 3477 nodes_.remove(index); 3478 } 3678 3479 3679 3480 public static final int DENSE_FIELD_NUMBER = 2; … … 3682 3483 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3683 3484 */ 3684 @Override 3685 public boolean hasDense() { 3485 public boolean hasDense() { 3686 3486 return ((bitField0_ & 0x00000001) == 0x00000001); 3687 3487 } … … 3689 3489 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3690 3490 */ 3691 @Override 3692 public crosby.binary.Osmformat.DenseNodes getDense() { 3693 return dense_; 3491 public crosby.binary.Osmformat.DenseNodes getDense() { 3492 return dense_ == null ? crosby.binary.Osmformat.DenseNodes.getDefaultInstance() : dense_; 3493 } 3494 /** 3495 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3496 */ 3497 private void setDense(crosby.binary.Osmformat.DenseNodes value) { 3498 if (value == null) { 3499 throw new NullPointerException(); 3500 } 3501 dense_ = value; 3502 bitField0_ |= 0x00000001; 3503 } 3504 /** 3505 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3506 */ 3507 private void setDense( 3508 crosby.binary.Osmformat.DenseNodes.Builder builderForValue) { 3509 dense_ = builderForValue.build(); 3510 bitField0_ |= 0x00000001; 3511 } 3512 /** 3513 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3514 */ 3515 private void mergeDense(crosby.binary.Osmformat.DenseNodes value) { 3516 if (dense_ != null && 3517 dense_ != crosby.binary.Osmformat.DenseNodes.getDefaultInstance()) { 3518 dense_ = 3519 crosby.binary.Osmformat.DenseNodes.newBuilder(dense_).mergeFrom(value).buildPartial(); 3520 } else { 3521 dense_ = value; 3522 } 3523 bitField0_ |= 0x00000001; 3524 } 3525 /** 3526 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 3527 */ 3528 private void clearDense() { dense_ = null; 3529 bitField0_ = (bitField0_ & ~0x00000001); 3694 3530 } 3695 3531 3696 3532 public static final int WAYS_FIELD_NUMBER = 3; 3697 private java.util.List<crosby.binary.Osmformat.Way> ways_;3533 private com.google.protobuf.Internal.ProtobufList<crosby.binary.Osmformat.Way> ways_; 3698 3534 /** 3699 3535 * <code>repeated .OSMPBF.Way ways = 3;</code> 3700 3536 */ 3701 @Override 3702 public java.util.List<crosby.binary.Osmformat.Way> getWaysList() { 3537 public java.util.List<crosby.binary.Osmformat.Way> getWaysList() { 3703 3538 return ways_; 3704 3539 } … … 3706 3541 * <code>repeated .OSMPBF.Way ways = 3;</code> 3707 3542 */ 3708 public java.util.List<? extends crosby.binary.Osmformat.WayOrBuilder> 3543 public java.util.List<? extends crosby.binary.Osmformat.WayOrBuilder> 3709 3544 getWaysOrBuilderList() { 3710 3545 return ways_; … … 3713 3548 * <code>repeated .OSMPBF.Way ways = 3;</code> 3714 3549 */ 3715 @Override 3716 public int getWaysCount() { 3550 public int getWaysCount() { 3717 3551 return ways_.size(); 3718 3552 } … … 3720 3554 * <code>repeated .OSMPBF.Way ways = 3;</code> 3721 3555 */ 3722 @Override 3723 public crosby.binary.Osmformat.Way getWays(int index) { 3556 public crosby.binary.Osmformat.Way getWays(int index) { 3724 3557 return ways_.get(index); 3725 3558 } … … 3731 3564 return ways_.get(index); 3732 3565 } 3566 private void ensureWaysIsMutable() { 3567 if (!ways_.isModifiable()) { 3568 ways_ = 3569 com.google.protobuf.GeneratedMessageLite.mutableCopy(ways_); 3570 } 3571 } 3572 3573 /** 3574 * <code>repeated .OSMPBF.Way ways = 3;</code> 3575 */ 3576 private void setWays( 3577 int index, crosby.binary.Osmformat.Way value) { 3578 if (value == null) { 3579 throw new NullPointerException(); 3580 } 3581 ensureWaysIsMutable(); 3582 ways_.set(index, value); 3583 } 3584 /** 3585 * <code>repeated .OSMPBF.Way ways = 3;</code> 3586 */ 3587 private void setWays( 3588 int index, crosby.binary.Osmformat.Way.Builder builderForValue) { 3589 ensureWaysIsMutable(); 3590 ways_.set(index, builderForValue.build()); 3591 } 3592 /** 3593 * <code>repeated .OSMPBF.Way ways = 3;</code> 3594 */ 3595 private void addWays(crosby.binary.Osmformat.Way value) { 3596 if (value == null) { 3597 throw new NullPointerException(); 3598 } 3599 ensureWaysIsMutable(); 3600 ways_.add(value); 3601 } 3602 /** 3603 * <code>repeated .OSMPBF.Way ways = 3;</code> 3604 */ 3605 private void addWays( 3606 int index, crosby.binary.Osmformat.Way value) { 3607 if (value == null) { 3608 throw new NullPointerException(); 3609 } 3610 ensureWaysIsMutable(); 3611 ways_.add(index, value); 3612 } 3613 /** 3614 * <code>repeated .OSMPBF.Way ways = 3;</code> 3615 */ 3616 private void addWays( 3617 crosby.binary.Osmformat.Way.Builder builderForValue) { 3618 ensureWaysIsMutable(); 3619 ways_.add(builderForValue.build()); 3620 } 3621 /** 3622 * <code>repeated .OSMPBF.Way ways = 3;</code> 3623 */ 3624 private void addWays( 3625 int index, crosby.binary.Osmformat.Way.Builder builderForValue) { 3626 ensureWaysIsMutable(); 3627 ways_.add(index, builderForValue.build()); 3628 } 3629 /** 3630 * <code>repeated .OSMPBF.Way ways = 3;</code> 3631 */ 3632 private void addAllWays( 3633 java.lang.Iterable<? extends crosby.binary.Osmformat.Way> values) { 3634 ensureWaysIsMutable(); 3635 com.google.protobuf.AbstractMessageLite.addAll( 3636 values, ways_); 3637 } 3638 /** 3639 * <code>repeated .OSMPBF.Way ways = 3;</code> 3640 */ 3641 private void clearWays() { 3642 ways_ = emptyProtobufList(); 3643 } 3644 /** 3645 * <code>repeated .OSMPBF.Way ways = 3;</code> 3646 */ 3647 private void removeWays(int index) { 3648 ensureWaysIsMutable(); 3649 ways_.remove(index); 3650 } 3733 3651 3734 3652 public static final int RELATIONS_FIELD_NUMBER = 4; 3735 private java.util.List<crosby.binary.Osmformat.Relation> relations_;3653 private com.google.protobuf.Internal.ProtobufList<crosby.binary.Osmformat.Relation> relations_; 3736 3654 /** 3737 3655 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3738 3656 */ 3739 @Override 3740 public java.util.List<crosby.binary.Osmformat.Relation> getRelationsList() { 3657 public java.util.List<crosby.binary.Osmformat.Relation> getRelationsList() { 3741 3658 return relations_; 3742 3659 } … … 3744 3661 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3745 3662 */ 3746 public java.util.List<? extends crosby.binary.Osmformat.RelationOrBuilder> 3663 public java.util.List<? extends crosby.binary.Osmformat.RelationOrBuilder> 3747 3664 getRelationsOrBuilderList() { 3748 3665 return relations_; … … 3751 3668 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3752 3669 */ 3753 @Override 3754 public int getRelationsCount() { 3670 public int getRelationsCount() { 3755 3671 return relations_.size(); 3756 3672 } … … 3758 3674 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3759 3675 */ 3760 @Override 3761 public crosby.binary.Osmformat.Relation getRelations(int index) { 3676 public crosby.binary.Osmformat.Relation getRelations(int index) { 3762 3677 return relations_.get(index); 3763 3678 } … … 3769 3684 return relations_.get(index); 3770 3685 } 3686 private void ensureRelationsIsMutable() { 3687 if (!relations_.isModifiable()) { 3688 relations_ = 3689 com.google.protobuf.GeneratedMessageLite.mutableCopy(relations_); 3690 } 3691 } 3692 3693 /** 3694 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3695 */ 3696 private void setRelations( 3697 int index, crosby.binary.Osmformat.Relation value) { 3698 if (value == null) { 3699 throw new NullPointerException(); 3700 } 3701 ensureRelationsIsMutable(); 3702 relations_.set(index, value); 3703 } 3704 /** 3705 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3706 */ 3707 private void setRelations( 3708 int index, crosby.binary.Osmformat.Relation.Builder builderForValue) { 3709 ensureRelationsIsMutable(); 3710 relations_.set(index, builderForValue.build()); 3711 } 3712 /** 3713 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3714 */ 3715 private void addRelations(crosby.binary.Osmformat.Relation value) { 3716 if (value == null) { 3717 throw new NullPointerException(); 3718 } 3719 ensureRelationsIsMutable(); 3720 relations_.add(value); 3721 } 3722 /** 3723 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3724 */ 3725 private void addRelations( 3726 int index, crosby.binary.Osmformat.Relation value) { 3727 if (value == null) { 3728 throw new NullPointerException(); 3729 } 3730 ensureRelationsIsMutable(); 3731 relations_.add(index, value); 3732 } 3733 /** 3734 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3735 */ 3736 private void addRelations( 3737 crosby.binary.Osmformat.Relation.Builder builderForValue) { 3738 ensureRelationsIsMutable(); 3739 relations_.add(builderForValue.build()); 3740 } 3741 /** 3742 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3743 */ 3744 private void addRelations( 3745 int index, crosby.binary.Osmformat.Relation.Builder builderForValue) { 3746 ensureRelationsIsMutable(); 3747 relations_.add(index, builderForValue.build()); 3748 } 3749 /** 3750 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3751 */ 3752 private void addAllRelations( 3753 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation> values) { 3754 ensureRelationsIsMutable(); 3755 com.google.protobuf.AbstractMessageLite.addAll( 3756 values, relations_); 3757 } 3758 /** 3759 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3760 */ 3761 private void clearRelations() { 3762 relations_ = emptyProtobufList(); 3763 } 3764 /** 3765 * <code>repeated .OSMPBF.Relation relations = 4;</code> 3766 */ 3767 private void removeRelations(int index) { 3768 ensureRelationsIsMutable(); 3769 relations_.remove(index); 3770 } 3771 3771 3772 3772 public static final int CHANGESETS_FIELD_NUMBER = 5; 3773 private java.util.List<crosby.binary.Osmformat.ChangeSet> changesets_;3773 private com.google.protobuf.Internal.ProtobufList<crosby.binary.Osmformat.ChangeSet> changesets_; 3774 3774 /** 3775 3775 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3776 3776 */ 3777 @Override 3778 public java.util.List<crosby.binary.Osmformat.ChangeSet> getChangesetsList() { 3777 public java.util.List<crosby.binary.Osmformat.ChangeSet> getChangesetsList() { 3779 3778 return changesets_; 3780 3779 } … … 3782 3781 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3783 3782 */ 3784 public java.util.List<? extends crosby.binary.Osmformat.ChangeSetOrBuilder> 3783 public java.util.List<? extends crosby.binary.Osmformat.ChangeSetOrBuilder> 3785 3784 getChangesetsOrBuilderList() { 3786 3785 return changesets_; … … 3789 3788 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3790 3789 */ 3791 @Override 3792 public int getChangesetsCount() { 3790 public int getChangesetsCount() { 3793 3791 return changesets_.size(); 3794 3792 } … … 3796 3794 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3797 3795 */ 3798 @Override 3799 public crosby.binary.Osmformat.ChangeSet getChangesets(int index) { 3796 public crosby.binary.Osmformat.ChangeSet getChangesets(int index) { 3800 3797 return changesets_.get(index); 3801 3798 } … … 3807 3804 return changesets_.get(index); 3808 3805 } 3809 3810 private void initFields() { 3811 nodes_ = java.util.Collections.emptyList(); 3812 dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 3813 ways_ = java.util.Collections.emptyList(); 3814 relations_ = java.util.Collections.emptyList(); 3815 changesets_ = java.util.Collections.emptyList(); 3816 } 3817 private byte memoizedIsInitialized = -1; 3818 @Override 3819 public final boolean isInitialized() { 3820 byte isInitialized = memoizedIsInitialized; 3821 if (isInitialized == 1) return true; 3822 if (isInitialized == 0) return false; 3823 3824 for (int i = 0; i < getNodesCount(); i++) { 3825 if (!getNodes(i).isInitialized()) { 3826 memoizedIsInitialized = 0; 3827 return false; 3828 } 3829 } 3830 for (int i = 0; i < getWaysCount(); i++) { 3831 if (!getWays(i).isInitialized()) { 3832 memoizedIsInitialized = 0; 3833 return false; 3834 } 3835 } 3836 for (int i = 0; i < getRelationsCount(); i++) { 3837 if (!getRelations(i).isInitialized()) { 3838 memoizedIsInitialized = 0; 3839 return false; 3840 } 3841 } 3842 for (int i = 0; i < getChangesetsCount(); i++) { 3843 if (!getChangesets(i).isInitialized()) { 3844 memoizedIsInitialized = 0; 3845 return false; 3846 } 3847 } 3848 memoizedIsInitialized = 1; 3849 return true; 3850 } 3851 3852 @Override 3853 public void writeTo(com.google.protobuf.CodedOutputStream output) 3806 private void ensureChangesetsIsMutable() { 3807 if (!changesets_.isModifiable()) { 3808 changesets_ = 3809 com.google.protobuf.GeneratedMessageLite.mutableCopy(changesets_); 3810 } 3811 } 3812 3813 /** 3814 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3815 */ 3816 private void setChangesets( 3817 int index, crosby.binary.Osmformat.ChangeSet value) { 3818 if (value == null) { 3819 throw new NullPointerException(); 3820 } 3821 ensureChangesetsIsMutable(); 3822 changesets_.set(index, value); 3823 } 3824 /** 3825 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3826 */ 3827 private void setChangesets( 3828 int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 3829 ensureChangesetsIsMutable(); 3830 changesets_.set(index, builderForValue.build()); 3831 } 3832 /** 3833 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3834 */ 3835 private void addChangesets(crosby.binary.Osmformat.ChangeSet value) { 3836 if (value == null) { 3837 throw new NullPointerException(); 3838 } 3839 ensureChangesetsIsMutable(); 3840 changesets_.add(value); 3841 } 3842 /** 3843 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3844 */ 3845 private void addChangesets( 3846 int index, crosby.binary.Osmformat.ChangeSet value) { 3847 if (value == null) { 3848 throw new NullPointerException(); 3849 } 3850 ensureChangesetsIsMutable(); 3851 changesets_.add(index, value); 3852 } 3853 /** 3854 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3855 */ 3856 private void addChangesets( 3857 crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 3858 ensureChangesetsIsMutable(); 3859 changesets_.add(builderForValue.build()); 3860 } 3861 /** 3862 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3863 */ 3864 private void addChangesets( 3865 int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 3866 ensureChangesetsIsMutable(); 3867 changesets_.add(index, builderForValue.build()); 3868 } 3869 /** 3870 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3871 */ 3872 private void addAllChangesets( 3873 java.lang.Iterable<? extends crosby.binary.Osmformat.ChangeSet> values) { 3874 ensureChangesetsIsMutable(); 3875 com.google.protobuf.AbstractMessageLite.addAll( 3876 values, changesets_); 3877 } 3878 /** 3879 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3880 */ 3881 private void clearChangesets() { 3882 changesets_ = emptyProtobufList(); 3883 } 3884 /** 3885 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 3886 */ 3887 private void removeChangesets(int index) { 3888 ensureChangesetsIsMutable(); 3889 changesets_.remove(index); 3890 } 3891 3892 public void writeTo(com.google.protobuf.CodedOutputStream output) 3854 3893 throws java.io.IOException { 3855 getSerializedSize();3856 3894 for (int i = 0; i < nodes_.size(); i++) { 3857 3895 output.writeMessage(1, nodes_.get(i)); 3858 3896 } 3859 3897 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3860 output.writeMessage(2, dense_);3898 output.writeMessage(2, getDense()); 3861 3899 } 3862 3900 for (int i = 0; i < ways_.size(); i++) { … … 3869 3907 output.writeMessage(5, changesets_.get(i)); 3870 3908 } 3871 output.writeRawBytes(unknownFields); 3872 } 3873 3874 private int memoizedSerializedSize = -1; 3875 @Override 3876 public int getSerializedSize() { 3909 unknownFields.writeTo(output); 3910 } 3911 3912 public int getSerializedSize() { 3877 3913 int size = memoizedSerializedSize; 3878 3914 if (size != -1) return size; … … 3885 3921 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3886 3922 size += com.google.protobuf.CodedOutputStream 3887 .computeMessageSize(2, dense_);3923 .computeMessageSize(2, getDense()); 3888 3924 } 3889 3925 for (int i = 0; i < ways_.size(); i++) { … … 3899 3935 .computeMessageSize(5, changesets_.get(i)); 3900 3936 } 3901 size += unknownFields. size();3937 size += unknownFields.getSerializedSize(); 3902 3938 memoizedSerializedSize = size; 3903 3939 return size; 3904 3940 } 3905 3941 3906 private static final long serialVersionUID = 0L; 3907 @java.lang.Override 3908 protected java.lang.Object writeReplace() 3909 throws java.io.ObjectStreamException { 3910 return super.writeReplace(); 3911 } 3912 3942 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( 3943 java.nio.ByteBuffer data) 3944 throws com.google.protobuf.InvalidProtocolBufferException { 3945 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3946 DEFAULT_INSTANCE, data); 3947 } 3948 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( 3949 java.nio.ByteBuffer data, 3950 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3951 throws com.google.protobuf.InvalidProtocolBufferException { 3952 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3953 DEFAULT_INSTANCE, data, extensionRegistry); 3954 } 3913 3955 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( 3914 3956 com.google.protobuf.ByteString data) 3915 3957 throws com.google.protobuf.InvalidProtocolBufferException { 3916 return PARSER.parseFrom(data); 3958 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3959 DEFAULT_INSTANCE, data); 3917 3960 } 3918 3961 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 3920 3963 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3921 3964 throws com.google.protobuf.InvalidProtocolBufferException { 3922 return PARSER.parseFrom(data, extensionRegistry); 3965 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3966 DEFAULT_INSTANCE, data, extensionRegistry); 3923 3967 } 3924 3968 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(byte[] data) 3925 3969 throws com.google.protobuf.InvalidProtocolBufferException { 3926 return PARSER.parseFrom(data); 3970 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3971 DEFAULT_INSTANCE, data); 3927 3972 } 3928 3973 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 3930 3975 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3931 3976 throws com.google.protobuf.InvalidProtocolBufferException { 3932 return PARSER.parseFrom(data, extensionRegistry); 3977 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3978 DEFAULT_INSTANCE, data, extensionRegistry); 3933 3979 } 3934 3980 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(java.io.InputStream input) 3935 3981 throws java.io.IOException { 3936 return PARSER.parseFrom(input); 3982 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3983 DEFAULT_INSTANCE, input); 3937 3984 } 3938 3985 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 3940 3987 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3941 3988 throws java.io.IOException { 3942 return PARSER.parseFrom(input, extensionRegistry); 3989 return com.google.protobuf.GeneratedMessageLite.parseFrom( 3990 DEFAULT_INSTANCE, input, extensionRegistry); 3943 3991 } 3944 3992 public static crosby.binary.Osmformat.PrimitiveGroup parseDelimitedFrom(java.io.InputStream input) 3945 3993 throws java.io.IOException { 3946 return PARSER.parseDelimitedFrom(input);3994 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 3947 3995 } 3948 3996 public static crosby.binary.Osmformat.PrimitiveGroup parseDelimitedFrom( … … 3950 3998 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3951 3999 throws java.io.IOException { 3952 return PARSER.parseDelimitedFrom(input, extensionRegistry);4000 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 3953 4001 } 3954 4002 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( 3955 4003 com.google.protobuf.CodedInputStream input) 3956 4004 throws java.io.IOException { 3957 return PARSER.parseFrom(input); 4005 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4006 DEFAULT_INSTANCE, input); 3958 4007 } 3959 4008 public static crosby.binary.Osmformat.PrimitiveGroup parseFrom( … … 3961 4010 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3962 4011 throws java.io.IOException { 3963 return PARSER.parseFrom(input, extensionRegistry); 3964 } 3965 3966 public static Builder newBuilder() { return Builder.create(); } 3967 @Override 3968 public Builder newBuilderForType() { return newBuilder(); } 4012 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4013 DEFAULT_INSTANCE, input, extensionRegistry); 4014 } 4015 4016 public static Builder newBuilder() { 4017 return DEFAULT_INSTANCE.toBuilder(); 4018 } 3969 4019 public static Builder newBuilder(crosby.binary.Osmformat.PrimitiveGroup prototype) { 3970 return newBuilder().mergeFrom(prototype); 3971 } 3972 @Override 3973 public Builder toBuilder() { return newBuilder(this); } 3974 3975 /** 4020 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 4021 } 4022 4023 /** 4024 * <pre> 4025 * Group of OSMPrimitives. All primitives in a group must be the same type. 4026 * </pre> 4027 * 3976 4028 * Protobuf type {@code OSMPBF.PrimitiveGroup} 3977 *3978 * <pre>3979 * Group of OSMPrimitives. All primitives in a group must be the same type.3980 * </pre>3981 4029 */ 3982 4030 public static final class Builder extends 3983 4031 com.google.protobuf.GeneratedMessageLite.Builder< 3984 crosby.binary.Osmformat.PrimitiveGroup, Builder> 3985 implements 4032 crosby.binary.Osmformat.PrimitiveGroup, Builder> implements 3986 4033 // @@protoc_insertion_point(builder_implements:OSMPBF.PrimitiveGroup) 3987 4034 crosby.binary.Osmformat.PrimitiveGroupOrBuilder { 3988 4035 // Construct using crosby.binary.Osmformat.PrimitiveGroup.newBuilder() 3989 4036 private Builder() { 3990 maybeForceBuilderInitialization(); 3991 } 3992 3993 private void maybeForceBuilderInitialization() { 3994 } 3995 private static Builder create() { 3996 return new Builder(); 3997 } 3998 3999 @Override 4000 public Builder clear() { 4001 super.clear(); 4002 nodes_ = java.util.Collections.emptyList(); 4003 bitField0_ = (bitField0_ & ~0x00000001); 4004 dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 4005 bitField0_ = (bitField0_ & ~0x00000002); 4006 ways_ = java.util.Collections.emptyList(); 4007 bitField0_ = (bitField0_ & ~0x00000004); 4008 relations_ = java.util.Collections.emptyList(); 4009 bitField0_ = (bitField0_ & ~0x00000008); 4010 changesets_ = java.util.Collections.emptyList(); 4011 bitField0_ = (bitField0_ & ~0x00000010); 4012 return this; 4013 } 4014 4015 @Override 4016 public Builder clone() { 4017 return create().mergeFrom(buildPartial()); 4018 } 4019 4020 @Override 4021 public crosby.binary.Osmformat.PrimitiveGroup getDefaultInstanceForType() { 4022 return crosby.binary.Osmformat.PrimitiveGroup.getDefaultInstance(); 4023 } 4024 4025 @Override 4026 public crosby.binary.Osmformat.PrimitiveGroup build() { 4027 crosby.binary.Osmformat.PrimitiveGroup result = buildPartial(); 4028 if (!result.isInitialized()) { 4029 throw newUninitializedMessageException(result); 4030 } 4031 return result; 4032 } 4033 4034 @Override 4035 public crosby.binary.Osmformat.PrimitiveGroup buildPartial() { 4036 crosby.binary.Osmformat.PrimitiveGroup result = new crosby.binary.Osmformat.PrimitiveGroup(this); 4037 int from_bitField0_ = bitField0_; 4038 int to_bitField0_ = 0; 4039 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4040 nodes_ = java.util.Collections.unmodifiableList(nodes_); 4041 bitField0_ = (bitField0_ & ~0x00000001); 4042 } 4043 result.nodes_ = nodes_; 4044 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 4045 to_bitField0_ |= 0x00000001; 4046 } 4047 result.dense_ = dense_; 4048 if (((bitField0_ & 0x00000004) == 0x00000004)) { 4049 ways_ = java.util.Collections.unmodifiableList(ways_); 4050 bitField0_ = (bitField0_ & ~0x00000004); 4051 } 4052 result.ways_ = ways_; 4053 if (((bitField0_ & 0x00000008) == 0x00000008)) { 4054 relations_ = java.util.Collections.unmodifiableList(relations_); 4055 bitField0_ = (bitField0_ & ~0x00000008); 4056 } 4057 result.relations_ = relations_; 4058 if (((bitField0_ & 0x00000010) == 0x00000010)) { 4059 changesets_ = java.util.Collections.unmodifiableList(changesets_); 4060 bitField0_ = (bitField0_ & ~0x00000010); 4061 } 4062 result.changesets_ = changesets_; 4063 result.bitField0_ = to_bitField0_; 4064 return result; 4065 } 4066 4067 @Override 4068 public Builder mergeFrom(crosby.binary.Osmformat.PrimitiveGroup other) { 4069 if (other == crosby.binary.Osmformat.PrimitiveGroup.getDefaultInstance()) return this; 4070 if (!other.nodes_.isEmpty()) { 4071 if (nodes_.isEmpty()) { 4072 nodes_ = other.nodes_; 4073 bitField0_ = (bitField0_ & ~0x00000001); 4074 } else { 4075 ensureNodesIsMutable(); 4076 nodes_.addAll(other.nodes_); 4077 } 4078 4079 } 4080 if (other.hasDense()) { 4081 mergeDense(other.getDense()); 4082 } 4083 if (!other.ways_.isEmpty()) { 4084 if (ways_.isEmpty()) { 4085 ways_ = other.ways_; 4086 bitField0_ = (bitField0_ & ~0x00000004); 4087 } else { 4088 ensureWaysIsMutable(); 4089 ways_.addAll(other.ways_); 4090 } 4091 4092 } 4093 if (!other.relations_.isEmpty()) { 4094 if (relations_.isEmpty()) { 4095 relations_ = other.relations_; 4096 bitField0_ = (bitField0_ & ~0x00000008); 4097 } else { 4098 ensureRelationsIsMutable(); 4099 relations_.addAll(other.relations_); 4100 } 4101 4102 } 4103 if (!other.changesets_.isEmpty()) { 4104 if (changesets_.isEmpty()) { 4105 changesets_ = other.changesets_; 4106 bitField0_ = (bitField0_ & ~0x00000010); 4107 } else { 4108 ensureChangesetsIsMutable(); 4109 changesets_.addAll(other.changesets_); 4110 } 4111 4112 } 4113 setUnknownFields( 4114 getUnknownFields().concat(other.unknownFields)); 4115 return this; 4116 } 4117 4118 @Override 4119 public final boolean isInitialized() { 4120 for (int i = 0; i < getNodesCount(); i++) { 4121 if (!getNodes(i).isInitialized()) { 4122 4123 return false; 4124 } 4125 } 4126 for (int i = 0; i < getWaysCount(); i++) { 4127 if (!getWays(i).isInitialized()) { 4128 4129 return false; 4130 } 4131 } 4132 for (int i = 0; i < getRelationsCount(); i++) { 4133 if (!getRelations(i).isInitialized()) { 4134 4135 return false; 4136 } 4137 } 4138 for (int i = 0; i < getChangesetsCount(); i++) { 4139 if (!getChangesets(i).isInitialized()) { 4140 4141 return false; 4142 } 4143 } 4144 return true; 4145 } 4146 4147 @Override 4148 public Builder mergeFrom( 4149 com.google.protobuf.CodedInputStream input, 4150 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4151 throws java.io.IOException { 4152 crosby.binary.Osmformat.PrimitiveGroup parsedMessage = null; 4153 try { 4154 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 4155 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4156 parsedMessage = (crosby.binary.Osmformat.PrimitiveGroup) e.getUnfinishedMessage(); 4157 throw e; 4158 } finally { 4159 if (parsedMessage != null) { 4160 mergeFrom(parsedMessage); 4161 } 4162 } 4163 return this; 4164 } 4165 private int bitField0_; 4166 4167 private java.util.List<crosby.binary.Osmformat.Node> nodes_ = 4168 java.util.Collections.emptyList(); 4169 private void ensureNodesIsMutable() { 4170 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 4171 nodes_ = new java.util.ArrayList<>(nodes_); 4172 bitField0_ |= 0x00000001; 4173 } 4174 } 4037 super(DEFAULT_INSTANCE); 4038 } 4039 4175 4040 4176 4041 /** 4177 4042 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4178 4043 */ 4179 @Override4180 public java.util.List<crosby.binary.Osmformat.Node> getNodesList() { 4181 return java.util.Collections.unmodifiableList(nodes_);4044 public java.util.List<crosby.binary.Osmformat.Node> getNodesList() { 4045 return java.util.Collections.unmodifiableList( 4046 instance.getNodesList()); 4182 4047 } 4183 4048 /** 4184 4049 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4185 4050 */ 4186 @Override 4187 public int getNodesCount() { 4188 return nodes_.size(); 4189 } 4190 /** 4051 public int getNodesCount() { 4052 return instance.getNodesCount(); 4053 }/** 4191 4054 * <code>repeated .OSMPBF.Node nodes = 1;</code> 4192 4055 */ 4193 @Override 4194 public crosby.binary.Osmformat.Node getNodes(int index) { 4195 return nodes_.get(index); 4056 public crosby.binary.Osmformat.Node getNodes(int index) { 4057 return instance.getNodes(index); 4196 4058 } 4197 4059 /** … … 4200 4062 public Builder setNodes( 4201 4063 int index, crosby.binary.Osmformat.Node value) { 4202 if (value == null) { 4203 throw new NullPointerException(); 4204 } 4205 ensureNodesIsMutable(); 4206 nodes_.set(index, value); 4207 4064 copyOnWrite(); 4065 instance.setNodes(index, value); 4208 4066 return this; 4209 4067 } … … 4213 4071 public Builder setNodes( 4214 4072 int index, crosby.binary.Osmformat.Node.Builder builderForValue) { 4215 ensureNodesIsMutable(); 4216 nodes_.set(index, builderForValue.build()); 4217 4073 copyOnWrite(); 4074 instance.setNodes(index, builderForValue); 4218 4075 return this; 4219 4076 } … … 4222 4079 */ 4223 4080 public Builder addNodes(crosby.binary.Osmformat.Node value) { 4224 if (value == null) { 4225 throw new NullPointerException(); 4226 } 4227 ensureNodesIsMutable(); 4228 nodes_.add(value); 4229 4081 copyOnWrite(); 4082 instance.addNodes(value); 4230 4083 return this; 4231 4084 } … … 4235 4088 public Builder addNodes( 4236 4089 int index, crosby.binary.Osmformat.Node value) { 4237 if (value == null) { 4238 throw new NullPointerException(); 4239 } 4240 ensureNodesIsMutable(); 4241 nodes_.add(index, value); 4242 4090 copyOnWrite(); 4091 instance.addNodes(index, value); 4243 4092 return this; 4244 4093 } … … 4248 4097 public Builder addNodes( 4249 4098 crosby.binary.Osmformat.Node.Builder builderForValue) { 4250 ensureNodesIsMutable(); 4251 nodes_.add(builderForValue.build()); 4252 4099 copyOnWrite(); 4100 instance.addNodes(builderForValue); 4253 4101 return this; 4254 4102 } … … 4258 4106 public Builder addNodes( 4259 4107 int index, crosby.binary.Osmformat.Node.Builder builderForValue) { 4260 ensureNodesIsMutable(); 4261 nodes_.add(index, builderForValue.build()); 4262 4108 copyOnWrite(); 4109 instance.addNodes(index, builderForValue); 4263 4110 return this; 4264 4111 } … … 4268 4115 public Builder addAllNodes( 4269 4116 java.lang.Iterable<? extends crosby.binary.Osmformat.Node> values) { 4270 ensureNodesIsMutable(); 4271 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4272 values, nodes_); 4273 4117 copyOnWrite(); 4118 instance.addAllNodes(values); 4274 4119 return this; 4275 4120 } … … 4278 4123 */ 4279 4124 public Builder clearNodes() { 4280 nodes_ = java.util.Collections.emptyList(); 4281 bitField0_ = (bitField0_ & ~0x00000001); 4282 4125 copyOnWrite(); 4126 instance.clearNodes(); 4283 4127 return this; 4284 4128 } … … 4287 4131 */ 4288 4132 public Builder removeNodes(int index) { 4289 ensureNodesIsMutable(); 4290 nodes_.remove(index); 4291 4292 return this; 4293 } 4294 4295 private crosby.binary.Osmformat.DenseNodes dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 4133 copyOnWrite(); 4134 instance.removeNodes(index); 4135 return this; 4136 } 4137 4296 4138 /** 4297 4139 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4298 4140 */ 4299 @Override 4300 public boolean hasDense() { 4301 return ((bitField0_ & 0x00000002) == 0x00000002); 4141 public boolean hasDense() { 4142 return instance.hasDense(); 4302 4143 } 4303 4144 /** 4304 4145 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4305 4146 */ 4306 @Override 4307 public crosby.binary.Osmformat.DenseNodes getDense() { 4308 return dense_; 4147 public crosby.binary.Osmformat.DenseNodes getDense() { 4148 return instance.getDense(); 4309 4149 } 4310 4150 /** … … 4312 4152 */ 4313 4153 public Builder setDense(crosby.binary.Osmformat.DenseNodes value) { 4314 if (value == null) { 4315 throw new NullPointerException(); 4316 } 4317 dense_ = value; 4318 4319 bitField0_ |= 0x00000002; 4320 return this; 4321 } 4154 copyOnWrite(); 4155 instance.setDense(value); 4156 return this; 4157 } 4322 4158 /** 4323 4159 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> … … 4325 4161 public Builder setDense( 4326 4162 crosby.binary.Osmformat.DenseNodes.Builder builderForValue) { 4327 dense_ = builderForValue.build(); 4328 4329 bitField0_ |= 0x00000002; 4163 copyOnWrite(); 4164 instance.setDense(builderForValue); 4330 4165 return this; 4331 4166 } … … 4334 4169 */ 4335 4170 public Builder mergeDense(crosby.binary.Osmformat.DenseNodes value) { 4336 if (((bitField0_ & 0x00000002) == 0x00000002) && 4337 dense_ != crosby.binary.Osmformat.DenseNodes.getDefaultInstance()) { 4338 dense_ = 4339 crosby.binary.Osmformat.DenseNodes.newBuilder(dense_).mergeFrom(value).buildPartial(); 4340 } else { 4341 dense_ = value; 4342 } 4343 4344 bitField0_ |= 0x00000002; 4171 copyOnWrite(); 4172 instance.mergeDense(value); 4345 4173 return this; 4346 4174 } … … 4348 4176 * <code>optional .OSMPBF.DenseNodes dense = 2;</code> 4349 4177 */ 4350 public Builder clearDense() { 4351 dense_ = crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 4352 4353 bitField0_ = (bitField0_ & ~0x00000002); 4354 return this; 4355 } 4356 4357 private java.util.List<crosby.binary.Osmformat.Way> ways_ = 4358 java.util.Collections.emptyList(); 4359 private void ensureWaysIsMutable() { 4360 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 4361 ways_ = new java.util.ArrayList<>(ways_); 4362 bitField0_ |= 0x00000004; 4363 } 4178 public Builder clearDense() { copyOnWrite(); 4179 instance.clearDense(); 4180 return this; 4364 4181 } 4365 4182 … … 4367 4184 * <code>repeated .OSMPBF.Way ways = 3;</code> 4368 4185 */ 4369 @Override4370 public java.util.List<crosby.binary.Osmformat.Way> getWaysList() { 4371 return java.util.Collections.unmodifiableList(ways_);4186 public java.util.List<crosby.binary.Osmformat.Way> getWaysList() { 4187 return java.util.Collections.unmodifiableList( 4188 instance.getWaysList()); 4372 4189 } 4373 4190 /** 4374 4191 * <code>repeated .OSMPBF.Way ways = 3;</code> 4375 4192 */ 4376 @Override 4377 public int getWaysCount() { 4378 return ways_.size(); 4379 } 4380 /** 4193 public int getWaysCount() { 4194 return instance.getWaysCount(); 4195 }/** 4381 4196 * <code>repeated .OSMPBF.Way ways = 3;</code> 4382 4197 */ 4383 @Override 4384 public crosby.binary.Osmformat.Way getWays(int index) { 4385 return ways_.get(index); 4198 public crosby.binary.Osmformat.Way getWays(int index) { 4199 return instance.getWays(index); 4386 4200 } 4387 4201 /** … … 4390 4204 public Builder setWays( 4391 4205 int index, crosby.binary.Osmformat.Way value) { 4392 if (value == null) { 4393 throw new NullPointerException(); 4394 } 4395 ensureWaysIsMutable(); 4396 ways_.set(index, value); 4397 4206 copyOnWrite(); 4207 instance.setWays(index, value); 4398 4208 return this; 4399 4209 } … … 4403 4213 public Builder setWays( 4404 4214 int index, crosby.binary.Osmformat.Way.Builder builderForValue) { 4405 ensureWaysIsMutable(); 4406 ways_.set(index, builderForValue.build()); 4407 4215 copyOnWrite(); 4216 instance.setWays(index, builderForValue); 4408 4217 return this; 4409 4218 } … … 4412 4221 */ 4413 4222 public Builder addWays(crosby.binary.Osmformat.Way value) { 4414 if (value == null) { 4415 throw new NullPointerException(); 4416 } 4417 ensureWaysIsMutable(); 4418 ways_.add(value); 4419 4223 copyOnWrite(); 4224 instance.addWays(value); 4420 4225 return this; 4421 4226 } … … 4425 4230 public Builder addWays( 4426 4231 int index, crosby.binary.Osmformat.Way value) { 4427 if (value == null) { 4428 throw new NullPointerException(); 4429 } 4430 ensureWaysIsMutable(); 4431 ways_.add(index, value); 4432 4232 copyOnWrite(); 4233 instance.addWays(index, value); 4433 4234 return this; 4434 4235 } … … 4438 4239 public Builder addWays( 4439 4240 crosby.binary.Osmformat.Way.Builder builderForValue) { 4440 ensureWaysIsMutable(); 4441 ways_.add(builderForValue.build()); 4442 4241 copyOnWrite(); 4242 instance.addWays(builderForValue); 4443 4243 return this; 4444 4244 } … … 4448 4248 public Builder addWays( 4449 4249 int index, crosby.binary.Osmformat.Way.Builder builderForValue) { 4450 ensureWaysIsMutable(); 4451 ways_.add(index, builderForValue.build()); 4452 4250 copyOnWrite(); 4251 instance.addWays(index, builderForValue); 4453 4252 return this; 4454 4253 } … … 4458 4257 public Builder addAllWays( 4459 4258 java.lang.Iterable<? extends crosby.binary.Osmformat.Way> values) { 4460 ensureWaysIsMutable(); 4461 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4462 values, ways_); 4463 4259 copyOnWrite(); 4260 instance.addAllWays(values); 4464 4261 return this; 4465 4262 } … … 4468 4265 */ 4469 4266 public Builder clearWays() { 4470 ways_ = java.util.Collections.emptyList(); 4471 bitField0_ = (bitField0_ & ~0x00000004); 4472 4267 copyOnWrite(); 4268 instance.clearWays(); 4473 4269 return this; 4474 4270 } … … 4477 4273 */ 4478 4274 public Builder removeWays(int index) { 4479 ensureWaysIsMutable(); 4480 ways_.remove(index); 4481 4482 return this; 4483 } 4484 4485 private java.util.List<crosby.binary.Osmformat.Relation> relations_ = 4486 java.util.Collections.emptyList(); 4487 private void ensureRelationsIsMutable() { 4488 if (!((bitField0_ & 0x00000008) == 0x00000008)) { 4489 relations_ = new java.util.ArrayList<>(relations_); 4490 bitField0_ |= 0x00000008; 4491 } 4275 copyOnWrite(); 4276 instance.removeWays(index); 4277 return this; 4492 4278 } 4493 4279 … … 4495 4281 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4496 4282 */ 4497 @Override4498 public java.util.List<crosby.binary.Osmformat.Relation> getRelationsList() { 4499 return java.util.Collections.unmodifiableList(relations_);4283 public java.util.List<crosby.binary.Osmformat.Relation> getRelationsList() { 4284 return java.util.Collections.unmodifiableList( 4285 instance.getRelationsList()); 4500 4286 } 4501 4287 /** 4502 4288 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4503 4289 */ 4504 @Override 4505 public int getRelationsCount() { 4506 return relations_.size(); 4507 } 4508 /** 4290 public int getRelationsCount() { 4291 return instance.getRelationsCount(); 4292 }/** 4509 4293 * <code>repeated .OSMPBF.Relation relations = 4;</code> 4510 4294 */ 4511 @Override 4512 public crosby.binary.Osmformat.Relation getRelations(int index) { 4513 return relations_.get(index); 4295 public crosby.binary.Osmformat.Relation getRelations(int index) { 4296 return instance.getRelations(index); 4514 4297 } 4515 4298 /** … … 4518 4301 public Builder setRelations( 4519 4302 int index, crosby.binary.Osmformat.Relation value) { 4520 if (value == null) { 4521 throw new NullPointerException(); 4522 } 4523 ensureRelationsIsMutable(); 4524 relations_.set(index, value); 4525 4303 copyOnWrite(); 4304 instance.setRelations(index, value); 4526 4305 return this; 4527 4306 } … … 4531 4310 public Builder setRelations( 4532 4311 int index, crosby.binary.Osmformat.Relation.Builder builderForValue) { 4533 ensureRelationsIsMutable(); 4534 relations_.set(index, builderForValue.build()); 4535 4312 copyOnWrite(); 4313 instance.setRelations(index, builderForValue); 4536 4314 return this; 4537 4315 } … … 4540 4318 */ 4541 4319 public Builder addRelations(crosby.binary.Osmformat.Relation value) { 4542 if (value == null) { 4543 throw new NullPointerException(); 4544 } 4545 ensureRelationsIsMutable(); 4546 relations_.add(value); 4547 4320 copyOnWrite(); 4321 instance.addRelations(value); 4548 4322 return this; 4549 4323 } … … 4553 4327 public Builder addRelations( 4554 4328 int index, crosby.binary.Osmformat.Relation value) { 4555 if (value == null) { 4556 throw new NullPointerException(); 4557 } 4558 ensureRelationsIsMutable(); 4559 relations_.add(index, value); 4560 4329 copyOnWrite(); 4330 instance.addRelations(index, value); 4561 4331 return this; 4562 4332 } … … 4566 4336 public Builder addRelations( 4567 4337 crosby.binary.Osmformat.Relation.Builder builderForValue) { 4568 ensureRelationsIsMutable(); 4569 relations_.add(builderForValue.build()); 4570 4338 copyOnWrite(); 4339 instance.addRelations(builderForValue); 4571 4340 return this; 4572 4341 } … … 4576 4345 public Builder addRelations( 4577 4346 int index, crosby.binary.Osmformat.Relation.Builder builderForValue) { 4578 ensureRelationsIsMutable(); 4579 relations_.add(index, builderForValue.build()); 4580 4347 copyOnWrite(); 4348 instance.addRelations(index, builderForValue); 4581 4349 return this; 4582 4350 } … … 4586 4354 public Builder addAllRelations( 4587 4355 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation> values) { 4588 ensureRelationsIsMutable(); 4589 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4590 values, relations_); 4591 4356 copyOnWrite(); 4357 instance.addAllRelations(values); 4592 4358 return this; 4593 4359 } … … 4596 4362 */ 4597 4363 public Builder clearRelations() { 4598 relations_ = java.util.Collections.emptyList(); 4599 bitField0_ = (bitField0_ & ~0x00000008); 4600 4364 copyOnWrite(); 4365 instance.clearRelations(); 4601 4366 return this; 4602 4367 } … … 4605 4370 */ 4606 4371 public Builder removeRelations(int index) { 4607 ensureRelationsIsMutable(); 4608 relations_.remove(index); 4609 4610 return this; 4611 } 4612 4613 private java.util.List<crosby.binary.Osmformat.ChangeSet> changesets_ = 4614 java.util.Collections.emptyList(); 4615 private void ensureChangesetsIsMutable() { 4616 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 4617 changesets_ = new java.util.ArrayList<>(changesets_); 4618 bitField0_ |= 0x00000010; 4619 } 4372 copyOnWrite(); 4373 instance.removeRelations(index); 4374 return this; 4620 4375 } 4621 4376 … … 4623 4378 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4624 4379 */ 4625 @Override4626 public java.util.List<crosby.binary.Osmformat.ChangeSet> getChangesetsList() { 4627 return java.util.Collections.unmodifiableList(changesets_);4380 public java.util.List<crosby.binary.Osmformat.ChangeSet> getChangesetsList() { 4381 return java.util.Collections.unmodifiableList( 4382 instance.getChangesetsList()); 4628 4383 } 4629 4384 /** 4630 4385 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4631 4386 */ 4632 @Override 4633 public int getChangesetsCount() { 4634 return changesets_.size(); 4635 } 4636 /** 4387 public int getChangesetsCount() { 4388 return instance.getChangesetsCount(); 4389 }/** 4637 4390 * <code>repeated .OSMPBF.ChangeSet changesets = 5;</code> 4638 4391 */ 4639 @Override 4640 public crosby.binary.Osmformat.ChangeSet getChangesets(int index) { 4641 return changesets_.get(index); 4392 public crosby.binary.Osmformat.ChangeSet getChangesets(int index) { 4393 return instance.getChangesets(index); 4642 4394 } 4643 4395 /** … … 4646 4398 public Builder setChangesets( 4647 4399 int index, crosby.binary.Osmformat.ChangeSet value) { 4648 if (value == null) { 4649 throw new NullPointerException(); 4650 } 4651 ensureChangesetsIsMutable(); 4652 changesets_.set(index, value); 4653 4400 copyOnWrite(); 4401 instance.setChangesets(index, value); 4654 4402 return this; 4655 4403 } … … 4659 4407 public Builder setChangesets( 4660 4408 int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 4661 ensureChangesetsIsMutable(); 4662 changesets_.set(index, builderForValue.build()); 4663 4409 copyOnWrite(); 4410 instance.setChangesets(index, builderForValue); 4664 4411 return this; 4665 4412 } … … 4668 4415 */ 4669 4416 public Builder addChangesets(crosby.binary.Osmformat.ChangeSet value) { 4670 if (value == null) { 4671 throw new NullPointerException(); 4672 } 4673 ensureChangesetsIsMutable(); 4674 changesets_.add(value); 4675 4417 copyOnWrite(); 4418 instance.addChangesets(value); 4676 4419 return this; 4677 4420 } … … 4681 4424 public Builder addChangesets( 4682 4425 int index, crosby.binary.Osmformat.ChangeSet value) { 4683 if (value == null) { 4684 throw new NullPointerException(); 4685 } 4686 ensureChangesetsIsMutable(); 4687 changesets_.add(index, value); 4688 4426 copyOnWrite(); 4427 instance.addChangesets(index, value); 4689 4428 return this; 4690 4429 } … … 4694 4433 public Builder addChangesets( 4695 4434 crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 4696 ensureChangesetsIsMutable(); 4697 changesets_.add(builderForValue.build()); 4698 4435 copyOnWrite(); 4436 instance.addChangesets(builderForValue); 4699 4437 return this; 4700 4438 } … … 4704 4442 public Builder addChangesets( 4705 4443 int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) { 4706 ensureChangesetsIsMutable(); 4707 changesets_.add(index, builderForValue.build()); 4708 4444 copyOnWrite(); 4445 instance.addChangesets(index, builderForValue); 4709 4446 return this; 4710 4447 } … … 4714 4451 public Builder addAllChangesets( 4715 4452 java.lang.Iterable<? extends crosby.binary.Osmformat.ChangeSet> values) { 4716 ensureChangesetsIsMutable(); 4717 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4718 values, changesets_); 4719 4453 copyOnWrite(); 4454 instance.addAllChangesets(values); 4720 4455 return this; 4721 4456 } … … 4724 4459 */ 4725 4460 public Builder clearChangesets() { 4726 changesets_ = java.util.Collections.emptyList(); 4727 bitField0_ = (bitField0_ & ~0x00000010); 4728 4461 copyOnWrite(); 4462 instance.clearChangesets(); 4729 4463 return this; 4730 4464 } … … 4733 4467 */ 4734 4468 public Builder removeChangesets(int index) { 4735 ensureChangesetsIsMutable(); 4736 changesets_.remove(index); 4737 4469 copyOnWrite(); 4470 instance.removeChangesets(index); 4738 4471 return this; 4739 4472 } … … 4741 4474 // @@protoc_insertion_point(builder_scope:OSMPBF.PrimitiveGroup) 4742 4475 } 4743 4476 private byte memoizedIsInitialized = -1; 4477 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 4478 protected final java.lang.Object dynamicMethod( 4479 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 4480 java.lang.Object arg0, java.lang.Object arg1) { 4481 switch (method) { 4482 case NEW_MUTABLE_INSTANCE: { 4483 return new crosby.binary.Osmformat.PrimitiveGroup(); 4484 } 4485 case IS_INITIALIZED: { 4486 byte isInitialized = memoizedIsInitialized; 4487 if (isInitialized == 1) return DEFAULT_INSTANCE; 4488 if (isInitialized == 0) return null; 4489 4490 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 4491 for (int i = 0; i < getNodesCount(); i++) { 4492 if (!getNodes(i).isInitialized()) { 4493 if (shouldMemoize) { 4494 memoizedIsInitialized = 0; 4495 } 4496 return null; 4497 } 4498 } 4499 for (int i = 0; i < getWaysCount(); i++) { 4500 if (!getWays(i).isInitialized()) { 4501 if (shouldMemoize) { 4502 memoizedIsInitialized = 0; 4503 } 4504 return null; 4505 } 4506 } 4507 for (int i = 0; i < getRelationsCount(); i++) { 4508 if (!getRelations(i).isInitialized()) { 4509 if (shouldMemoize) { 4510 memoizedIsInitialized = 0; 4511 } 4512 return null; 4513 } 4514 } 4515 for (int i = 0; i < getChangesetsCount(); i++) { 4516 if (!getChangesets(i).isInitialized()) { 4517 if (shouldMemoize) { 4518 memoizedIsInitialized = 0; 4519 } 4520 return null; 4521 } 4522 } 4523 if (shouldMemoize) memoizedIsInitialized = 1; 4524 return DEFAULT_INSTANCE; 4525 4526 } 4527 case MAKE_IMMUTABLE: { 4528 nodes_.makeImmutable(); 4529 ways_.makeImmutable(); 4530 relations_.makeImmutable(); 4531 changesets_.makeImmutable(); 4532 return null; 4533 } 4534 case NEW_BUILDER: { 4535 return new Builder(); 4536 } 4537 case VISIT: { 4538 Visitor visitor = (Visitor) arg0; 4539 crosby.binary.Osmformat.PrimitiveGroup other = (crosby.binary.Osmformat.PrimitiveGroup) arg1; 4540 nodes_= visitor.visitList(nodes_, other.nodes_); 4541 dense_ = visitor.visitMessage(dense_, other.dense_); 4542 ways_= visitor.visitList(ways_, other.ways_); 4543 relations_= visitor.visitList(relations_, other.relations_); 4544 changesets_= visitor.visitList(changesets_, other.changesets_); 4545 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 4546 .INSTANCE) { 4547 bitField0_ |= other.bitField0_; 4548 } 4549 return this; 4550 } 4551 case MERGE_FROM_STREAM: { 4552 com.google.protobuf.CodedInputStream input = 4553 (com.google.protobuf.CodedInputStream) arg0; 4554 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 4555 (com.google.protobuf.ExtensionRegistryLite) arg1; 4556 try { 4557 boolean done = false; 4558 while (!done) { 4559 int tag = input.readTag(); 4560 switch (tag) { 4561 case 0: 4562 done = true; 4563 break; 4564 default: { 4565 if (!parseUnknownField(tag, input)) { 4566 done = true; 4567 } 4568 break; 4569 } 4570 case 10: { 4571 if (!nodes_.isModifiable()) { 4572 nodes_ = 4573 com.google.protobuf.GeneratedMessageLite.mutableCopy(nodes_); 4574 } 4575 nodes_.add( 4576 input.readMessage(crosby.binary.Osmformat.Node.parser(), extensionRegistry)); 4577 break; 4578 } 4579 case 18: { 4580 crosby.binary.Osmformat.DenseNodes.Builder subBuilder = null; 4581 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4582 subBuilder = dense_.toBuilder(); 4583 } 4584 dense_ = input.readMessage(crosby.binary.Osmformat.DenseNodes.parser(), extensionRegistry); 4585 if (subBuilder != null) { 4586 subBuilder.mergeFrom(dense_); 4587 dense_ = subBuilder.buildPartial(); 4588 } 4589 bitField0_ |= 0x00000001; 4590 break; 4591 } 4592 case 26: { 4593 if (!ways_.isModifiable()) { 4594 ways_ = 4595 com.google.protobuf.GeneratedMessageLite.mutableCopy(ways_); 4596 } 4597 ways_.add( 4598 input.readMessage(crosby.binary.Osmformat.Way.parser(), extensionRegistry)); 4599 break; 4600 } 4601 case 34: { 4602 if (!relations_.isModifiable()) { 4603 relations_ = 4604 com.google.protobuf.GeneratedMessageLite.mutableCopy(relations_); 4605 } 4606 relations_.add( 4607 input.readMessage(crosby.binary.Osmformat.Relation.parser(), extensionRegistry)); 4608 break; 4609 } 4610 case 42: { 4611 if (!changesets_.isModifiable()) { 4612 changesets_ = 4613 com.google.protobuf.GeneratedMessageLite.mutableCopy(changesets_); 4614 } 4615 changesets_.add( 4616 input.readMessage(crosby.binary.Osmformat.ChangeSet.parser(), extensionRegistry)); 4617 break; 4618 } 4619 } 4620 } 4621 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4622 throw new RuntimeException(e.setUnfinishedMessage(this)); 4623 } catch (java.io.IOException e) { 4624 throw new RuntimeException( 4625 new com.google.protobuf.InvalidProtocolBufferException( 4626 e.getMessage()).setUnfinishedMessage(this)); 4627 } finally { 4628 } 4629 } 4630 // fall through 4631 case GET_DEFAULT_INSTANCE: { 4632 return DEFAULT_INSTANCE; 4633 } 4634 case GET_PARSER: { 4635 if (PARSER == null) { synchronized (crosby.binary.Osmformat.PrimitiveGroup.class) { 4636 if (PARSER == null) { 4637 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 4638 } 4639 } 4640 } 4641 return PARSER; 4642 } 4643 } 4644 throw new UnsupportedOperationException(); 4645 } 4646 4647 4648 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveGroup) 4649 private static final crosby.binary.Osmformat.PrimitiveGroup DEFAULT_INSTANCE; 4744 4650 static { 4745 defaultInstance = new PrimitiveGroup(true); 4746 defaultInstance.initFields(); 4747 } 4748 4749 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveGroup) 4651 DEFAULT_INSTANCE = new PrimitiveGroup(); 4652 DEFAULT_INSTANCE.makeImmutable(); 4653 } 4654 4655 public static crosby.binary.Osmformat.PrimitiveGroup getDefaultInstance() { 4656 return DEFAULT_INSTANCE; 4657 } 4658 4659 private static volatile com.google.protobuf.Parser<PrimitiveGroup> PARSER; 4660 4661 public static com.google.protobuf.Parser<PrimitiveGroup> parser() { 4662 return DEFAULT_INSTANCE.getParserForType(); 4663 } 4750 4664 } 4751 4665 … … 4768 4682 } 4769 4683 /** 4770 * Protobuf type {@code OSMPBF.StringTable}4771 *4772 4684 * <pre> 4773 4685 ** String table, contains the common strings in each block. … … 4775 4687 *index in the table is ALWAYS blank and unused. 4776 4688 * </pre> 4689 * 4690 * Protobuf type {@code OSMPBF.StringTable} 4777 4691 */ 4778 public static final class StringTable extends 4779 com.google.protobuf.GeneratedMessageLite implements 4692 public static final class StringTable extends 4693 com.google.protobuf.GeneratedMessageLite< 4694 StringTable, StringTable.Builder> implements 4780 4695 // @@protoc_insertion_point(message_implements:OSMPBF.StringTable) 4781 4696 StringTableOrBuilder { 4782 // Use StringTable.newBuilder() to construct. 4783 private StringTable(com.google.protobuf.GeneratedMessageLite.Builder builder) { 4784 super(builder); 4785 this.unknownFields = builder.getUnknownFields(); 4786 } 4787 private StringTable(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 4788 4789 private static final StringTable defaultInstance; 4790 public static StringTable getDefaultInstance() { 4791 return defaultInstance; 4792 } 4793 4794 @Override 4795 public StringTable getDefaultInstanceForType() { 4796 return defaultInstance; 4797 } 4798 4799 private final com.google.protobuf.ByteString unknownFields; 4800 private StringTable( 4801 com.google.protobuf.CodedInputStream input, 4802 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4803 throws com.google.protobuf.InvalidProtocolBufferException { 4804 initFields(); 4805 int mutable_bitField0_ = 0; 4806 com.google.protobuf.ByteString.Output unknownFieldsOutput = 4807 com.google.protobuf.ByteString.newOutput(); 4808 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 4809 com.google.protobuf.CodedOutputStream.newInstance( 4810 unknownFieldsOutput); 4811 try { 4812 boolean done = false; 4813 while (!done) { 4814 int tag = input.readTag(); 4815 switch (tag) { 4816 case 0: 4817 done = true; 4818 break; 4819 default: { 4820 if (!parseUnknownField(input, unknownFieldsCodedOutput, 4821 extensionRegistry, tag)) { 4822 done = true; 4823 } 4824 break; 4825 } 4826 case 10: { 4827 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 4828 s_ = new java.util.ArrayList<>(); 4829 mutable_bitField0_ |= 0x00000001; 4830 } 4831 s_.add(input.readBytes()); 4832 break; 4833 } 4834 } 4835 } 4836 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4837 throw e.setUnfinishedMessage(this); 4838 } catch (java.io.IOException e) { 4839 throw new com.google.protobuf.InvalidProtocolBufferException( 4840 e.getMessage()).setUnfinishedMessage(this); 4841 } finally { 4842 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 4843 s_ = java.util.Collections.unmodifiableList(s_); 4844 } 4845 try { 4846 unknownFieldsCodedOutput.flush(); 4847 } catch (java.io.IOException e) { 4848 // Should not happen 4849 } finally { 4850 unknownFields = unknownFieldsOutput.toByteString(); 4851 } 4852 makeExtensionsImmutable(); 4853 } 4854 } 4855 public static com.google.protobuf.Parser<StringTable> PARSER = 4856 new com.google.protobuf.AbstractParser<StringTable>() { 4857 @Override 4858 public StringTable parsePartialFrom( 4859 com.google.protobuf.CodedInputStream input, 4860 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4861 throws com.google.protobuf.InvalidProtocolBufferException { 4862 return new StringTable(input, extensionRegistry); 4863 } 4864 }; 4865 4866 @java.lang.Override 4867 public com.google.protobuf.Parser<StringTable> getParserForType() { 4868 return PARSER; 4869 } 4870 4697 private StringTable() { 4698 s_ = emptyProtobufList(); 4699 } 4871 4700 public static final int S_FIELD_NUMBER = 1; 4872 private java.util.List<com.google.protobuf.ByteString> s_;4701 private com.google.protobuf.Internal.ProtobufList<com.google.protobuf.ByteString> s_; 4873 4702 /** 4874 4703 * <code>repeated bytes s = 1;</code> 4875 4704 */ 4876 @Override 4877 public java.util.List<com.google.protobuf.ByteString> 4705 public java.util.List<com.google.protobuf.ByteString> 4878 4706 getSList() { 4879 4707 return s_; … … 4882 4710 * <code>repeated bytes s = 1;</code> 4883 4711 */ 4884 @Override 4885 public int getSCount() { 4712 public int getSCount() { 4886 4713 return s_.size(); 4887 4714 } … … 4889 4716 * <code>repeated bytes s = 1;</code> 4890 4717 */ 4891 @Override 4892 public com.google.protobuf.ByteString getS(int index) { 4718 public com.google.protobuf.ByteString getS(int index) { 4893 4719 return s_.get(index); 4894 4720 } 4895 4896 private void initFields() { 4897 s_ = java.util.Collections.emptyList(); 4898 } 4899 private byte memoizedIsInitialized = -1; 4900 @Override 4901 public final boolean isInitialized() { 4902 byte isInitialized = memoizedIsInitialized; 4903 if (isInitialized == 1) return true; 4904 if (isInitialized == 0) return false; 4905 4906 memoizedIsInitialized = 1; 4907 return true; 4908 } 4909 4910 @Override 4911 public void writeTo(com.google.protobuf.CodedOutputStream output) 4721 private void ensureSIsMutable() { 4722 if (!s_.isModifiable()) { 4723 s_ = 4724 com.google.protobuf.GeneratedMessageLite.mutableCopy(s_); 4725 } 4726 } 4727 /** 4728 * <code>repeated bytes s = 1;</code> 4729 */ 4730 private void setS( 4731 int index, com.google.protobuf.ByteString value) { 4732 if (value == null) { 4733 throw new NullPointerException(); 4734 } 4735 ensureSIsMutable(); 4736 s_.set(index, value); 4737 } 4738 /** 4739 * <code>repeated bytes s = 1;</code> 4740 */ 4741 private void addS(com.google.protobuf.ByteString value) { 4742 if (value == null) { 4743 throw new NullPointerException(); 4744 } 4745 ensureSIsMutable(); 4746 s_.add(value); 4747 } 4748 /** 4749 * <code>repeated bytes s = 1;</code> 4750 */ 4751 private void addAllS( 4752 java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { 4753 ensureSIsMutable(); 4754 com.google.protobuf.AbstractMessageLite.addAll( 4755 values, s_); 4756 } 4757 /** 4758 * <code>repeated bytes s = 1;</code> 4759 */ 4760 private void clearS() { 4761 s_ = emptyProtobufList(); 4762 } 4763 4764 public void writeTo(com.google.protobuf.CodedOutputStream output) 4912 4765 throws java.io.IOException { 4913 getSerializedSize();4914 4766 for (int i = 0; i < s_.size(); i++) { 4915 4767 output.writeBytes(1, s_.get(i)); 4916 4768 } 4917 output.writeRawBytes(unknownFields); 4918 } 4919 4920 private int memoizedSerializedSize = -1; 4921 @Override 4922 public int getSerializedSize() { 4769 unknownFields.writeTo(output); 4770 } 4771 4772 public int getSerializedSize() { 4923 4773 int size = memoizedSerializedSize; 4924 4774 if (size != -1) return size; … … 4934 4784 size += 1 * getSList().size(); 4935 4785 } 4936 size += unknownFields. size();4786 size += unknownFields.getSerializedSize(); 4937 4787 memoizedSerializedSize = size; 4938 4788 return size; 4939 4789 } 4940 4790 4941 private static final long serialVersionUID = 0L; 4942 @java.lang.Override 4943 protected java.lang.Object writeReplace() 4944 throws java.io.ObjectStreamException { 4945 return super.writeReplace(); 4946 } 4947 4791 public static crosby.binary.Osmformat.StringTable parseFrom( 4792 java.nio.ByteBuffer data) 4793 throws com.google.protobuf.InvalidProtocolBufferException { 4794 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4795 DEFAULT_INSTANCE, data); 4796 } 4797 public static crosby.binary.Osmformat.StringTable parseFrom( 4798 java.nio.ByteBuffer data, 4799 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4800 throws com.google.protobuf.InvalidProtocolBufferException { 4801 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4802 DEFAULT_INSTANCE, data, extensionRegistry); 4803 } 4948 4804 public static crosby.binary.Osmformat.StringTable parseFrom( 4949 4805 com.google.protobuf.ByteString data) 4950 4806 throws com.google.protobuf.InvalidProtocolBufferException { 4951 return PARSER.parseFrom(data); 4807 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4808 DEFAULT_INSTANCE, data); 4952 4809 } 4953 4810 public static crosby.binary.Osmformat.StringTable parseFrom( … … 4955 4812 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4956 4813 throws com.google.protobuf.InvalidProtocolBufferException { 4957 return PARSER.parseFrom(data, extensionRegistry); 4814 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4815 DEFAULT_INSTANCE, data, extensionRegistry); 4958 4816 } 4959 4817 public static crosby.binary.Osmformat.StringTable parseFrom(byte[] data) 4960 4818 throws com.google.protobuf.InvalidProtocolBufferException { 4961 return PARSER.parseFrom(data); 4819 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4820 DEFAULT_INSTANCE, data); 4962 4821 } 4963 4822 public static crosby.binary.Osmformat.StringTable parseFrom( … … 4965 4824 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4966 4825 throws com.google.protobuf.InvalidProtocolBufferException { 4967 return PARSER.parseFrom(data, extensionRegistry); 4826 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4827 DEFAULT_INSTANCE, data, extensionRegistry); 4968 4828 } 4969 4829 public static crosby.binary.Osmformat.StringTable parseFrom(java.io.InputStream input) 4970 4830 throws java.io.IOException { 4971 return PARSER.parseFrom(input); 4831 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4832 DEFAULT_INSTANCE, input); 4972 4833 } 4973 4834 public static crosby.binary.Osmformat.StringTable parseFrom( … … 4975 4836 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4976 4837 throws java.io.IOException { 4977 return PARSER.parseFrom(input, extensionRegistry); 4838 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4839 DEFAULT_INSTANCE, input, extensionRegistry); 4978 4840 } 4979 4841 public static crosby.binary.Osmformat.StringTable parseDelimitedFrom(java.io.InputStream input) 4980 4842 throws java.io.IOException { 4981 return PARSER.parseDelimitedFrom(input);4843 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 4982 4844 } 4983 4845 public static crosby.binary.Osmformat.StringTable parseDelimitedFrom( … … 4985 4847 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4986 4848 throws java.io.IOException { 4987 return PARSER.parseDelimitedFrom(input, extensionRegistry);4849 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 4988 4850 } 4989 4851 public static crosby.binary.Osmformat.StringTable parseFrom( 4990 4852 com.google.protobuf.CodedInputStream input) 4991 4853 throws java.io.IOException { 4992 return PARSER.parseFrom(input); 4854 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4855 DEFAULT_INSTANCE, input); 4993 4856 } 4994 4857 public static crosby.binary.Osmformat.StringTable parseFrom( … … 4996 4859 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4997 4860 throws java.io.IOException { 4998 return PARSER.parseFrom(input, extensionRegistry); 4999 } 5000 5001 public static Builder newBuilder() { return Builder.create(); } 5002 @Override 5003 public Builder newBuilderForType() { return newBuilder(); } 4861 return com.google.protobuf.GeneratedMessageLite.parseFrom( 4862 DEFAULT_INSTANCE, input, extensionRegistry); 4863 } 4864 4865 public static Builder newBuilder() { 4866 return DEFAULT_INSTANCE.toBuilder(); 4867 } 5004 4868 public static Builder newBuilder(crosby.binary.Osmformat.StringTable prototype) { 5005 return newBuilder().mergeFrom(prototype); 5006 } 5007 @Override 5008 public Builder toBuilder() { return newBuilder(this); } 5009 5010 /** 5011 * Protobuf type {@code OSMPBF.StringTable} 5012 * 4869 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 4870 } 4871 4872 /** 5013 4873 * <pre> 5014 4874 ** String table, contains the common strings in each block. … … 5016 4876 *index in the table is ALWAYS blank and unused. 5017 4877 * </pre> 4878 * 4879 * Protobuf type {@code OSMPBF.StringTable} 5018 4880 */ 5019 4881 public static final class Builder extends 5020 4882 com.google.protobuf.GeneratedMessageLite.Builder< 5021 crosby.binary.Osmformat.StringTable, Builder> 5022 implements 4883 crosby.binary.Osmformat.StringTable, Builder> implements 5023 4884 // @@protoc_insertion_point(builder_implements:OSMPBF.StringTable) 5024 4885 crosby.binary.Osmformat.StringTableOrBuilder { 5025 4886 // Construct using crosby.binary.Osmformat.StringTable.newBuilder() 5026 4887 private Builder() { 5027 maybeForceBuilderInitialization(); 5028 } 5029 5030 private void maybeForceBuilderInitialization() { 5031 } 5032 private static Builder create() { 5033 return new Builder(); 5034 } 5035 5036 @Override 5037 public Builder clear() { 5038 super.clear(); 5039 s_ = java.util.Collections.emptyList(); 5040 bitField0_ = (bitField0_ & ~0x00000001); 5041 return this; 5042 } 5043 5044 @Override 5045 public Builder clone() { 5046 return create().mergeFrom(buildPartial()); 5047 } 5048 5049 @Override 5050 public crosby.binary.Osmformat.StringTable getDefaultInstanceForType() { 5051 return crosby.binary.Osmformat.StringTable.getDefaultInstance(); 5052 } 5053 5054 @Override 5055 public crosby.binary.Osmformat.StringTable build() { 5056 crosby.binary.Osmformat.StringTable result = buildPartial(); 5057 if (!result.isInitialized()) { 5058 throw newUninitializedMessageException(result); 5059 } 5060 return result; 5061 } 5062 5063 @Override 5064 public crosby.binary.Osmformat.StringTable buildPartial() { 5065 crosby.binary.Osmformat.StringTable result = new crosby.binary.Osmformat.StringTable(this); 5066 int from_bitField0_ = bitField0_; 5067 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5068 s_ = java.util.Collections.unmodifiableList(s_); 5069 bitField0_ = (bitField0_ & ~0x00000001); 5070 } 5071 result.s_ = s_; 5072 return result; 5073 } 5074 5075 @Override 5076 public Builder mergeFrom(crosby.binary.Osmformat.StringTable other) { 5077 if (other == crosby.binary.Osmformat.StringTable.getDefaultInstance()) return this; 5078 if (!other.s_.isEmpty()) { 5079 if (s_.isEmpty()) { 5080 s_ = other.s_; 5081 bitField0_ = (bitField0_ & ~0x00000001); 5082 } else { 5083 ensureSIsMutable(); 5084 s_.addAll(other.s_); 5085 } 5086 5087 } 5088 setUnknownFields( 5089 getUnknownFields().concat(other.unknownFields)); 5090 return this; 5091 } 5092 5093 @Override 5094 public final boolean isInitialized() { 5095 return true; 5096 } 5097 5098 @Override 5099 public Builder mergeFrom( 5100 com.google.protobuf.CodedInputStream input, 5101 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5102 throws java.io.IOException { 5103 crosby.binary.Osmformat.StringTable parsedMessage = null; 5104 try { 5105 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5106 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5107 parsedMessage = (crosby.binary.Osmformat.StringTable) e.getUnfinishedMessage(); 5108 throw e; 5109 } finally { 5110 if (parsedMessage != null) { 5111 mergeFrom(parsedMessage); 5112 } 5113 } 5114 return this; 5115 } 5116 private int bitField0_; 5117 5118 private java.util.List<com.google.protobuf.ByteString> s_ = java.util.Collections.emptyList(); 5119 private void ensureSIsMutable() { 5120 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 5121 s_ = new java.util.ArrayList<>(s_); 5122 bitField0_ |= 0x00000001; 5123 } 5124 } 4888 super(DEFAULT_INSTANCE); 4889 } 4890 4891 5125 4892 /** 5126 4893 * <code>repeated bytes s = 1;</code> 5127 4894 */ 5128 @Override 5129 public java.util.List<com.google.protobuf.ByteString> 4895 public java.util.List<com.google.protobuf.ByteString> 5130 4896 getSList() { 5131 return java.util.Collections.unmodifiableList(s_); 4897 return java.util.Collections.unmodifiableList( 4898 instance.getSList()); 5132 4899 } 5133 4900 /** 5134 4901 * <code>repeated bytes s = 1;</code> 5135 4902 */ 5136 @Override 5137 public int getSCount() { 5138 return s_.size(); 4903 public int getSCount() { 4904 return instance.getSCount(); 5139 4905 } 5140 4906 /** 5141 4907 * <code>repeated bytes s = 1;</code> 5142 4908 */ 5143 @Override 5144 public com.google.protobuf.ByteString getS(int index) { 5145 return s_.get(index); 4909 public com.google.protobuf.ByteString getS(int index) { 4910 return instance.getS(index); 5146 4911 } 5147 4912 /** … … 5150 4915 public Builder setS( 5151 4916 int index, com.google.protobuf.ByteString value) { 5152 if (value == null) { 5153 throw new NullPointerException(); 5154 } 5155 ensureSIsMutable(); 5156 s_.set(index, value); 5157 4917 copyOnWrite(); 4918 instance.setS(index, value); 5158 4919 return this; 5159 4920 } … … 5162 4923 */ 5163 4924 public Builder addS(com.google.protobuf.ByteString value) { 5164 if (value == null) { 5165 throw new NullPointerException(); 5166 } 5167 ensureSIsMutable(); 5168 s_.add(value); 5169 4925 copyOnWrite(); 4926 instance.addS(value); 5170 4927 return this; 5171 4928 } … … 5175 4932 public Builder addAllS( 5176 4933 java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { 5177 ensureSIsMutable(); 5178 com.google.protobuf.AbstractMessageLite.Builder.addAll( 5179 values, s_); 5180 4934 copyOnWrite(); 4935 instance.addAllS(values); 5181 4936 return this; 5182 4937 } … … 5185 4940 */ 5186 4941 public Builder clearS() { 5187 s_ = java.util.Collections.emptyList(); 5188 bitField0_ = (bitField0_ & ~0x00000001); 5189 4942 copyOnWrite(); 4943 instance.clearS(); 5190 4944 return this; 5191 4945 } … … 5193 4947 // @@protoc_insertion_point(builder_scope:OSMPBF.StringTable) 5194 4948 } 5195 4949 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 4950 protected final java.lang.Object dynamicMethod( 4951 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 4952 java.lang.Object arg0, java.lang.Object arg1) { 4953 switch (method) { 4954 case NEW_MUTABLE_INSTANCE: { 4955 return new crosby.binary.Osmformat.StringTable(); 4956 } 4957 case IS_INITIALIZED: { 4958 return DEFAULT_INSTANCE; 4959 } 4960 case MAKE_IMMUTABLE: { 4961 s_.makeImmutable(); 4962 return null; 4963 } 4964 case NEW_BUILDER: { 4965 return new Builder(); 4966 } 4967 case VISIT: { 4968 Visitor visitor = (Visitor) arg0; 4969 crosby.binary.Osmformat.StringTable other = (crosby.binary.Osmformat.StringTable) arg1; 4970 s_= visitor.visitList(s_, other.s_); 4971 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 4972 .INSTANCE) { 4973 } 4974 return this; 4975 } 4976 case MERGE_FROM_STREAM: { 4977 com.google.protobuf.CodedInputStream input = 4978 (com.google.protobuf.CodedInputStream) arg0; 4979 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 4980 (com.google.protobuf.ExtensionRegistryLite) arg1; 4981 try { 4982 boolean done = false; 4983 while (!done) { 4984 int tag = input.readTag(); 4985 switch (tag) { 4986 case 0: 4987 done = true; 4988 break; 4989 default: { 4990 if (!parseUnknownField(tag, input)) { 4991 done = true; 4992 } 4993 break; 4994 } 4995 case 10: { 4996 if (!s_.isModifiable()) { 4997 s_ = 4998 com.google.protobuf.GeneratedMessageLite.mutableCopy(s_); 4999 } 5000 s_.add(input.readBytes()); 5001 break; 5002 } 5003 } 5004 } 5005 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5006 throw new RuntimeException(e.setUnfinishedMessage(this)); 5007 } catch (java.io.IOException e) { 5008 throw new RuntimeException( 5009 new com.google.protobuf.InvalidProtocolBufferException( 5010 e.getMessage()).setUnfinishedMessage(this)); 5011 } finally { 5012 } 5013 } 5014 // fall through 5015 case GET_DEFAULT_INSTANCE: { 5016 return DEFAULT_INSTANCE; 5017 } 5018 case GET_PARSER: { 5019 if (PARSER == null) { synchronized (crosby.binary.Osmformat.StringTable.class) { 5020 if (PARSER == null) { 5021 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 5022 } 5023 } 5024 } 5025 return PARSER; 5026 } 5027 } 5028 throw new UnsupportedOperationException(); 5029 } 5030 5031 5032 // @@protoc_insertion_point(class_scope:OSMPBF.StringTable) 5033 private static final crosby.binary.Osmformat.StringTable DEFAULT_INSTANCE; 5196 5034 static { 5197 defaultInstance = new StringTable(true); 5198 defaultInstance.initFields(); 5199 } 5200 5201 // @@protoc_insertion_point(class_scope:OSMPBF.StringTable) 5035 DEFAULT_INSTANCE = new StringTable(); 5036 DEFAULT_INSTANCE.makeImmutable(); 5037 } 5038 5039 public static crosby.binary.Osmformat.StringTable getDefaultInstance() { 5040 return DEFAULT_INSTANCE; 5041 } 5042 5043 private static volatile com.google.protobuf.Parser<StringTable> PARSER; 5044 5045 public static com.google.protobuf.Parser<StringTable> parser() { 5046 return DEFAULT_INSTANCE.getParserForType(); 5047 } 5202 5048 } 5203 5049 … … 5243 5089 5244 5090 /** 5091 * <pre> 5092 * String IDs 5093 * </pre> 5094 * 5245 5095 * <code>optional uint32 user_sid = 5;</code> 5246 * 5096 */ 5097 boolean hasUserSid(); 5098 /** 5247 5099 * <pre> 5248 5100 * String IDs 5249 5101 * </pre> 5250 */ 5251 boolean hasUserSid(); 5252 /** 5102 * 5253 5103 * <code>optional uint32 user_sid = 5;</code> 5254 *5255 * <pre>5256 * String IDs5257 * </pre>5258 5104 */ 5259 5105 int getUserSid(); 5260 5106 5261 5107 /** 5262 * <code>optional bool visible = 6;</code>5263 *5264 5108 * <pre> 5265 5109 * The visible flag is used to store history information. It indicates that … … 5272 5116 * set. 5273 5117 * </pre> 5118 * 5119 * <code>optional bool visible = 6;</code> 5274 5120 */ 5275 5121 boolean hasVisible(); 5276 5122 /** 5277 * <code>optional bool visible = 6;</code>5278 *5279 5123 * <pre> 5280 5124 * The visible flag is used to store history information. It indicates that … … 5287 5131 * set. 5288 5132 * </pre> 5133 * 5134 * <code>optional bool visible = 6;</code> 5289 5135 */ 5290 5136 boolean getVisible(); 5291 5137 } 5292 5138 /** 5139 * <pre> 5140 * Optional metadata that may be included into each primitive. 5141 * </pre> 5142 * 5293 5143 * Protobuf type {@code OSMPBF.Info} 5294 *5295 * <pre>5296 * Optional metadata that may be included into each primitive.5297 * </pre>5298 5144 */ 5299 public static final class Info extends 5300 com.google.protobuf.GeneratedMessageLite implements 5145 public static final class Info extends 5146 com.google.protobuf.GeneratedMessageLite< 5147 Info, Info.Builder> implements 5301 5148 // @@protoc_insertion_point(message_implements:OSMPBF.Info) 5302 5149 InfoOrBuilder { 5303 // Use Info.newBuilder() to construct. 5304 private Info(com.google.protobuf.GeneratedMessageLite.Builder builder) { 5305 super(builder); 5306 this.unknownFields = builder.getUnknownFields(); 5307 } 5308 private Info(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 5309 5310 private static final Info defaultInstance; 5311 public static Info getDefaultInstance() { 5312 return defaultInstance; 5313 } 5314 5315 @Override 5316 public Info getDefaultInstanceForType() { 5317 return defaultInstance; 5318 } 5319 5320 private final com.google.protobuf.ByteString unknownFields; 5321 private Info( 5322 com.google.protobuf.CodedInputStream input, 5323 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5324 throws com.google.protobuf.InvalidProtocolBufferException { 5325 initFields(); 5326 int mutable_bitField0_ = 0; 5327 com.google.protobuf.ByteString.Output unknownFieldsOutput = 5328 com.google.protobuf.ByteString.newOutput(); 5329 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 5330 com.google.protobuf.CodedOutputStream.newInstance( 5331 unknownFieldsOutput); 5332 try { 5333 boolean done = false; 5334 while (!done) { 5335 int tag = input.readTag(); 5336 switch (tag) { 5337 case 0: 5338 done = true; 5339 break; 5340 default: { 5341 if (!parseUnknownField(input, unknownFieldsCodedOutput, 5342 extensionRegistry, tag)) { 5343 done = true; 5344 } 5345 break; 5346 } 5347 case 8: { 5348 bitField0_ |= 0x00000001; 5349 version_ = input.readInt32(); 5350 break; 5351 } 5352 case 16: { 5353 bitField0_ |= 0x00000002; 5354 timestamp_ = input.readInt64(); 5355 break; 5356 } 5357 case 24: { 5358 bitField0_ |= 0x00000004; 5359 changeset_ = input.readInt64(); 5360 break; 5361 } 5362 case 32: { 5363 bitField0_ |= 0x00000008; 5364 uid_ = input.readInt32(); 5365 break; 5366 } 5367 case 40: { 5368 bitField0_ |= 0x00000010; 5369 userSid_ = input.readUInt32(); 5370 break; 5371 } 5372 case 48: { 5373 bitField0_ |= 0x00000020; 5374 visible_ = input.readBool(); 5375 break; 5376 } 5377 } 5378 } 5379 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5380 throw e.setUnfinishedMessage(this); 5381 } catch (java.io.IOException e) { 5382 throw new com.google.protobuf.InvalidProtocolBufferException( 5383 e.getMessage()).setUnfinishedMessage(this); 5384 } finally { 5385 try { 5386 unknownFieldsCodedOutput.flush(); 5387 } catch (java.io.IOException e) { 5388 // Should not happen 5389 } finally { 5390 unknownFields = unknownFieldsOutput.toByteString(); 5391 } 5392 makeExtensionsImmutable(); 5393 } 5394 } 5395 public static com.google.protobuf.Parser<Info> PARSER = 5396 new com.google.protobuf.AbstractParser<Info>() { 5397 @Override 5398 public Info parsePartialFrom( 5399 com.google.protobuf.CodedInputStream input, 5400 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5401 throws com.google.protobuf.InvalidProtocolBufferException { 5402 return new Info(input, extensionRegistry); 5403 } 5404 }; 5405 5406 @java.lang.Override 5407 public com.google.protobuf.Parser<Info> getParserForType() { 5408 return PARSER; 5409 } 5410 5150 private Info() { 5151 version_ = -1; 5152 } 5411 5153 private int bitField0_; 5412 5154 public static final int VERSION_FIELD_NUMBER = 1; … … 5415 5157 * <code>optional int32 version = 1 [default = -1];</code> 5416 5158 */ 5417 @Override 5418 public boolean hasVersion() { 5159 public boolean hasVersion() { 5419 5160 return ((bitField0_ & 0x00000001) == 0x00000001); 5420 5161 } … … 5422 5163 * <code>optional int32 version = 1 [default = -1];</code> 5423 5164 */ 5424 @Override 5425 public int getVersion() { 5165 public int getVersion() { 5426 5166 return version_; 5167 } 5168 /** 5169 * <code>optional int32 version = 1 [default = -1];</code> 5170 */ 5171 private void setVersion(int value) { 5172 bitField0_ |= 0x00000001; 5173 version_ = value; 5174 } 5175 /** 5176 * <code>optional int32 version = 1 [default = -1];</code> 5177 */ 5178 private void clearVersion() { 5179 bitField0_ = (bitField0_ & ~0x00000001); 5180 version_ = -1; 5427 5181 } 5428 5182 … … 5432 5186 * <code>optional int64 timestamp = 2;</code> 5433 5187 */ 5434 @Override 5435 public boolean hasTimestamp() { 5188 public boolean hasTimestamp() { 5436 5189 return ((bitField0_ & 0x00000002) == 0x00000002); 5437 5190 } … … 5439 5192 * <code>optional int64 timestamp = 2;</code> 5440 5193 */ 5441 @Override 5442 public long getTimestamp() { 5194 public long getTimestamp() { 5443 5195 return timestamp_; 5196 } 5197 /** 5198 * <code>optional int64 timestamp = 2;</code> 5199 */ 5200 private void setTimestamp(long value) { 5201 bitField0_ |= 0x00000002; 5202 timestamp_ = value; 5203 } 5204 /** 5205 * <code>optional int64 timestamp = 2;</code> 5206 */ 5207 private void clearTimestamp() { 5208 bitField0_ = (bitField0_ & ~0x00000002); 5209 timestamp_ = 0L; 5444 5210 } 5445 5211 … … 5449 5215 * <code>optional int64 changeset = 3;</code> 5450 5216 */ 5451 @Override 5452 public boolean hasChangeset() { 5217 public boolean hasChangeset() { 5453 5218 return ((bitField0_ & 0x00000004) == 0x00000004); 5454 5219 } … … 5456 5221 * <code>optional int64 changeset = 3;</code> 5457 5222 */ 5458 @Override 5459 public long getChangeset() { 5223 public long getChangeset() { 5460 5224 return changeset_; 5225 } 5226 /** 5227 * <code>optional int64 changeset = 3;</code> 5228 */ 5229 private void setChangeset(long value) { 5230 bitField0_ |= 0x00000004; 5231 changeset_ = value; 5232 } 5233 /** 5234 * <code>optional int64 changeset = 3;</code> 5235 */ 5236 private void clearChangeset() { 5237 bitField0_ = (bitField0_ & ~0x00000004); 5238 changeset_ = 0L; 5461 5239 } 5462 5240 … … 5466 5244 * <code>optional int32 uid = 4;</code> 5467 5245 */ 5468 @Override 5469 public boolean hasUid() { 5246 public boolean hasUid() { 5470 5247 return ((bitField0_ & 0x00000008) == 0x00000008); 5471 5248 } … … 5473 5250 * <code>optional int32 uid = 4;</code> 5474 5251 */ 5475 @Override 5476 public int getUid() { 5252 public int getUid() { 5477 5253 return uid_; 5254 } 5255 /** 5256 * <code>optional int32 uid = 4;</code> 5257 */ 5258 private void setUid(int value) { 5259 bitField0_ |= 0x00000008; 5260 uid_ = value; 5261 } 5262 /** 5263 * <code>optional int32 uid = 4;</code> 5264 */ 5265 private void clearUid() { 5266 bitField0_ = (bitField0_ & ~0x00000008); 5267 uid_ = 0; 5478 5268 } 5479 5269 … … 5481 5271 private int userSid_; 5482 5272 /** 5273 * <pre> 5274 * String IDs 5275 * </pre> 5276 * 5483 5277 * <code>optional uint32 user_sid = 5;</code> 5484 * 5278 */ 5279 public boolean hasUserSid() { 5280 return ((bitField0_ & 0x00000010) == 0x00000010); 5281 } 5282 /** 5485 5283 * <pre> 5486 5284 * String IDs 5487 5285 * </pre> 5488 */ 5489 @Override 5490 public boolean hasUserSid() { 5491 return ((bitField0_ & 0x00000010) == 0x00000010); 5492 } 5493 /** 5286 * 5494 5287 * <code>optional uint32 user_sid = 5;</code> 5495 * 5288 */ 5289 public int getUserSid() { 5290 return userSid_; 5291 } 5292 /** 5496 5293 * <pre> 5497 5294 * String IDs 5498 5295 * </pre> 5499 */ 5500 @Override 5501 public int getUserSid() { 5502 return userSid_; 5296 * 5297 * <code>optional uint32 user_sid = 5;</code> 5298 */ 5299 private void setUserSid(int value) { 5300 bitField0_ |= 0x00000010; 5301 userSid_ = value; 5302 } 5303 /** 5304 * <pre> 5305 * String IDs 5306 * </pre> 5307 * 5308 * <code>optional uint32 user_sid = 5;</code> 5309 */ 5310 private void clearUserSid() { 5311 bitField0_ = (bitField0_ & ~0x00000010); 5312 userSid_ = 0; 5503 5313 } 5504 5314 … … 5506 5316 private boolean visible_; 5507 5317 /** 5508 * <code>optional bool visible = 6;</code>5509 *5510 5318 * <pre> 5511 5319 * The visible flag is used to store history information. It indicates that … … 5518 5326 * set. 5519 5327 * </pre> 5520 */ 5521 @Override 5522 public boolean hasVisible() { 5328 * 5329 * <code>optional bool visible = 6;</code> 5330 */ 5331 public boolean hasVisible() { 5523 5332 return ((bitField0_ & 0x00000020) == 0x00000020); 5524 5333 } 5525 5334 /** 5526 * <code>optional bool visible = 6;</code>5527 *5528 5335 * <pre> 5529 5336 * The visible flag is used to store history information. It indicates that … … 5536 5343 * set. 5537 5344 * </pre> 5538 */ 5539 @Override 5540 public boolean getVisible() { 5345 * 5346 * <code>optional bool visible = 6;</code> 5347 */ 5348 public boolean getVisible() { 5541 5349 return visible_; 5542 5350 } 5543 5544 private void initFields() { 5545 version_ = -1; 5546 timestamp_ = 0L; 5547 changeset_ = 0L; 5548 uid_ = 0; 5549 userSid_ = 0; 5351 /** 5352 * <pre> 5353 * The visible flag is used to store history information. It indicates that 5354 * the current object version has been created by a delete operation on the 5355 * OSM API. 5356 * When a writer sets this flag, it MUST add a required_features tag with 5357 * value "HistoricalInformation" to the HeaderBlock. 5358 * If this flag is not available for some object it MUST be assumed to be 5359 * true if the file has the required_features tag "HistoricalInformation" 5360 * set. 5361 * </pre> 5362 * 5363 * <code>optional bool visible = 6;</code> 5364 */ 5365 private void setVisible(boolean value) { 5366 bitField0_ |= 0x00000020; 5367 visible_ = value; 5368 } 5369 /** 5370 * <pre> 5371 * The visible flag is used to store history information. It indicates that 5372 * the current object version has been created by a delete operation on the 5373 * OSM API. 5374 * When a writer sets this flag, it MUST add a required_features tag with 5375 * value "HistoricalInformation" to the HeaderBlock. 5376 * If this flag is not available for some object it MUST be assumed to be 5377 * true if the file has the required_features tag "HistoricalInformation" 5378 * set. 5379 * </pre> 5380 * 5381 * <code>optional bool visible = 6;</code> 5382 */ 5383 private void clearVisible() { 5384 bitField0_ = (bitField0_ & ~0x00000020); 5550 5385 visible_ = false; 5551 5386 } 5552 private byte memoizedIsInitialized = -1; 5553 @Override 5554 public final boolean isInitialized() { 5555 byte isInitialized = memoizedIsInitialized; 5556 if (isInitialized == 1) return true; 5557 if (isInitialized == 0) return false; 5558 5559 memoizedIsInitialized = 1; 5560 return true; 5561 } 5562 5563 @Override 5564 public void writeTo(com.google.protobuf.CodedOutputStream output) 5387 5388 public void writeTo(com.google.protobuf.CodedOutputStream output) 5565 5389 throws java.io.IOException { 5566 getSerializedSize();5567 5390 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5568 5391 output.writeInt32(1, version_); … … 5583 5406 output.writeBool(6, visible_); 5584 5407 } 5585 output.writeRawBytes(unknownFields); 5586 } 5587 5588 private int memoizedSerializedSize = -1; 5589 @Override 5590 public int getSerializedSize() { 5408 unknownFields.writeTo(output); 5409 } 5410 5411 public int getSerializedSize() { 5591 5412 int size = memoizedSerializedSize; 5592 5413 if (size != -1) return size; … … 5617 5438 .computeBoolSize(6, visible_); 5618 5439 } 5619 size += unknownFields. size();5440 size += unknownFields.getSerializedSize(); 5620 5441 memoizedSerializedSize = size; 5621 5442 return size; 5622 5443 } 5623 5444 5624 private static final long serialVersionUID = 0L; 5625 @java.lang.Override 5626 protected java.lang.Object writeReplace() 5627 throws java.io.ObjectStreamException { 5628 return super.writeReplace(); 5629 } 5630 5445 public static crosby.binary.Osmformat.Info parseFrom( 5446 java.nio.ByteBuffer data) 5447 throws com.google.protobuf.InvalidProtocolBufferException { 5448 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5449 DEFAULT_INSTANCE, data); 5450 } 5451 public static crosby.binary.Osmformat.Info parseFrom( 5452 java.nio.ByteBuffer data, 5453 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5454 throws com.google.protobuf.InvalidProtocolBufferException { 5455 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5456 DEFAULT_INSTANCE, data, extensionRegistry); 5457 } 5631 5458 public static crosby.binary.Osmformat.Info parseFrom( 5632 5459 com.google.protobuf.ByteString data) 5633 5460 throws com.google.protobuf.InvalidProtocolBufferException { 5634 return PARSER.parseFrom(data); 5461 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5462 DEFAULT_INSTANCE, data); 5635 5463 } 5636 5464 public static crosby.binary.Osmformat.Info parseFrom( … … 5638 5466 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5639 5467 throws com.google.protobuf.InvalidProtocolBufferException { 5640 return PARSER.parseFrom(data, extensionRegistry); 5468 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5469 DEFAULT_INSTANCE, data, extensionRegistry); 5641 5470 } 5642 5471 public static crosby.binary.Osmformat.Info parseFrom(byte[] data) 5643 5472 throws com.google.protobuf.InvalidProtocolBufferException { 5644 return PARSER.parseFrom(data); 5473 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5474 DEFAULT_INSTANCE, data); 5645 5475 } 5646 5476 public static crosby.binary.Osmformat.Info parseFrom( … … 5648 5478 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5649 5479 throws com.google.protobuf.InvalidProtocolBufferException { 5650 return PARSER.parseFrom(data, extensionRegistry); 5480 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5481 DEFAULT_INSTANCE, data, extensionRegistry); 5651 5482 } 5652 5483 public static crosby.binary.Osmformat.Info parseFrom(java.io.InputStream input) 5653 5484 throws java.io.IOException { 5654 return PARSER.parseFrom(input); 5485 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5486 DEFAULT_INSTANCE, input); 5655 5487 } 5656 5488 public static crosby.binary.Osmformat.Info parseFrom( … … 5658 5490 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5659 5491 throws java.io.IOException { 5660 return PARSER.parseFrom(input, extensionRegistry); 5492 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5493 DEFAULT_INSTANCE, input, extensionRegistry); 5661 5494 } 5662 5495 public static crosby.binary.Osmformat.Info parseDelimitedFrom(java.io.InputStream input) 5663 5496 throws java.io.IOException { 5664 return PARSER.parseDelimitedFrom(input);5497 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 5665 5498 } 5666 5499 public static crosby.binary.Osmformat.Info parseDelimitedFrom( … … 5668 5501 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5669 5502 throws java.io.IOException { 5670 return PARSER.parseDelimitedFrom(input, extensionRegistry);5503 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 5671 5504 } 5672 5505 public static crosby.binary.Osmformat.Info parseFrom( 5673 5506 com.google.protobuf.CodedInputStream input) 5674 5507 throws java.io.IOException { 5675 return PARSER.parseFrom(input); 5508 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5509 DEFAULT_INSTANCE, input); 5676 5510 } 5677 5511 public static crosby.binary.Osmformat.Info parseFrom( … … 5679 5513 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5680 5514 throws java.io.IOException { 5681 return PARSER.parseFrom(input, extensionRegistry); 5682 } 5683 5684 public static Builder newBuilder() { return Builder.create(); } 5685 @Override 5686 public Builder newBuilderForType() { return newBuilder(); } 5515 return com.google.protobuf.GeneratedMessageLite.parseFrom( 5516 DEFAULT_INSTANCE, input, extensionRegistry); 5517 } 5518 5519 public static Builder newBuilder() { 5520 return DEFAULT_INSTANCE.toBuilder(); 5521 } 5687 5522 public static Builder newBuilder(crosby.binary.Osmformat.Info prototype) { 5688 return newBuilder().mergeFrom(prototype); 5689 } 5690 @Override 5691 public Builder toBuilder() { return newBuilder(this); } 5692 5693 /** 5523 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 5524 } 5525 5526 /** 5527 * <pre> 5528 * Optional metadata that may be included into each primitive. 5529 * </pre> 5530 * 5694 5531 * Protobuf type {@code OSMPBF.Info} 5695 *5696 * <pre>5697 * Optional metadata that may be included into each primitive.5698 * </pre>5699 5532 */ 5700 5533 public static final class Builder extends 5701 5534 com.google.protobuf.GeneratedMessageLite.Builder< 5702 crosby.binary.Osmformat.Info, Builder> 5703 implements 5535 crosby.binary.Osmformat.Info, Builder> implements 5704 5536 // @@protoc_insertion_point(builder_implements:OSMPBF.Info) 5705 5537 crosby.binary.Osmformat.InfoOrBuilder { 5706 5538 // Construct using crosby.binary.Osmformat.Info.newBuilder() 5707 5539 private Builder() { 5708 maybeForceBuilderInitialization(); 5709 } 5710 5711 private void maybeForceBuilderInitialization() { 5712 } 5713 private static Builder create() { 5714 return new Builder(); 5715 } 5716 5717 @Override 5718 public Builder clear() { 5719 super.clear(); 5720 version_ = -1; 5721 bitField0_ = (bitField0_ & ~0x00000001); 5722 timestamp_ = 0L; 5723 bitField0_ = (bitField0_ & ~0x00000002); 5724 changeset_ = 0L; 5725 bitField0_ = (bitField0_ & ~0x00000004); 5726 uid_ = 0; 5727 bitField0_ = (bitField0_ & ~0x00000008); 5728 userSid_ = 0; 5729 bitField0_ = (bitField0_ & ~0x00000010); 5730 visible_ = false; 5731 bitField0_ = (bitField0_ & ~0x00000020); 5732 return this; 5733 } 5734 5735 @Override 5736 public Builder clone() { 5737 return create().mergeFrom(buildPartial()); 5738 } 5739 5740 @Override 5741 public crosby.binary.Osmformat.Info getDefaultInstanceForType() { 5742 return crosby.binary.Osmformat.Info.getDefaultInstance(); 5743 } 5744 5745 @Override 5746 public crosby.binary.Osmformat.Info build() { 5747 crosby.binary.Osmformat.Info result = buildPartial(); 5748 if (!result.isInitialized()) { 5749 throw newUninitializedMessageException(result); 5750 } 5751 return result; 5752 } 5753 5754 @Override 5755 public crosby.binary.Osmformat.Info buildPartial() { 5756 crosby.binary.Osmformat.Info result = new crosby.binary.Osmformat.Info(this); 5757 int from_bitField0_ = bitField0_; 5758 int to_bitField0_ = 0; 5759 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 5760 to_bitField0_ |= 0x00000001; 5761 } 5762 result.version_ = version_; 5763 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 5764 to_bitField0_ |= 0x00000002; 5765 } 5766 result.timestamp_ = timestamp_; 5767 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 5768 to_bitField0_ |= 0x00000004; 5769 } 5770 result.changeset_ = changeset_; 5771 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 5772 to_bitField0_ |= 0x00000008; 5773 } 5774 result.uid_ = uid_; 5775 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 5776 to_bitField0_ |= 0x00000010; 5777 } 5778 result.userSid_ = userSid_; 5779 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 5780 to_bitField0_ |= 0x00000020; 5781 } 5782 result.visible_ = visible_; 5783 result.bitField0_ = to_bitField0_; 5784 return result; 5785 } 5786 5787 @Override 5788 public Builder mergeFrom(crosby.binary.Osmformat.Info other) { 5789 if (other == crosby.binary.Osmformat.Info.getDefaultInstance()) return this; 5790 if (other.hasVersion()) { 5791 setVersion(other.getVersion()); 5792 } 5793 if (other.hasTimestamp()) { 5794 setTimestamp(other.getTimestamp()); 5795 } 5796 if (other.hasChangeset()) { 5797 setChangeset(other.getChangeset()); 5798 } 5799 if (other.hasUid()) { 5800 setUid(other.getUid()); 5801 } 5802 if (other.hasUserSid()) { 5803 setUserSid(other.getUserSid()); 5804 } 5805 if (other.hasVisible()) { 5806 setVisible(other.getVisible()); 5807 } 5808 setUnknownFields( 5809 getUnknownFields().concat(other.unknownFields)); 5810 return this; 5811 } 5812 5813 @Override 5814 public final boolean isInitialized() { 5815 return true; 5816 } 5817 5818 @Override 5819 public Builder mergeFrom( 5820 com.google.protobuf.CodedInputStream input, 5821 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5822 throws java.io.IOException { 5823 crosby.binary.Osmformat.Info parsedMessage = null; 5824 try { 5825 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5826 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5827 parsedMessage = (crosby.binary.Osmformat.Info) e.getUnfinishedMessage(); 5828 throw e; 5829 } finally { 5830 if (parsedMessage != null) { 5831 mergeFrom(parsedMessage); 5832 } 5833 } 5834 return this; 5835 } 5836 private int bitField0_; 5837 5838 private int version_ = -1; 5540 super(DEFAULT_INSTANCE); 5541 } 5542 5543 5839 5544 /** 5840 5545 * <code>optional int32 version = 1 [default = -1];</code> 5841 5546 */ 5842 @Override 5843 public boolean hasVersion() { 5844 return ((bitField0_ & 0x00000001) == 0x00000001); 5547 public boolean hasVersion() { 5548 return instance.hasVersion(); 5845 5549 } 5846 5550 /** 5847 5551 * <code>optional int32 version = 1 [default = -1];</code> 5848 5552 */ 5849 @Override 5850 public int getVersion() { 5851 return version_; 5553 public int getVersion() { 5554 return instance.getVersion(); 5852 5555 } 5853 5556 /** … … 5855 5558 */ 5856 5559 public Builder setVersion(int value) { 5857 bitField0_ |= 0x00000001; 5858 version_ = value; 5859 5560 copyOnWrite(); 5561 instance.setVersion(value); 5860 5562 return this; 5861 5563 } … … 5864 5566 */ 5865 5567 public Builder clearVersion() { 5866 bitField0_ = (bitField0_ & ~0x00000001); 5867 version_ = -1; 5868 5869 return this; 5870 } 5871 5872 private long timestamp_ ; 5568 copyOnWrite(); 5569 instance.clearVersion(); 5570 return this; 5571 } 5572 5873 5573 /** 5874 5574 * <code>optional int64 timestamp = 2;</code> 5875 5575 */ 5876 @Override 5877 public boolean hasTimestamp() { 5878 return ((bitField0_ & 0x00000002) == 0x00000002); 5576 public boolean hasTimestamp() { 5577 return instance.hasTimestamp(); 5879 5578 } 5880 5579 /** 5881 5580 * <code>optional int64 timestamp = 2;</code> 5882 5581 */ 5883 @Override 5884 public long getTimestamp() { 5885 return timestamp_; 5582 public long getTimestamp() { 5583 return instance.getTimestamp(); 5886 5584 } 5887 5585 /** … … 5889 5587 */ 5890 5588 public Builder setTimestamp(long value) { 5891 bitField0_ |= 0x00000002; 5892 timestamp_ = value; 5893 5589 copyOnWrite(); 5590 instance.setTimestamp(value); 5894 5591 return this; 5895 5592 } … … 5898 5595 */ 5899 5596 public Builder clearTimestamp() { 5900 bitField0_ = (bitField0_ & ~0x00000002); 5901 timestamp_ = 0L; 5902 5903 return this; 5904 } 5905 5906 private long changeset_ ; 5597 copyOnWrite(); 5598 instance.clearTimestamp(); 5599 return this; 5600 } 5601 5907 5602 /** 5908 5603 * <code>optional int64 changeset = 3;</code> 5909 5604 */ 5910 @Override 5911 public boolean hasChangeset() { 5912 return ((bitField0_ & 0x00000004) == 0x00000004); 5605 public boolean hasChangeset() { 5606 return instance.hasChangeset(); 5913 5607 } 5914 5608 /** 5915 5609 * <code>optional int64 changeset = 3;</code> 5916 5610 */ 5917 @Override 5918 public long getChangeset() { 5919 return changeset_; 5611 public long getChangeset() { 5612 return instance.getChangeset(); 5920 5613 } 5921 5614 /** … … 5923 5616 */ 5924 5617 public Builder setChangeset(long value) { 5925 bitField0_ |= 0x00000004; 5926 changeset_ = value; 5927 5618 copyOnWrite(); 5619 instance.setChangeset(value); 5928 5620 return this; 5929 5621 } … … 5932 5624 */ 5933 5625 public Builder clearChangeset() { 5934 bitField0_ = (bitField0_ & ~0x00000004); 5935 changeset_ = 0L; 5936 5937 return this; 5938 } 5939 5940 private int uid_ ; 5626 copyOnWrite(); 5627 instance.clearChangeset(); 5628 return this; 5629 } 5630 5941 5631 /** 5942 5632 * <code>optional int32 uid = 4;</code> 5943 5633 */ 5944 @Override 5945 public boolean hasUid() { 5946 return ((bitField0_ & 0x00000008) == 0x00000008); 5634 public boolean hasUid() { 5635 return instance.hasUid(); 5947 5636 } 5948 5637 /** 5949 5638 * <code>optional int32 uid = 4;</code> 5950 5639 */ 5951 @Override 5952 public int getUid() { 5953 return uid_; 5640 public int getUid() { 5641 return instance.getUid(); 5954 5642 } 5955 5643 /** … … 5957 5645 */ 5958 5646 public Builder setUid(int value) { 5959 bitField0_ |= 0x00000008; 5960 uid_ = value; 5961 5647 copyOnWrite(); 5648 instance.setUid(value); 5962 5649 return this; 5963 5650 } … … 5966 5653 */ 5967 5654 public Builder clearUid() { 5968 bitField0_ = (bitField0_ & ~0x00000008); 5969 uid_ = 0; 5970 5971 return this; 5972 } 5973 5974 private int userSid_ ; 5975 /** 5655 copyOnWrite(); 5656 instance.clearUid(); 5657 return this; 5658 } 5659 5660 /** 5661 * <pre> 5662 * String IDs 5663 * </pre> 5664 * 5976 5665 * <code>optional uint32 user_sid = 5;</code> 5977 * 5666 */ 5667 public boolean hasUserSid() { 5668 return instance.hasUserSid(); 5669 } 5670 /** 5978 5671 * <pre> 5979 5672 * String IDs 5980 5673 * </pre> 5981 */ 5982 @Override 5983 public boolean hasUserSid() { 5984 return ((bitField0_ & 0x00000010) == 0x00000010); 5985 } 5986 /** 5674 * 5987 5675 * <code>optional uint32 user_sid = 5;</code> 5988 * 5676 */ 5677 public int getUserSid() { 5678 return instance.getUserSid(); 5679 } 5680 /** 5989 5681 * <pre> 5990 5682 * String IDs 5991 5683 * </pre> 5992 */ 5993 @Override 5994 public int getUserSid() { 5995 return userSid_; 5996 } 5997 /** 5684 * 5998 5685 * <code>optional uint32 user_sid = 5;</code> 5999 * 5686 */ 5687 public Builder setUserSid(int value) { 5688 copyOnWrite(); 5689 instance.setUserSid(value); 5690 return this; 5691 } 5692 /** 6000 5693 * <pre> 6001 5694 * String IDs 6002 5695 * </pre> 6003 */ 6004 public Builder setUserSid(int value) { 6005 bitField0_ |= 0x00000010; 6006 userSid_ = value; 6007 6008 return this; 6009 } 6010 /** 5696 * 6011 5697 * <code>optional uint32 user_sid = 5;</code> 6012 *6013 * <pre>6014 * String IDs6015 * </pre>6016 5698 */ 6017 5699 public Builder clearUserSid() { 6018 bitField0_ = (bitField0_ & ~0x00000010); 6019 userSid_ = 0; 6020 6021 return this; 6022 } 6023 6024 private boolean visible_ ; 6025 /** 6026 * <code>optional bool visible = 6;</code> 6027 * 5700 copyOnWrite(); 5701 instance.clearUserSid(); 5702 return this; 5703 } 5704 5705 /** 6028 5706 * <pre> 6029 5707 * The visible flag is used to store history information. It indicates that … … 6036 5714 * set. 6037 5715 * </pre> 6038 */ 6039 @Override 6040 public boolean hasVisible() { 6041 return ((bitField0_ & 0x00000020) == 0x00000020); 6042 } 6043 /** 5716 * 6044 5717 * <code>optional bool visible = 6;</code> 6045 * 5718 */ 5719 public boolean hasVisible() { 5720 return instance.hasVisible(); 5721 } 5722 /** 6046 5723 * <pre> 6047 5724 * The visible flag is used to store history information. It indicates that … … 6054 5731 * set. 6055 5732 * </pre> 6056 */ 6057 @Override 6058 public boolean getVisible() { 6059 return visible_; 6060 } 6061 /** 5733 * 6062 5734 * <code>optional bool visible = 6;</code> 6063 * 5735 */ 5736 public boolean getVisible() { 5737 return instance.getVisible(); 5738 } 5739 /** 6064 5740 * <pre> 6065 5741 * The visible flag is used to store history information. It indicates that … … 6072 5748 * set. 6073 5749 * </pre> 5750 * 5751 * <code>optional bool visible = 6;</code> 6074 5752 */ 6075 5753 public Builder setVisible(boolean value) { 6076 bitField0_ |= 0x00000020; 6077 visible_ = value; 6078 6079 return this; 6080 } 6081 /** 6082 * <code>optional bool visible = 6;</code> 6083 * 5754 copyOnWrite(); 5755 instance.setVisible(value); 5756 return this; 5757 } 5758 /** 6084 5759 * <pre> 6085 5760 * The visible flag is used to store history information. It indicates that … … 6092 5767 * set. 6093 5768 * </pre> 5769 * 5770 * <code>optional bool visible = 6;</code> 6094 5771 */ 6095 5772 public Builder clearVisible() { 6096 bitField0_ = (bitField0_ & ~0x00000020); 6097 visible_ = false; 6098 5773 copyOnWrite(); 5774 instance.clearVisible(); 6099 5775 return this; 6100 5776 } … … 6102 5778 // @@protoc_insertion_point(builder_scope:OSMPBF.Info) 6103 5779 } 6104 5780 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 5781 protected final java.lang.Object dynamicMethod( 5782 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 5783 java.lang.Object arg0, java.lang.Object arg1) { 5784 switch (method) { 5785 case NEW_MUTABLE_INSTANCE: { 5786 return new crosby.binary.Osmformat.Info(); 5787 } 5788 case IS_INITIALIZED: { 5789 return DEFAULT_INSTANCE; 5790 } 5791 case MAKE_IMMUTABLE: { 5792 return null; 5793 } 5794 case NEW_BUILDER: { 5795 return new Builder(); 5796 } 5797 case VISIT: { 5798 Visitor visitor = (Visitor) arg0; 5799 crosby.binary.Osmformat.Info other = (crosby.binary.Osmformat.Info) arg1; 5800 version_ = visitor.visitInt( 5801 hasVersion(), version_, 5802 other.hasVersion(), other.version_); 5803 timestamp_ = visitor.visitLong( 5804 hasTimestamp(), timestamp_, 5805 other.hasTimestamp(), other.timestamp_); 5806 changeset_ = visitor.visitLong( 5807 hasChangeset(), changeset_, 5808 other.hasChangeset(), other.changeset_); 5809 uid_ = visitor.visitInt( 5810 hasUid(), uid_, 5811 other.hasUid(), other.uid_); 5812 userSid_ = visitor.visitInt( 5813 hasUserSid(), userSid_, 5814 other.hasUserSid(), other.userSid_); 5815 visible_ = visitor.visitBoolean( 5816 hasVisible(), visible_, 5817 other.hasVisible(), other.visible_); 5818 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 5819 .INSTANCE) { 5820 bitField0_ |= other.bitField0_; 5821 } 5822 return this; 5823 } 5824 case MERGE_FROM_STREAM: { 5825 com.google.protobuf.CodedInputStream input = 5826 (com.google.protobuf.CodedInputStream) arg0; 5827 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 5828 (com.google.protobuf.ExtensionRegistryLite) arg1; 5829 try { 5830 boolean done = false; 5831 while (!done) { 5832 int tag = input.readTag(); 5833 switch (tag) { 5834 case 0: 5835 done = true; 5836 break; 5837 default: { 5838 if (!parseUnknownField(tag, input)) { 5839 done = true; 5840 } 5841 break; 5842 } 5843 case 8: { 5844 bitField0_ |= 0x00000001; 5845 version_ = input.readInt32(); 5846 break; 5847 } 5848 case 16: { 5849 bitField0_ |= 0x00000002; 5850 timestamp_ = input.readInt64(); 5851 break; 5852 } 5853 case 24: { 5854 bitField0_ |= 0x00000004; 5855 changeset_ = input.readInt64(); 5856 break; 5857 } 5858 case 32: { 5859 bitField0_ |= 0x00000008; 5860 uid_ = input.readInt32(); 5861 break; 5862 } 5863 case 40: { 5864 bitField0_ |= 0x00000010; 5865 userSid_ = input.readUInt32(); 5866 break; 5867 } 5868 case 48: { 5869 bitField0_ |= 0x00000020; 5870 visible_ = input.readBool(); 5871 break; 5872 } 5873 } 5874 } 5875 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5876 throw new RuntimeException(e.setUnfinishedMessage(this)); 5877 } catch (java.io.IOException e) { 5878 throw new RuntimeException( 5879 new com.google.protobuf.InvalidProtocolBufferException( 5880 e.getMessage()).setUnfinishedMessage(this)); 5881 } finally { 5882 } 5883 } 5884 // fall through 5885 case GET_DEFAULT_INSTANCE: { 5886 return DEFAULT_INSTANCE; 5887 } 5888 case GET_PARSER: { 5889 if (PARSER == null) { synchronized (crosby.binary.Osmformat.Info.class) { 5890 if (PARSER == null) { 5891 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 5892 } 5893 } 5894 } 5895 return PARSER; 5896 } 5897 } 5898 throw new UnsupportedOperationException(); 5899 } 5900 5901 5902 // @@protoc_insertion_point(class_scope:OSMPBF.Info) 5903 private static final crosby.binary.Osmformat.Info DEFAULT_INSTANCE; 6105 5904 static { 6106 defaultInstance = new Info(true); 6107 defaultInstance.initFields(); 6108 } 6109 6110 // @@protoc_insertion_point(class_scope:OSMPBF.Info) 5905 DEFAULT_INSTANCE = new Info(); 5906 DEFAULT_INSTANCE.makeImmutable(); 5907 } 5908 5909 public static crosby.binary.Osmformat.Info getDefaultInstance() { 5910 return DEFAULT_INSTANCE; 5911 } 5912 5913 private static volatile com.google.protobuf.Parser<Info> PARSER; 5914 5915 public static com.google.protobuf.Parser<Info> parser() { 5916 return DEFAULT_INSTANCE.getParserForType(); 5917 } 6111 5918 } 6112 5919 … … 6129 5936 6130 5937 /** 5938 * <pre> 5939 * DELTA coded 5940 * </pre> 5941 * 6131 5942 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6132 * 5943 */ 5944 java.util.List<java.lang.Long> getTimestampList(); 5945 /** 6133 5946 * <pre> 6134 5947 * DELTA coded 6135 5948 * </pre> 6136 */ 6137 java.util.List<java.lang.Long> getTimestampList(); 6138 /** 5949 * 6139 5950 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6140 * 5951 */ 5952 int getTimestampCount(); 5953 /** 6141 5954 * <pre> 6142 5955 * DELTA coded 6143 5956 * </pre> 6144 */ 6145 int getTimestampCount(); 6146 /** 5957 * 6147 5958 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6148 * 5959 */ 5960 long getTimestamp(int index); 5961 5962 /** 6149 5963 * <pre> 6150 5964 * DELTA coded 6151 5965 * </pre> 6152 */ 6153 long getTimestamp(int index); 6154 6155 /** 5966 * 6156 5967 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6157 * 5968 */ 5969 java.util.List<java.lang.Long> getChangesetList(); 5970 /** 6158 5971 * <pre> 6159 5972 * DELTA coded 6160 5973 * </pre> 6161 */ 6162 java.util.List<java.lang.Long> getChangesetList(); 6163 /** 5974 * 6164 5975 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6165 * 5976 */ 5977 int getChangesetCount(); 5978 /** 6166 5979 * <pre> 6167 5980 * DELTA coded 6168 5981 * </pre> 6169 */ 6170 int getChangesetCount(); 6171 /** 5982 * 6172 5983 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6173 * 5984 */ 5985 long getChangeset(int index); 5986 5987 /** 6174 5988 * <pre> 6175 5989 * DELTA coded 6176 5990 * </pre> 6177 */ 6178 long getChangeset(int index); 6179 6180 /** 5991 * 6181 5992 * <code>repeated sint32 uid = 4 [packed = true];</code> 6182 * 5993 */ 5994 java.util.List<java.lang.Integer> getUidList(); 5995 /** 6183 5996 * <pre> 6184 5997 * DELTA coded 6185 5998 * </pre> 6186 */ 6187 java.util.List<java.lang.Integer> getUidList(); 6188 /** 5999 * 6189 6000 * <code>repeated sint32 uid = 4 [packed = true];</code> 6190 * 6001 */ 6002 int getUidCount(); 6003 /** 6191 6004 * <pre> 6192 6005 * DELTA coded 6193 6006 * </pre> 6194 */ 6195 int getUidCount(); 6196 /** 6007 * 6197 6008 * <code>repeated sint32 uid = 4 [packed = true];</code> 6198 *6199 * <pre>6200 * DELTA coded6201 * </pre>6202 6009 */ 6203 6010 int getUid(int index); 6204 6011 6205 6012 /** 6013 * <pre> 6014 * String IDs for usernames. DELTA coded 6015 * </pre> 6016 * 6206 6017 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6207 * 6018 */ 6019 java.util.List<java.lang.Integer> getUserSidList(); 6020 /** 6208 6021 * <pre> 6209 6022 * String IDs for usernames. DELTA coded 6210 6023 * </pre> 6211 */ 6212 java.util.List<java.lang.Integer> getUserSidList(); 6213 /** 6024 * 6214 6025 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6215 * 6026 */ 6027 int getUserSidCount(); 6028 /** 6216 6029 * <pre> 6217 6030 * String IDs for usernames. DELTA coded 6218 6031 * </pre> 6219 */ 6220 int getUserSidCount(); 6221 /** 6032 * 6222 6033 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6223 *6224 * <pre>6225 * String IDs for usernames. DELTA coded6226 * </pre>6227 6034 */ 6228 6035 int getUserSid(int index); 6229 6036 6230 6037 /** 6231 * <code>repeated bool visible = 6 [packed = true];</code>6232 *6233 6038 * <pre> 6234 6039 * The visible flag is used to store history information. It indicates that … … 6241 6046 * set. 6242 6047 * </pre> 6048 * 6049 * <code>repeated bool visible = 6 [packed = true];</code> 6243 6050 */ 6244 6051 java.util.List<java.lang.Boolean> getVisibleList(); 6245 6052 /** 6246 * <code>repeated bool visible = 6 [packed = true];</code>6247 *6248 6053 * <pre> 6249 6054 * The visible flag is used to store history information. It indicates that … … 6256 6061 * set. 6257 6062 * </pre> 6063 * 6064 * <code>repeated bool visible = 6 [packed = true];</code> 6258 6065 */ 6259 6066 int getVisibleCount(); 6260 6067 /** 6261 * <code>repeated bool visible = 6 [packed = true];</code>6262 *6263 6068 * <pre> 6264 6069 * The visible flag is used to store history information. It indicates that … … 6271 6076 * set. 6272 6077 * </pre> 6078 * 6079 * <code>repeated bool visible = 6 [packed = true];</code> 6273 6080 */ 6274 6081 boolean getVisible(int index); 6275 6082 } 6276 6083 /** 6084 * <pre> 6085 ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes. 6086 * </pre> 6087 * 6277 6088 * Protobuf type {@code OSMPBF.DenseInfo} 6278 *6279 * <pre>6280 ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes.6281 * </pre>6282 6089 */ 6283 public static final class DenseInfo extends 6284 com.google.protobuf.GeneratedMessageLite implements 6090 public static final class DenseInfo extends 6091 com.google.protobuf.GeneratedMessageLite< 6092 DenseInfo, DenseInfo.Builder> implements 6285 6093 // @@protoc_insertion_point(message_implements:OSMPBF.DenseInfo) 6286 6094 DenseInfoOrBuilder { 6287 // Use DenseInfo.newBuilder() to construct. 6288 private DenseInfo(com.google.protobuf.GeneratedMessageLite.Builder builder) { 6289 super(builder); 6290 this.unknownFields = builder.getUnknownFields(); 6291 } 6292 private DenseInfo(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 6293 6294 private static final DenseInfo defaultInstance; 6295 public static DenseInfo getDefaultInstance() { 6296 return defaultInstance; 6297 } 6298 6299 @Override 6300 public DenseInfo getDefaultInstanceForType() { 6301 return defaultInstance; 6302 } 6303 6304 private final com.google.protobuf.ByteString unknownFields; 6305 private DenseInfo( 6306 com.google.protobuf.CodedInputStream input, 6307 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6308 throws com.google.protobuf.InvalidProtocolBufferException { 6309 initFields(); 6310 int mutable_bitField0_ = 0; 6311 com.google.protobuf.ByteString.Output unknownFieldsOutput = 6312 com.google.protobuf.ByteString.newOutput(); 6313 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 6314 com.google.protobuf.CodedOutputStream.newInstance( 6315 unknownFieldsOutput); 6316 try { 6317 boolean done = false; 6318 while (!done) { 6319 int tag = input.readTag(); 6320 switch (tag) { 6321 case 0: 6322 done = true; 6323 break; 6324 default: { 6325 if (!parseUnknownField(input, unknownFieldsCodedOutput, 6326 extensionRegistry, tag)) { 6327 done = true; 6328 } 6329 break; 6330 } 6331 case 8: { 6332 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 6333 version_ = new java.util.ArrayList<>(); 6334 mutable_bitField0_ |= 0x00000001; 6335 } 6336 version_.add(input.readInt32()); 6337 break; 6338 } 6339 case 10: { 6340 int length = input.readRawVarint32(); 6341 int limit = input.pushLimit(length); 6342 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { 6343 version_ = new java.util.ArrayList<>(); 6344 mutable_bitField0_ |= 0x00000001; 6345 } 6346 while (input.getBytesUntilLimit() > 0) { 6347 version_.add(input.readInt32()); 6348 } 6349 input.popLimit(limit); 6350 break; 6351 } 6352 case 16: { 6353 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 6354 timestamp_ = new java.util.ArrayList<>(); 6355 mutable_bitField0_ |= 0x00000002; 6356 } 6357 timestamp_.add(input.readSInt64()); 6358 break; 6359 } 6360 case 18: { 6361 int length = input.readRawVarint32(); 6362 int limit = input.pushLimit(length); 6363 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 6364 timestamp_ = new java.util.ArrayList<>(); 6365 mutable_bitField0_ |= 0x00000002; 6366 } 6367 while (input.getBytesUntilLimit() > 0) { 6368 timestamp_.add(input.readSInt64()); 6369 } 6370 input.popLimit(limit); 6371 break; 6372 } 6373 case 24: { 6374 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 6375 changeset_ = new java.util.ArrayList<>(); 6376 mutable_bitField0_ |= 0x00000004; 6377 } 6378 changeset_.add(input.readSInt64()); 6379 break; 6380 } 6381 case 26: { 6382 int length = input.readRawVarint32(); 6383 int limit = input.pushLimit(length); 6384 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 6385 changeset_ = new java.util.ArrayList<>(); 6386 mutable_bitField0_ |= 0x00000004; 6387 } 6388 while (input.getBytesUntilLimit() > 0) { 6389 changeset_.add(input.readSInt64()); 6390 } 6391 input.popLimit(limit); 6392 break; 6393 } 6394 case 32: { 6395 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 6396 uid_ = new java.util.ArrayList<>(); 6397 mutable_bitField0_ |= 0x00000008; 6398 } 6399 uid_.add(input.readSInt32()); 6400 break; 6401 } 6402 case 34: { 6403 int length = input.readRawVarint32(); 6404 int limit = input.pushLimit(length); 6405 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { 6406 uid_ = new java.util.ArrayList<>(); 6407 mutable_bitField0_ |= 0x00000008; 6408 } 6409 while (input.getBytesUntilLimit() > 0) { 6410 uid_.add(input.readSInt32()); 6411 } 6412 input.popLimit(limit); 6413 break; 6414 } 6415 case 40: { 6416 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 6417 userSid_ = new java.util.ArrayList<>(); 6418 mutable_bitField0_ |= 0x00000010; 6419 } 6420 userSid_.add(input.readSInt32()); 6421 break; 6422 } 6423 case 42: { 6424 int length = input.readRawVarint32(); 6425 int limit = input.pushLimit(length); 6426 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 6427 userSid_ = new java.util.ArrayList<>(); 6428 mutable_bitField0_ |= 0x00000010; 6429 } 6430 while (input.getBytesUntilLimit() > 0) { 6431 userSid_.add(input.readSInt32()); 6432 } 6433 input.popLimit(limit); 6434 break; 6435 } 6436 case 48: { 6437 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 6438 visible_ = new java.util.ArrayList<>(); 6439 mutable_bitField0_ |= 0x00000020; 6440 } 6441 visible_.add(input.readBool()); 6442 break; 6443 } 6444 case 50: { 6445 int length = input.readRawVarint32(); 6446 int limit = input.pushLimit(length); 6447 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { 6448 visible_ = new java.util.ArrayList<>(); 6449 mutable_bitField0_ |= 0x00000020; 6450 } 6451 while (input.getBytesUntilLimit() > 0) { 6452 visible_.add(input.readBool()); 6453 } 6454 input.popLimit(limit); 6455 break; 6456 } 6457 } 6458 } 6459 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6460 throw e.setUnfinishedMessage(this); 6461 } catch (java.io.IOException e) { 6462 throw new com.google.protobuf.InvalidProtocolBufferException( 6463 e.getMessage()).setUnfinishedMessage(this); 6464 } finally { 6465 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 6466 version_ = java.util.Collections.unmodifiableList(version_); 6467 } 6468 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 6469 timestamp_ = java.util.Collections.unmodifiableList(timestamp_); 6470 } 6471 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 6472 changeset_ = java.util.Collections.unmodifiableList(changeset_); 6473 } 6474 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 6475 uid_ = java.util.Collections.unmodifiableList(uid_); 6476 } 6477 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 6478 userSid_ = java.util.Collections.unmodifiableList(userSid_); 6479 } 6480 if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 6481 visible_ = java.util.Collections.unmodifiableList(visible_); 6482 } 6483 try { 6484 unknownFieldsCodedOutput.flush(); 6485 } catch (java.io.IOException e) { 6486 // Should not happen 6487 } finally { 6488 unknownFields = unknownFieldsOutput.toByteString(); 6489 } 6490 makeExtensionsImmutable(); 6491 } 6492 } 6493 public static com.google.protobuf.Parser<DenseInfo> PARSER = 6494 new com.google.protobuf.AbstractParser<DenseInfo>() { 6495 @Override 6496 public DenseInfo parsePartialFrom( 6497 com.google.protobuf.CodedInputStream input, 6498 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6499 throws com.google.protobuf.InvalidProtocolBufferException { 6500 return new DenseInfo(input, extensionRegistry); 6501 } 6502 }; 6503 6504 @java.lang.Override 6505 public com.google.protobuf.Parser<DenseInfo> getParserForType() { 6506 return PARSER; 6507 } 6508 6095 private DenseInfo() { 6096 version_ = emptyIntList(); 6097 timestamp_ = emptyLongList(); 6098 changeset_ = emptyLongList(); 6099 uid_ = emptyIntList(); 6100 userSid_ = emptyIntList(); 6101 visible_ = emptyBooleanList(); 6102 } 6509 6103 public static final int VERSION_FIELD_NUMBER = 1; 6510 private java.util.List<java.lang.Integer>version_;6104 private com.google.protobuf.Internal.IntList version_; 6511 6105 /** 6512 6106 * <code>repeated int32 version = 1 [packed = true];</code> 6513 6107 */ 6514 @Override 6515 public java.util.List<java.lang.Integer> 6108 public java.util.List<java.lang.Integer> 6516 6109 getVersionList() { 6517 6110 return version_; … … 6520 6113 * <code>repeated int32 version = 1 [packed = true];</code> 6521 6114 */ 6522 @Override 6523 public int getVersionCount() { 6115 public int getVersionCount() { 6524 6116 return version_.size(); 6525 6117 } … … 6527 6119 * <code>repeated int32 version = 1 [packed = true];</code> 6528 6120 */ 6529 @Override 6530 public int getVersion(int index) { 6531 return version_.get(index); 6121 public int getVersion(int index) { 6122 return version_.getInt(index); 6532 6123 } 6533 6124 private int versionMemoizedSerializedSize = -1; 6125 private void ensureVersionIsMutable() { 6126 if (!version_.isModifiable()) { 6127 version_ = 6128 com.google.protobuf.GeneratedMessageLite.mutableCopy(version_); 6129 } 6130 } 6131 /** 6132 * <code>repeated int32 version = 1 [packed = true];</code> 6133 */ 6134 private void setVersion( 6135 int index, int value) { 6136 ensureVersionIsMutable(); 6137 version_.setInt(index, value); 6138 } 6139 /** 6140 * <code>repeated int32 version = 1 [packed = true];</code> 6141 */ 6142 private void addVersion(int value) { 6143 ensureVersionIsMutable(); 6144 version_.addInt(value); 6145 } 6146 /** 6147 * <code>repeated int32 version = 1 [packed = true];</code> 6148 */ 6149 private void addAllVersion( 6150 java.lang.Iterable<? extends java.lang.Integer> values) { 6151 ensureVersionIsMutable(); 6152 com.google.protobuf.AbstractMessageLite.addAll( 6153 values, version_); 6154 } 6155 /** 6156 * <code>repeated int32 version = 1 [packed = true];</code> 6157 */ 6158 private void clearVersion() { 6159 version_ = emptyIntList(); 6160 } 6534 6161 6535 6162 public static final int TIMESTAMP_FIELD_NUMBER = 2; 6536 private java.util.List<java.lang.Long> timestamp_; 6537 /** 6163 private com.google.protobuf.Internal.LongList timestamp_; 6164 /** 6165 * <pre> 6166 * DELTA coded 6167 * </pre> 6168 * 6538 6169 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6539 * 6540 * <pre> 6541 * DELTA coded 6542 * </pre> 6543 */ 6544 @Override 6545 public java.util.List<java.lang.Long> 6170 */ 6171 public java.util.List<java.lang.Long> 6546 6172 getTimestampList() { 6547 6173 return timestamp_; 6548 6174 } 6549 6175 /** 6176 * <pre> 6177 * DELTA coded 6178 * </pre> 6179 * 6550 6180 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6551 * 6181 */ 6182 public int getTimestampCount() { 6183 return timestamp_.size(); 6184 } 6185 /** 6552 6186 * <pre> 6553 6187 * DELTA coded 6554 6188 * </pre> 6555 */ 6556 @Override 6557 public int getTimestampCount() { 6558 return timestamp_.size(); 6559 } 6560 /** 6189 * 6561 6190 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6562 * 6191 */ 6192 public long getTimestamp(int index) { 6193 return timestamp_.getLong(index); 6194 } 6195 private int timestampMemoizedSerializedSize = -1; 6196 private void ensureTimestampIsMutable() { 6197 if (!timestamp_.isModifiable()) { 6198 timestamp_ = 6199 com.google.protobuf.GeneratedMessageLite.mutableCopy(timestamp_); 6200 } 6201 } 6202 /** 6563 6203 * <pre> 6564 6204 * DELTA coded 6565 6205 * </pre> 6566 */ 6567 @Override 6568 public long getTimestamp(int index) { 6569 return timestamp_.get(index); 6570 } 6571 private int timestampMemoizedSerializedSize = -1; 6206 * 6207 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6208 */ 6209 private void setTimestamp( 6210 int index, long value) { 6211 ensureTimestampIsMutable(); 6212 timestamp_.setLong(index, value); 6213 } 6214 /** 6215 * <pre> 6216 * DELTA coded 6217 * </pre> 6218 * 6219 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6220 */ 6221 private void addTimestamp(long value) { 6222 ensureTimestampIsMutable(); 6223 timestamp_.addLong(value); 6224 } 6225 /** 6226 * <pre> 6227 * DELTA coded 6228 * </pre> 6229 * 6230 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6231 */ 6232 private void addAllTimestamp( 6233 java.lang.Iterable<? extends java.lang.Long> values) { 6234 ensureTimestampIsMutable(); 6235 com.google.protobuf.AbstractMessageLite.addAll( 6236 values, timestamp_); 6237 } 6238 /** 6239 * <pre> 6240 * DELTA coded 6241 * </pre> 6242 * 6243 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 6244 */ 6245 private void clearTimestamp() { 6246 timestamp_ = emptyLongList(); 6247 } 6572 6248 6573 6249 public static final int CHANGESET_FIELD_NUMBER = 3; 6574 private java.util.List<java.lang.Long> changeset_; 6575 /** 6250 private com.google.protobuf.Internal.LongList changeset_; 6251 /** 6252 * <pre> 6253 * DELTA coded 6254 * </pre> 6255 * 6576 6256 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6577 * 6578 * <pre> 6579 * DELTA coded 6580 * </pre> 6581 */ 6582 @Override 6583 public java.util.List<java.lang.Long> 6257 */ 6258 public java.util.List<java.lang.Long> 6584 6259 getChangesetList() { 6585 6260 return changeset_; 6586 6261 } 6587 6262 /** 6263 * <pre> 6264 * DELTA coded 6265 * </pre> 6266 * 6588 6267 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6589 * 6268 */ 6269 public int getChangesetCount() { 6270 return changeset_.size(); 6271 } 6272 /** 6590 6273 * <pre> 6591 6274 * DELTA coded 6592 6275 * </pre> 6593 */ 6594 @Override 6595 public int getChangesetCount() { 6596 return changeset_.size(); 6597 } 6598 /** 6276 * 6599 6277 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6600 * 6278 */ 6279 public long getChangeset(int index) { 6280 return changeset_.getLong(index); 6281 } 6282 private int changesetMemoizedSerializedSize = -1; 6283 private void ensureChangesetIsMutable() { 6284 if (!changeset_.isModifiable()) { 6285 changeset_ = 6286 com.google.protobuf.GeneratedMessageLite.mutableCopy(changeset_); 6287 } 6288 } 6289 /** 6601 6290 * <pre> 6602 6291 * DELTA coded 6603 6292 * </pre> 6604 */ 6605 @Override 6606 public long getChangeset(int index) { 6607 return changeset_.get(index); 6608 } 6609 private int changesetMemoizedSerializedSize = -1; 6293 * 6294 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6295 */ 6296 private void setChangeset( 6297 int index, long value) { 6298 ensureChangesetIsMutable(); 6299 changeset_.setLong(index, value); 6300 } 6301 /** 6302 * <pre> 6303 * DELTA coded 6304 * </pre> 6305 * 6306 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6307 */ 6308 private void addChangeset(long value) { 6309 ensureChangesetIsMutable(); 6310 changeset_.addLong(value); 6311 } 6312 /** 6313 * <pre> 6314 * DELTA coded 6315 * </pre> 6316 * 6317 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6318 */ 6319 private void addAllChangeset( 6320 java.lang.Iterable<? extends java.lang.Long> values) { 6321 ensureChangesetIsMutable(); 6322 com.google.protobuf.AbstractMessageLite.addAll( 6323 values, changeset_); 6324 } 6325 /** 6326 * <pre> 6327 * DELTA coded 6328 * </pre> 6329 * 6330 * <code>repeated sint64 changeset = 3 [packed = true];</code> 6331 */ 6332 private void clearChangeset() { 6333 changeset_ = emptyLongList(); 6334 } 6610 6335 6611 6336 public static final int UID_FIELD_NUMBER = 4; 6612 private java.util.List<java.lang.Integer> uid_; 6613 /** 6337 private com.google.protobuf.Internal.IntList uid_; 6338 /** 6339 * <pre> 6340 * DELTA coded 6341 * </pre> 6342 * 6614 6343 * <code>repeated sint32 uid = 4 [packed = true];</code> 6615 * 6616 * <pre> 6617 * DELTA coded 6618 * </pre> 6619 */ 6620 @Override 6621 public java.util.List<java.lang.Integer> 6344 */ 6345 public java.util.List<java.lang.Integer> 6622 6346 getUidList() { 6623 6347 return uid_; 6624 6348 } 6625 6349 /** 6350 * <pre> 6351 * DELTA coded 6352 * </pre> 6353 * 6626 6354 * <code>repeated sint32 uid = 4 [packed = true];</code> 6627 * 6355 */ 6356 public int getUidCount() { 6357 return uid_.size(); 6358 } 6359 /** 6628 6360 * <pre> 6629 6361 * DELTA coded 6630 6362 * </pre> 6631 */ 6632 @Override 6633 public int getUidCount() { 6634 return uid_.size(); 6635 } 6636 /** 6363 * 6637 6364 * <code>repeated sint32 uid = 4 [packed = true];</code> 6638 * 6365 */ 6366 public int getUid(int index) { 6367 return uid_.getInt(index); 6368 } 6369 private int uidMemoizedSerializedSize = -1; 6370 private void ensureUidIsMutable() { 6371 if (!uid_.isModifiable()) { 6372 uid_ = 6373 com.google.protobuf.GeneratedMessageLite.mutableCopy(uid_); 6374 } 6375 } 6376 /** 6639 6377 * <pre> 6640 6378 * DELTA coded 6641 6379 * </pre> 6642 */ 6643 @Override 6644 public int getUid(int index) { 6645 return uid_.get(index); 6646 } 6647 private int uidMemoizedSerializedSize = -1; 6380 * 6381 * <code>repeated sint32 uid = 4 [packed = true];</code> 6382 */ 6383 private void setUid( 6384 int index, int value) { 6385 ensureUidIsMutable(); 6386 uid_.setInt(index, value); 6387 } 6388 /** 6389 * <pre> 6390 * DELTA coded 6391 * </pre> 6392 * 6393 * <code>repeated sint32 uid = 4 [packed = true];</code> 6394 */ 6395 private void addUid(int value) { 6396 ensureUidIsMutable(); 6397 uid_.addInt(value); 6398 } 6399 /** 6400 * <pre> 6401 * DELTA coded 6402 * </pre> 6403 * 6404 * <code>repeated sint32 uid = 4 [packed = true];</code> 6405 */ 6406 private void addAllUid( 6407 java.lang.Iterable<? extends java.lang.Integer> values) { 6408 ensureUidIsMutable(); 6409 com.google.protobuf.AbstractMessageLite.addAll( 6410 values, uid_); 6411 } 6412 /** 6413 * <pre> 6414 * DELTA coded 6415 * </pre> 6416 * 6417 * <code>repeated sint32 uid = 4 [packed = true];</code> 6418 */ 6419 private void clearUid() { 6420 uid_ = emptyIntList(); 6421 } 6648 6422 6649 6423 public static final int USER_SID_FIELD_NUMBER = 5; 6650 private java.util.List<java.lang.Integer> userSid_; 6651 /** 6424 private com.google.protobuf.Internal.IntList userSid_; 6425 /** 6426 * <pre> 6427 * String IDs for usernames. DELTA coded 6428 * </pre> 6429 * 6652 6430 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6653 * 6654 * <pre> 6655 * String IDs for usernames. DELTA coded 6656 * </pre> 6657 */ 6658 @Override 6659 public java.util.List<java.lang.Integer> 6431 */ 6432 public java.util.List<java.lang.Integer> 6660 6433 getUserSidList() { 6661 6434 return userSid_; 6662 6435 } 6663 6436 /** 6437 * <pre> 6438 * String IDs for usernames. DELTA coded 6439 * </pre> 6440 * 6664 6441 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6665 * 6442 */ 6443 public int getUserSidCount() { 6444 return userSid_.size(); 6445 } 6446 /** 6666 6447 * <pre> 6667 6448 * String IDs for usernames. DELTA coded 6668 6449 * </pre> 6669 */ 6670 @Override 6671 public int getUserSidCount() { 6672 return userSid_.size(); 6673 } 6674 /** 6450 * 6675 6451 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6676 * 6452 */ 6453 public int getUserSid(int index) { 6454 return userSid_.getInt(index); 6455 } 6456 private int userSidMemoizedSerializedSize = -1; 6457 private void ensureUserSidIsMutable() { 6458 if (!userSid_.isModifiable()) { 6459 userSid_ = 6460 com.google.protobuf.GeneratedMessageLite.mutableCopy(userSid_); 6461 } 6462 } 6463 /** 6677 6464 * <pre> 6678 6465 * String IDs for usernames. DELTA coded 6679 6466 * </pre> 6680 */ 6681 @Override 6682 public int getUserSid(int index) { 6683 return userSid_.get(index); 6684 } 6685 private int userSidMemoizedSerializedSize = -1; 6467 * 6468 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6469 */ 6470 private void setUserSid( 6471 int index, int value) { 6472 ensureUserSidIsMutable(); 6473 userSid_.setInt(index, value); 6474 } 6475 /** 6476 * <pre> 6477 * String IDs for usernames. DELTA coded 6478 * </pre> 6479 * 6480 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6481 */ 6482 private void addUserSid(int value) { 6483 ensureUserSidIsMutable(); 6484 userSid_.addInt(value); 6485 } 6486 /** 6487 * <pre> 6488 * String IDs for usernames. DELTA coded 6489 * </pre> 6490 * 6491 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6492 */ 6493 private void addAllUserSid( 6494 java.lang.Iterable<? extends java.lang.Integer> values) { 6495 ensureUserSidIsMutable(); 6496 com.google.protobuf.AbstractMessageLite.addAll( 6497 values, userSid_); 6498 } 6499 /** 6500 * <pre> 6501 * String IDs for usernames. DELTA coded 6502 * </pre> 6503 * 6504 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 6505 */ 6506 private void clearUserSid() { 6507 userSid_ = emptyIntList(); 6508 } 6686 6509 6687 6510 public static final int VISIBLE_FIELD_NUMBER = 6; 6688 private java.util.List<java.lang.Boolean> visible_; 6689 /** 6690 * <code>repeated bool visible = 6 [packed = true];</code> 6691 * 6511 private com.google.protobuf.Internal.BooleanList visible_; 6512 /** 6692 6513 * <pre> 6693 6514 * The visible flag is used to store history information. It indicates that … … 6700 6521 * set. 6701 6522 * </pre> 6702 */ 6703 @Override 6704 public java.util.List<java.lang.Boolean> 6523 * 6524 * <code>repeated bool visible = 6 [packed = true];</code> 6525 */ 6526 public java.util.List<java.lang.Boolean> 6705 6527 getVisibleList() { 6706 6528 return visible_; 6707 6529 } 6708 6530 /** 6709 * <code>repeated bool visible = 6 [packed = true];</code>6710 *6711 6531 * <pre> 6712 6532 * The visible flag is used to store history information. It indicates that … … 6719 6539 * set. 6720 6540 * </pre> 6721 */ 6722 @Override 6723 public int getVisibleCount() { 6541 * 6542 * <code>repeated bool visible = 6 [packed = true];</code> 6543 */ 6544 public int getVisibleCount() { 6724 6545 return visible_.size(); 6725 6546 } 6726 6547 /** 6727 * <code>repeated bool visible = 6 [packed = true];</code>6728 *6729 6548 * <pre> 6730 6549 * The visible flag is used to store history information. It indicates that … … 6737 6556 * set. 6738 6557 * </pre> 6739 */ 6740 @Override 6741 public boolean getVisible(int index) { 6742 return visible_.get(index); 6558 * 6559 * <code>repeated bool visible = 6 [packed = true];</code> 6560 */ 6561 public boolean getVisible(int index) { 6562 return visible_.getBoolean(index); 6743 6563 } 6744 6564 private int visibleMemoizedSerializedSize = -1; 6745 6746 private void initFields() { 6747 version_ = java.util.Collections.emptyList(); 6748 timestamp_ = java.util.Collections.emptyList(); 6749 changeset_ = java.util.Collections.emptyList(); 6750 uid_ = java.util.Collections.emptyList(); 6751 userSid_ = java.util.Collections.emptyList(); 6752 visible_ = java.util.Collections.emptyList(); 6753 } 6754 private byte memoizedIsInitialized = -1; 6755 @Override 6756 public final boolean isInitialized() { 6757 byte isInitialized = memoizedIsInitialized; 6758 if (isInitialized == 1) return true; 6759 if (isInitialized == 0) return false; 6760 6761 memoizedIsInitialized = 1; 6762 return true; 6763 } 6764 6765 @Override 6766 public void writeTo(com.google.protobuf.CodedOutputStream output) 6565 private void ensureVisibleIsMutable() { 6566 if (!visible_.isModifiable()) { 6567 visible_ = 6568 com.google.protobuf.GeneratedMessageLite.mutableCopy(visible_); 6569 } 6570 } 6571 /** 6572 * <pre> 6573 * The visible flag is used to store history information. It indicates that 6574 * the current object version has been created by a delete operation on the 6575 * OSM API. 6576 * When a writer sets this flag, it MUST add a required_features tag with 6577 * value "HistoricalInformation" to the HeaderBlock. 6578 * If this flag is not available for some object it MUST be assumed to be 6579 * true if the file has the required_features tag "HistoricalInformation" 6580 * set. 6581 * </pre> 6582 * 6583 * <code>repeated bool visible = 6 [packed = true];</code> 6584 */ 6585 private void setVisible( 6586 int index, boolean value) { 6587 ensureVisibleIsMutable(); 6588 visible_.setBoolean(index, value); 6589 } 6590 /** 6591 * <pre> 6592 * The visible flag is used to store history information. It indicates that 6593 * the current object version has been created by a delete operation on the 6594 * OSM API. 6595 * When a writer sets this flag, it MUST add a required_features tag with 6596 * value "HistoricalInformation" to the HeaderBlock. 6597 * If this flag is not available for some object it MUST be assumed to be 6598 * true if the file has the required_features tag "HistoricalInformation" 6599 * set. 6600 * </pre> 6601 * 6602 * <code>repeated bool visible = 6 [packed = true];</code> 6603 */ 6604 private void addVisible(boolean value) { 6605 ensureVisibleIsMutable(); 6606 visible_.addBoolean(value); 6607 } 6608 /** 6609 * <pre> 6610 * The visible flag is used to store history information. It indicates that 6611 * the current object version has been created by a delete operation on the 6612 * OSM API. 6613 * When a writer sets this flag, it MUST add a required_features tag with 6614 * value "HistoricalInformation" to the HeaderBlock. 6615 * If this flag is not available for some object it MUST be assumed to be 6616 * true if the file has the required_features tag "HistoricalInformation" 6617 * set. 6618 * </pre> 6619 * 6620 * <code>repeated bool visible = 6 [packed = true];</code> 6621 */ 6622 private void addAllVisible( 6623 java.lang.Iterable<? extends java.lang.Boolean> values) { 6624 ensureVisibleIsMutable(); 6625 com.google.protobuf.AbstractMessageLite.addAll( 6626 values, visible_); 6627 } 6628 /** 6629 * <pre> 6630 * The visible flag is used to store history information. It indicates that 6631 * the current object version has been created by a delete operation on the 6632 * OSM API. 6633 * When a writer sets this flag, it MUST add a required_features tag with 6634 * value "HistoricalInformation" to the HeaderBlock. 6635 * If this flag is not available for some object it MUST be assumed to be 6636 * true if the file has the required_features tag "HistoricalInformation" 6637 * set. 6638 * </pre> 6639 * 6640 * <code>repeated bool visible = 6 [packed = true];</code> 6641 */ 6642 private void clearVisible() { 6643 visible_ = emptyBooleanList(); 6644 } 6645 6646 public void writeTo(com.google.protobuf.CodedOutputStream output) 6767 6647 throws java.io.IOException { 6768 6648 getSerializedSize(); 6769 6649 if (getVersionList().size() > 0) { 6770 output.write RawVarint32(10);6771 output.write RawVarint32(versionMemoizedSerializedSize);6650 output.writeUInt32NoTag(10); 6651 output.writeUInt32NoTag(versionMemoizedSerializedSize); 6772 6652 } 6773 6653 for (int i = 0; i < version_.size(); i++) { 6774 output.writeInt32NoTag(version_.get (i));6654 output.writeInt32NoTag(version_.getInt(i)); 6775 6655 } 6776 6656 if (getTimestampList().size() > 0) { 6777 output.write RawVarint32(18);6778 output.write RawVarint32(timestampMemoizedSerializedSize);6657 output.writeUInt32NoTag(18); 6658 output.writeUInt32NoTag(timestampMemoizedSerializedSize); 6779 6659 } 6780 6660 for (int i = 0; i < timestamp_.size(); i++) { 6781 output.writeSInt64NoTag(timestamp_.get (i));6661 output.writeSInt64NoTag(timestamp_.getLong(i)); 6782 6662 } 6783 6663 if (getChangesetList().size() > 0) { 6784 output.write RawVarint32(26);6785 output.write RawVarint32(changesetMemoizedSerializedSize);6664 output.writeUInt32NoTag(26); 6665 output.writeUInt32NoTag(changesetMemoizedSerializedSize); 6786 6666 } 6787 6667 for (int i = 0; i < changeset_.size(); i++) { 6788 output.writeSInt64NoTag(changeset_.get (i));6668 output.writeSInt64NoTag(changeset_.getLong(i)); 6789 6669 } 6790 6670 if (getUidList().size() > 0) { 6791 output.write RawVarint32(34);6792 output.write RawVarint32(uidMemoizedSerializedSize);6671 output.writeUInt32NoTag(34); 6672 output.writeUInt32NoTag(uidMemoizedSerializedSize); 6793 6673 } 6794 6674 for (int i = 0; i < uid_.size(); i++) { 6795 output.writeSInt32NoTag(uid_.get (i));6675 output.writeSInt32NoTag(uid_.getInt(i)); 6796 6676 } 6797 6677 if (getUserSidList().size() > 0) { 6798 output.write RawVarint32(42);6799 output.write RawVarint32(userSidMemoizedSerializedSize);6678 output.writeUInt32NoTag(42); 6679 output.writeUInt32NoTag(userSidMemoizedSerializedSize); 6800 6680 } 6801 6681 for (int i = 0; i < userSid_.size(); i++) { 6802 output.writeSInt32NoTag(userSid_.get (i));6682 output.writeSInt32NoTag(userSid_.getInt(i)); 6803 6683 } 6804 6684 if (getVisibleList().size() > 0) { 6805 output.write RawVarint32(50);6806 output.write RawVarint32(visibleMemoizedSerializedSize);6685 output.writeUInt32NoTag(50); 6686 output.writeUInt32NoTag(visibleMemoizedSerializedSize); 6807 6687 } 6808 6688 for (int i = 0; i < visible_.size(); i++) { 6809 output.writeBoolNoTag(visible_.get(i)); 6810 } 6811 output.writeRawBytes(unknownFields); 6812 } 6813 6814 private int memoizedSerializedSize = -1; 6815 @Override 6816 public int getSerializedSize() { 6689 output.writeBoolNoTag(visible_.getBoolean(i)); 6690 } 6691 unknownFields.writeTo(output); 6692 } 6693 6694 public int getSerializedSize() { 6817 6695 int size = memoizedSerializedSize; 6818 6696 if (size != -1) return size; … … 6823 6701 for (int i = 0; i < version_.size(); i++) { 6824 6702 dataSize += com.google.protobuf.CodedOutputStream 6825 .computeInt32SizeNoTag(version_.get (i));6703 .computeInt32SizeNoTag(version_.getInt(i)); 6826 6704 } 6827 6705 size += dataSize; … … 6837 6715 for (int i = 0; i < timestamp_.size(); i++) { 6838 6716 dataSize += com.google.protobuf.CodedOutputStream 6839 .computeSInt64SizeNoTag(timestamp_.get (i));6717 .computeSInt64SizeNoTag(timestamp_.getLong(i)); 6840 6718 } 6841 6719 size += dataSize; … … 6851 6729 for (int i = 0; i < changeset_.size(); i++) { 6852 6730 dataSize += com.google.protobuf.CodedOutputStream 6853 .computeSInt64SizeNoTag(changeset_.get (i));6731 .computeSInt64SizeNoTag(changeset_.getLong(i)); 6854 6732 } 6855 6733 size += dataSize; … … 6865 6743 for (int i = 0; i < uid_.size(); i++) { 6866 6744 dataSize += com.google.protobuf.CodedOutputStream 6867 .computeSInt32SizeNoTag(uid_.get (i));6745 .computeSInt32SizeNoTag(uid_.getInt(i)); 6868 6746 } 6869 6747 size += dataSize; … … 6879 6757 for (int i = 0; i < userSid_.size(); i++) { 6880 6758 dataSize += com.google.protobuf.CodedOutputStream 6881 .computeSInt32SizeNoTag(userSid_.get (i));6759 .computeSInt32SizeNoTag(userSid_.getInt(i)); 6882 6760 } 6883 6761 size += dataSize; … … 6900 6778 visibleMemoizedSerializedSize = dataSize; 6901 6779 } 6902 size += unknownFields. size();6780 size += unknownFields.getSerializedSize(); 6903 6781 memoizedSerializedSize = size; 6904 6782 return size; 6905 6783 } 6906 6784 6907 private static final long serialVersionUID = 0L; 6908 @java.lang.Override 6909 protected java.lang.Object writeReplace() 6910 throws java.io.ObjectStreamException { 6911 return super.writeReplace(); 6912 } 6913 6785 public static crosby.binary.Osmformat.DenseInfo parseFrom( 6786 java.nio.ByteBuffer data) 6787 throws com.google.protobuf.InvalidProtocolBufferException { 6788 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6789 DEFAULT_INSTANCE, data); 6790 } 6791 public static crosby.binary.Osmformat.DenseInfo parseFrom( 6792 java.nio.ByteBuffer data, 6793 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6794 throws com.google.protobuf.InvalidProtocolBufferException { 6795 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6796 DEFAULT_INSTANCE, data, extensionRegistry); 6797 } 6914 6798 public static crosby.binary.Osmformat.DenseInfo parseFrom( 6915 6799 com.google.protobuf.ByteString data) 6916 6800 throws com.google.protobuf.InvalidProtocolBufferException { 6917 return PARSER.parseFrom(data); 6801 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6802 DEFAULT_INSTANCE, data); 6918 6803 } 6919 6804 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 6921 6806 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6922 6807 throws com.google.protobuf.InvalidProtocolBufferException { 6923 return PARSER.parseFrom(data, extensionRegistry); 6808 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6809 DEFAULT_INSTANCE, data, extensionRegistry); 6924 6810 } 6925 6811 public static crosby.binary.Osmformat.DenseInfo parseFrom(byte[] data) 6926 6812 throws com.google.protobuf.InvalidProtocolBufferException { 6927 return PARSER.parseFrom(data); 6813 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6814 DEFAULT_INSTANCE, data); 6928 6815 } 6929 6816 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 6931 6818 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6932 6819 throws com.google.protobuf.InvalidProtocolBufferException { 6933 return PARSER.parseFrom(data, extensionRegistry); 6820 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6821 DEFAULT_INSTANCE, data, extensionRegistry); 6934 6822 } 6935 6823 public static crosby.binary.Osmformat.DenseInfo parseFrom(java.io.InputStream input) 6936 6824 throws java.io.IOException { 6937 return PARSER.parseFrom(input); 6825 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6826 DEFAULT_INSTANCE, input); 6938 6827 } 6939 6828 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 6941 6830 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6942 6831 throws java.io.IOException { 6943 return PARSER.parseFrom(input, extensionRegistry); 6832 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6833 DEFAULT_INSTANCE, input, extensionRegistry); 6944 6834 } 6945 6835 public static crosby.binary.Osmformat.DenseInfo parseDelimitedFrom(java.io.InputStream input) 6946 6836 throws java.io.IOException { 6947 return PARSER.parseDelimitedFrom(input);6837 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 6948 6838 } 6949 6839 public static crosby.binary.Osmformat.DenseInfo parseDelimitedFrom( … … 6951 6841 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6952 6842 throws java.io.IOException { 6953 return PARSER.parseDelimitedFrom(input, extensionRegistry);6843 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 6954 6844 } 6955 6845 public static crosby.binary.Osmformat.DenseInfo parseFrom( 6956 6846 com.google.protobuf.CodedInputStream input) 6957 6847 throws java.io.IOException { 6958 return PARSER.parseFrom(input); 6848 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6849 DEFAULT_INSTANCE, input); 6959 6850 } 6960 6851 public static crosby.binary.Osmformat.DenseInfo parseFrom( … … 6962 6853 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6963 6854 throws java.io.IOException { 6964 return PARSER.parseFrom(input, extensionRegistry); 6965 } 6966 6967 public static Builder newBuilder() { return Builder.create(); } 6968 @Override 6969 public Builder newBuilderForType() { return newBuilder(); } 6855 return com.google.protobuf.GeneratedMessageLite.parseFrom( 6856 DEFAULT_INSTANCE, input, extensionRegistry); 6857 } 6858 6859 public static Builder newBuilder() { 6860 return DEFAULT_INSTANCE.toBuilder(); 6861 } 6970 6862 public static Builder newBuilder(crosby.binary.Osmformat.DenseInfo prototype) { 6971 return newBuilder().mergeFrom(prototype); 6972 } 6973 @Override 6974 public Builder toBuilder() { return newBuilder(this); } 6975 6976 /** 6863 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 6864 } 6865 6866 /** 6867 * <pre> 6868 ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes. 6869 * </pre> 6870 * 6977 6871 * Protobuf type {@code OSMPBF.DenseInfo} 6978 *6979 * <pre>6980 ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes.6981 * </pre>6982 6872 */ 6983 6873 public static final class Builder extends 6984 6874 com.google.protobuf.GeneratedMessageLite.Builder< 6985 crosby.binary.Osmformat.DenseInfo, Builder> 6986 implements 6875 crosby.binary.Osmformat.DenseInfo, Builder> implements 6987 6876 // @@protoc_insertion_point(builder_implements:OSMPBF.DenseInfo) 6988 6877 crosby.binary.Osmformat.DenseInfoOrBuilder { 6989 6878 // Construct using crosby.binary.Osmformat.DenseInfo.newBuilder() 6990 6879 private Builder() { 6991 maybeForceBuilderInitialization(); 6992 } 6993 6994 private void maybeForceBuilderInitialization() { 6995 } 6996 private static Builder create() { 6997 return new Builder(); 6998 } 6999 7000 @Override 7001 public Builder clear() { 7002 super.clear(); 7003 version_ = java.util.Collections.emptyList(); 7004 bitField0_ = (bitField0_ & ~0x00000001); 7005 timestamp_ = java.util.Collections.emptyList(); 7006 bitField0_ = (bitField0_ & ~0x00000002); 7007 changeset_ = java.util.Collections.emptyList(); 7008 bitField0_ = (bitField0_ & ~0x00000004); 7009 uid_ = java.util.Collections.emptyList(); 7010 bitField0_ = (bitField0_ & ~0x00000008); 7011 userSid_ = java.util.Collections.emptyList(); 7012 bitField0_ = (bitField0_ & ~0x00000010); 7013 visible_ = java.util.Collections.emptyList(); 7014 bitField0_ = (bitField0_ & ~0x00000020); 7015 return this; 7016 } 7017 7018 @Override 7019 public Builder clone() { 7020 return create().mergeFrom(buildPartial()); 7021 } 7022 7023 @Override 7024 public crosby.binary.Osmformat.DenseInfo getDefaultInstanceForType() { 7025 return crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 7026 } 7027 7028 @Override 7029 public crosby.binary.Osmformat.DenseInfo build() { 7030 crosby.binary.Osmformat.DenseInfo result = buildPartial(); 7031 if (!result.isInitialized()) { 7032 throw newUninitializedMessageException(result); 7033 } 7034 return result; 7035 } 7036 7037 @Override 7038 public crosby.binary.Osmformat.DenseInfo buildPartial() { 7039 crosby.binary.Osmformat.DenseInfo result = new crosby.binary.Osmformat.DenseInfo(this); 7040 int from_bitField0_ = bitField0_; 7041 if (((bitField0_ & 0x00000001) == 0x00000001)) { 7042 version_ = java.util.Collections.unmodifiableList(version_); 7043 bitField0_ = (bitField0_ & ~0x00000001); 7044 } 7045 result.version_ = version_; 7046 if (((bitField0_ & 0x00000002) == 0x00000002)) { 7047 timestamp_ = java.util.Collections.unmodifiableList(timestamp_); 7048 bitField0_ = (bitField0_ & ~0x00000002); 7049 } 7050 result.timestamp_ = timestamp_; 7051 if (((bitField0_ & 0x00000004) == 0x00000004)) { 7052 changeset_ = java.util.Collections.unmodifiableList(changeset_); 7053 bitField0_ = (bitField0_ & ~0x00000004); 7054 } 7055 result.changeset_ = changeset_; 7056 if (((bitField0_ & 0x00000008) == 0x00000008)) { 7057 uid_ = java.util.Collections.unmodifiableList(uid_); 7058 bitField0_ = (bitField0_ & ~0x00000008); 7059 } 7060 result.uid_ = uid_; 7061 if (((bitField0_ & 0x00000010) == 0x00000010)) { 7062 userSid_ = java.util.Collections.unmodifiableList(userSid_); 7063 bitField0_ = (bitField0_ & ~0x00000010); 7064 } 7065 result.userSid_ = userSid_; 7066 if (((bitField0_ & 0x00000020) == 0x00000020)) { 7067 visible_ = java.util.Collections.unmodifiableList(visible_); 7068 bitField0_ = (bitField0_ & ~0x00000020); 7069 } 7070 result.visible_ = visible_; 7071 return result; 7072 } 7073 7074 @Override 7075 public Builder mergeFrom(crosby.binary.Osmformat.DenseInfo other) { 7076 if (other == crosby.binary.Osmformat.DenseInfo.getDefaultInstance()) return this; 7077 if (!other.version_.isEmpty()) { 7078 if (version_.isEmpty()) { 7079 version_ = other.version_; 7080 bitField0_ = (bitField0_ & ~0x00000001); 7081 } else { 7082 ensureVersionIsMutable(); 7083 version_.addAll(other.version_); 7084 } 7085 7086 } 7087 if (!other.timestamp_.isEmpty()) { 7088 if (timestamp_.isEmpty()) { 7089 timestamp_ = other.timestamp_; 7090 bitField0_ = (bitField0_ & ~0x00000002); 7091 } else { 7092 ensureTimestampIsMutable(); 7093 timestamp_.addAll(other.timestamp_); 7094 } 7095 7096 } 7097 if (!other.changeset_.isEmpty()) { 7098 if (changeset_.isEmpty()) { 7099 changeset_ = other.changeset_; 7100 bitField0_ = (bitField0_ & ~0x00000004); 7101 } else { 7102 ensureChangesetIsMutable(); 7103 changeset_.addAll(other.changeset_); 7104 } 7105 7106 } 7107 if (!other.uid_.isEmpty()) { 7108 if (uid_.isEmpty()) { 7109 uid_ = other.uid_; 7110 bitField0_ = (bitField0_ & ~0x00000008); 7111 } else { 7112 ensureUidIsMutable(); 7113 uid_.addAll(other.uid_); 7114 } 7115 7116 } 7117 if (!other.userSid_.isEmpty()) { 7118 if (userSid_.isEmpty()) { 7119 userSid_ = other.userSid_; 7120 bitField0_ = (bitField0_ & ~0x00000010); 7121 } else { 7122 ensureUserSidIsMutable(); 7123 userSid_.addAll(other.userSid_); 7124 } 7125 7126 } 7127 if (!other.visible_.isEmpty()) { 7128 if (visible_.isEmpty()) { 7129 visible_ = other.visible_; 7130 bitField0_ = (bitField0_ & ~0x00000020); 7131 } else { 7132 ensureVisibleIsMutable(); 7133 visible_.addAll(other.visible_); 7134 } 7135 7136 } 7137 setUnknownFields( 7138 getUnknownFields().concat(other.unknownFields)); 7139 return this; 7140 } 7141 7142 @Override 7143 public final boolean isInitialized() { 7144 return true; 7145 } 7146 7147 @Override 7148 public Builder mergeFrom( 7149 com.google.protobuf.CodedInputStream input, 7150 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7151 throws java.io.IOException { 7152 crosby.binary.Osmformat.DenseInfo parsedMessage = null; 7153 try { 7154 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 7155 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7156 parsedMessage = (crosby.binary.Osmformat.DenseInfo) e.getUnfinishedMessage(); 7157 throw e; 7158 } finally { 7159 if (parsedMessage != null) { 7160 mergeFrom(parsedMessage); 7161 } 7162 } 7163 return this; 7164 } 7165 private int bitField0_; 7166 7167 private java.util.List<java.lang.Integer> version_ = java.util.Collections.emptyList(); 7168 private void ensureVersionIsMutable() { 7169 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 7170 version_ = new java.util.ArrayList<>(version_); 7171 bitField0_ |= 0x00000001; 7172 } 7173 } 6880 super(DEFAULT_INSTANCE); 6881 } 6882 6883 7174 6884 /** 7175 6885 * <code>repeated int32 version = 1 [packed = true];</code> 7176 6886 */ 7177 @Override 7178 public java.util.List<java.lang.Integer> 6887 public java.util.List<java.lang.Integer> 7179 6888 getVersionList() { 7180 return java.util.Collections.unmodifiableList(version_); 6889 return java.util.Collections.unmodifiableList( 6890 instance.getVersionList()); 7181 6891 } 7182 6892 /** 7183 6893 * <code>repeated int32 version = 1 [packed = true];</code> 7184 6894 */ 7185 @Override 7186 public int getVersionCount() { 7187 return version_.size(); 6895 public int getVersionCount() { 6896 return instance.getVersionCount(); 7188 6897 } 7189 6898 /** 7190 6899 * <code>repeated int32 version = 1 [packed = true];</code> 7191 6900 */ 7192 @Override 7193 public int getVersion(int index) { 7194 return version_.get(index); 6901 public int getVersion(int index) { 6902 return instance.getVersion(index); 7195 6903 } 7196 6904 /** … … 7199 6907 public Builder setVersion( 7200 6908 int index, int value) { 7201 ensureVersionIsMutable(); 7202 version_.set(index, value); 7203 6909 copyOnWrite(); 6910 instance.setVersion(index, value); 7204 6911 return this; 7205 6912 } … … 7208 6915 */ 7209 6916 public Builder addVersion(int value) { 7210 ensureVersionIsMutable(); 7211 version_.add(value); 7212 6917 copyOnWrite(); 6918 instance.addVersion(value); 7213 6919 return this; 7214 6920 } … … 7218 6924 public Builder addAllVersion( 7219 6925 java.lang.Iterable<? extends java.lang.Integer> values) { 7220 ensureVersionIsMutable(); 7221 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7222 values, version_); 7223 6926 copyOnWrite(); 6927 instance.addAllVersion(values); 7224 6928 return this; 7225 6929 } … … 7228 6932 */ 7229 6933 public Builder clearVersion() { 7230 version_ = java.util.Collections.emptyList(); 7231 bitField0_ = (bitField0_ & ~0x00000001); 7232 7233 return this; 7234 } 7235 7236 private java.util.List<java.lang.Long> timestamp_ = java.util.Collections.emptyList(); 7237 private void ensureTimestampIsMutable() { 7238 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 7239 timestamp_ = new java.util.ArrayList<>(timestamp_); 7240 bitField0_ |= 0x00000002; 7241 } 7242 } 7243 /** 6934 copyOnWrite(); 6935 instance.clearVersion(); 6936 return this; 6937 } 6938 6939 /** 6940 * <pre> 6941 * DELTA coded 6942 * </pre> 6943 * 7244 6944 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7245 * 6945 */ 6946 public java.util.List<java.lang.Long> 6947 getTimestampList() { 6948 return java.util.Collections.unmodifiableList( 6949 instance.getTimestampList()); 6950 } 6951 /** 7246 6952 * <pre> 7247 6953 * DELTA coded 7248 6954 * </pre> 7249 */ 7250 @Override 7251 public java.util.List<java.lang.Long> 7252 getTimestampList() { 7253 return java.util.Collections.unmodifiableList(timestamp_); 7254 } 7255 /** 6955 * 7256 6956 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7257 * 6957 */ 6958 public int getTimestampCount() { 6959 return instance.getTimestampCount(); 6960 } 6961 /** 7258 6962 * <pre> 7259 6963 * DELTA coded 7260 6964 * </pre> 7261 */ 7262 @Override 7263 public int getTimestampCount() { 7264 return timestamp_.size(); 7265 } 7266 /** 6965 * 7267 6966 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7268 * 6967 */ 6968 public long getTimestamp(int index) { 6969 return instance.getTimestamp(index); 6970 } 6971 /** 7269 6972 * <pre> 7270 6973 * DELTA coded 7271 6974 * </pre> 7272 */ 7273 @Override 7274 public long getTimestamp(int index) { 7275 return timestamp_.get(index); 7276 } 7277 /** 6975 * 7278 6976 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7279 *7280 * <pre>7281 * DELTA coded7282 * </pre>7283 6977 */ 7284 6978 public Builder setTimestamp( 7285 6979 int index, long value) { 7286 ensureTimestampIsMutable(); 7287 timestamp_.set(index, value); 7288 7289 return this; 7290 } 7291 /** 6980 copyOnWrite(); 6981 instance.setTimestamp(index, value); 6982 return this; 6983 } 6984 /** 6985 * <pre> 6986 * DELTA coded 6987 * </pre> 6988 * 7292 6989 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7293 * 6990 */ 6991 public Builder addTimestamp(long value) { 6992 copyOnWrite(); 6993 instance.addTimestamp(value); 6994 return this; 6995 } 6996 /** 7294 6997 * <pre> 7295 6998 * DELTA coded 7296 6999 * </pre> 7297 */ 7298 public Builder addTimestamp(long value) { 7299 ensureTimestampIsMutable(); 7300 timestamp_.add(value); 7301 7302 return this; 7303 } 7304 /** 7000 * 7305 7001 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7306 *7307 * <pre>7308 * DELTA coded7309 * </pre>7310 7002 */ 7311 7003 public Builder addAllTimestamp( 7312 7004 java.lang.Iterable<? extends java.lang.Long> values) { 7313 ensureTimestampIsMutable(); 7314 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7315 values, timestamp_); 7316 7317 return this; 7318 } 7319 /** 7005 copyOnWrite(); 7006 instance.addAllTimestamp(values); 7007 return this; 7008 } 7009 /** 7010 * <pre> 7011 * DELTA coded 7012 * </pre> 7013 * 7320 7014 * <code>repeated sint64 timestamp = 2 [packed = true];</code> 7321 * 7015 */ 7016 public Builder clearTimestamp() { 7017 copyOnWrite(); 7018 instance.clearTimestamp(); 7019 return this; 7020 } 7021 7022 /** 7322 7023 * <pre> 7323 7024 * DELTA coded 7324 7025 * </pre> 7325 */ 7326 public Builder clearTimestamp() { 7327 timestamp_ = java.util.Collections.emptyList(); 7328 bitField0_ = (bitField0_ & ~0x00000002); 7329 7330 return this; 7331 } 7332 7333 private java.util.List<java.lang.Long> changeset_ = java.util.Collections.emptyList(); 7334 private void ensureChangesetIsMutable() { 7335 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 7336 changeset_ = new java.util.ArrayList<>(changeset_); 7337 bitField0_ |= 0x00000004; 7338 } 7339 } 7340 /** 7026 * 7341 7027 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7342 * 7028 */ 7029 public java.util.List<java.lang.Long> 7030 getChangesetList() { 7031 return java.util.Collections.unmodifiableList( 7032 instance.getChangesetList()); 7033 } 7034 /** 7343 7035 * <pre> 7344 7036 * DELTA coded 7345 7037 * </pre> 7346 */ 7347 @Override 7348 public java.util.List<java.lang.Long> 7349 getChangesetList() { 7350 return java.util.Collections.unmodifiableList(changeset_); 7351 } 7352 /** 7038 * 7353 7039 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7354 * 7040 */ 7041 public int getChangesetCount() { 7042 return instance.getChangesetCount(); 7043 } 7044 /** 7355 7045 * <pre> 7356 7046 * DELTA coded 7357 7047 * </pre> 7358 */ 7359 @Override 7360 public int getChangesetCount() { 7361 return changeset_.size(); 7362 } 7363 /** 7048 * 7364 7049 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7365 * 7050 */ 7051 public long getChangeset(int index) { 7052 return instance.getChangeset(index); 7053 } 7054 /** 7366 7055 * <pre> 7367 7056 * DELTA coded 7368 7057 * </pre> 7369 */ 7370 @Override 7371 public long getChangeset(int index) { 7372 return changeset_.get(index); 7373 } 7374 /** 7058 * 7375 7059 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7376 *7377 * <pre>7378 * DELTA coded7379 * </pre>7380 7060 */ 7381 7061 public Builder setChangeset( 7382 7062 int index, long value) { 7383 ensureChangesetIsMutable(); 7384 changeset_.set(index, value); 7385 7386 return this; 7387 } 7388 /** 7063 copyOnWrite(); 7064 instance.setChangeset(index, value); 7065 return this; 7066 } 7067 /** 7068 * <pre> 7069 * DELTA coded 7070 * </pre> 7071 * 7389 7072 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7390 * 7073 */ 7074 public Builder addChangeset(long value) { 7075 copyOnWrite(); 7076 instance.addChangeset(value); 7077 return this; 7078 } 7079 /** 7391 7080 * <pre> 7392 7081 * DELTA coded 7393 7082 * </pre> 7394 */ 7395 public Builder addChangeset(long value) { 7396 ensureChangesetIsMutable(); 7397 changeset_.add(value); 7398 7399 return this; 7400 } 7401 /** 7083 * 7402 7084 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7403 *7404 * <pre>7405 * DELTA coded7406 * </pre>7407 7085 */ 7408 7086 public Builder addAllChangeset( 7409 7087 java.lang.Iterable<? extends java.lang.Long> values) { 7410 ensureChangesetIsMutable(); 7411 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7412 values, changeset_); 7413 7414 return this; 7415 } 7416 /** 7088 copyOnWrite(); 7089 instance.addAllChangeset(values); 7090 return this; 7091 } 7092 /** 7093 * <pre> 7094 * DELTA coded 7095 * </pre> 7096 * 7417 7097 * <code>repeated sint64 changeset = 3 [packed = true];</code> 7418 * 7098 */ 7099 public Builder clearChangeset() { 7100 copyOnWrite(); 7101 instance.clearChangeset(); 7102 return this; 7103 } 7104 7105 /** 7419 7106 * <pre> 7420 7107 * DELTA coded 7421 7108 * </pre> 7422 */ 7423 public Builder clearChangeset() { 7424 changeset_ = java.util.Collections.emptyList(); 7425 bitField0_ = (bitField0_ & ~0x00000004); 7426 7427 return this; 7428 } 7429 7430 private java.util.List<java.lang.Integer> uid_ = java.util.Collections.emptyList(); 7431 private void ensureUidIsMutable() { 7432 if (!((bitField0_ & 0x00000008) == 0x00000008)) { 7433 uid_ = new java.util.ArrayList<>(uid_); 7434 bitField0_ |= 0x00000008; 7435 } 7436 } 7437 /** 7109 * 7438 7110 * <code>repeated sint32 uid = 4 [packed = true];</code> 7439 * 7111 */ 7112 public java.util.List<java.lang.Integer> 7113 getUidList() { 7114 return java.util.Collections.unmodifiableList( 7115 instance.getUidList()); 7116 } 7117 /** 7440 7118 * <pre> 7441 7119 * DELTA coded 7442 7120 * </pre> 7443 */ 7444 @Override 7445 public java.util.List<java.lang.Integer> 7446 getUidList() { 7447 return java.util.Collections.unmodifiableList(uid_); 7448 } 7449 /** 7121 * 7450 7122 * <code>repeated sint32 uid = 4 [packed = true];</code> 7451 * 7123 */ 7124 public int getUidCount() { 7125 return instance.getUidCount(); 7126 } 7127 /** 7452 7128 * <pre> 7453 7129 * DELTA coded 7454 7130 * </pre> 7455 */ 7456 @Override 7457 public int getUidCount() { 7458 return uid_.size(); 7459 } 7460 /** 7131 * 7461 7132 * <code>repeated sint32 uid = 4 [packed = true];</code> 7462 * 7133 */ 7134 public int getUid(int index) { 7135 return instance.getUid(index); 7136 } 7137 /** 7463 7138 * <pre> 7464 7139 * DELTA coded 7465 7140 * </pre> 7466 */ 7467 @Override 7468 public int getUid(int index) { 7469 return uid_.get(index); 7470 } 7471 /** 7141 * 7472 7142 * <code>repeated sint32 uid = 4 [packed = true];</code> 7473 *7474 * <pre>7475 * DELTA coded7476 * </pre>7477 7143 */ 7478 7144 public Builder setUid( 7479 7145 int index, int value) { 7480 ensureUidIsMutable(); 7481 uid_.set(index, value); 7482 7483 return this; 7484 } 7485 /** 7146 copyOnWrite(); 7147 instance.setUid(index, value); 7148 return this; 7149 } 7150 /** 7151 * <pre> 7152 * DELTA coded 7153 * </pre> 7154 * 7486 7155 * <code>repeated sint32 uid = 4 [packed = true];</code> 7487 * 7156 */ 7157 public Builder addUid(int value) { 7158 copyOnWrite(); 7159 instance.addUid(value); 7160 return this; 7161 } 7162 /** 7488 7163 * <pre> 7489 7164 * DELTA coded 7490 7165 * </pre> 7491 */ 7492 public Builder addUid(int value) { 7493 ensureUidIsMutable(); 7494 uid_.add(value); 7495 7496 return this; 7497 } 7498 /** 7166 * 7499 7167 * <code>repeated sint32 uid = 4 [packed = true];</code> 7500 *7501 * <pre>7502 * DELTA coded7503 * </pre>7504 7168 */ 7505 7169 public Builder addAllUid( 7506 7170 java.lang.Iterable<? extends java.lang.Integer> values) { 7507 ensureUidIsMutable(); 7508 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7509 values, uid_); 7510 7511 return this; 7512 } 7513 /** 7171 copyOnWrite(); 7172 instance.addAllUid(values); 7173 return this; 7174 } 7175 /** 7176 * <pre> 7177 * DELTA coded 7178 * </pre> 7179 * 7514 7180 * <code>repeated sint32 uid = 4 [packed = true];</code> 7515 *7516 * <pre>7517 * DELTA coded7518 * </pre>7519 7181 */ 7520 7182 public Builder clearUid() { 7521 uid_ = java.util.Collections.emptyList(); 7522 bitField0_ = (bitField0_ & ~0x00000008); 7523 7524 return this; 7525 } 7526 7527 private java.util.List<java.lang.Integer> userSid_ = java.util.Collections.emptyList(); 7528 private void ensureUserSidIsMutable() { 7529 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 7530 userSid_ = new java.util.ArrayList<>(userSid_); 7531 bitField0_ |= 0x00000010; 7532 } 7533 } 7534 /** 7183 copyOnWrite(); 7184 instance.clearUid(); 7185 return this; 7186 } 7187 7188 /** 7189 * <pre> 7190 * String IDs for usernames. DELTA coded 7191 * </pre> 7192 * 7535 7193 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7536 * 7194 */ 7195 public java.util.List<java.lang.Integer> 7196 getUserSidList() { 7197 return java.util.Collections.unmodifiableList( 7198 instance.getUserSidList()); 7199 } 7200 /** 7537 7201 * <pre> 7538 7202 * String IDs for usernames. DELTA coded 7539 7203 * </pre> 7540 */ 7541 @Override 7542 public java.util.List<java.lang.Integer> 7543 getUserSidList() { 7544 return java.util.Collections.unmodifiableList(userSid_); 7545 } 7546 /** 7204 * 7547 7205 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7548 * 7206 */ 7207 public int getUserSidCount() { 7208 return instance.getUserSidCount(); 7209 } 7210 /** 7549 7211 * <pre> 7550 7212 * String IDs for usernames. DELTA coded 7551 7213 * </pre> 7552 */ 7553 @Override 7554 public int getUserSidCount() { 7555 return userSid_.size(); 7556 } 7557 /** 7214 * 7558 7215 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7559 * 7216 */ 7217 public int getUserSid(int index) { 7218 return instance.getUserSid(index); 7219 } 7220 /** 7560 7221 * <pre> 7561 7222 * String IDs for usernames. DELTA coded 7562 7223 * </pre> 7563 */ 7564 @Override 7565 public int getUserSid(int index) { 7566 return userSid_.get(index); 7567 } 7568 /** 7224 * 7569 7225 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7570 *7571 * <pre>7572 * String IDs for usernames. DELTA coded7573 * </pre>7574 7226 */ 7575 7227 public Builder setUserSid( 7576 7228 int index, int value) { 7577 ensureUserSidIsMutable(); 7578 userSid_.set(index, value); 7579 7580 return this; 7581 } 7582 /** 7229 copyOnWrite(); 7230 instance.setUserSid(index, value); 7231 return this; 7232 } 7233 /** 7234 * <pre> 7235 * String IDs for usernames. DELTA coded 7236 * </pre> 7237 * 7583 7238 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7584 * 7239 */ 7240 public Builder addUserSid(int value) { 7241 copyOnWrite(); 7242 instance.addUserSid(value); 7243 return this; 7244 } 7245 /** 7585 7246 * <pre> 7586 7247 * String IDs for usernames. DELTA coded 7587 7248 * </pre> 7588 */ 7589 public Builder addUserSid(int value) { 7590 ensureUserSidIsMutable(); 7591 userSid_.add(value); 7592 7593 return this; 7594 } 7595 /** 7249 * 7596 7250 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7597 *7598 * <pre>7599 * String IDs for usernames. DELTA coded7600 * </pre>7601 7251 */ 7602 7252 public Builder addAllUserSid( 7603 7253 java.lang.Iterable<? extends java.lang.Integer> values) { 7604 ensureUserSidIsMutable(); 7605 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7606 values, userSid_); 7607 7608 return this; 7609 } 7610 /** 7254 copyOnWrite(); 7255 instance.addAllUserSid(values); 7256 return this; 7257 } 7258 /** 7259 * <pre> 7260 * String IDs for usernames. DELTA coded 7261 * </pre> 7262 * 7611 7263 * <code>repeated sint32 user_sid = 5 [packed = true];</code> 7612 *7613 * <pre>7614 * String IDs for usernames. DELTA coded7615 * </pre>7616 7264 */ 7617 7265 public Builder clearUserSid() { 7618 userSid_ = java.util.Collections.emptyList(); 7619 bitField0_ = (bitField0_ & ~0x00000010); 7620 7621 return this; 7622 } 7623 7624 private java.util.List<java.lang.Boolean> visible_ = java.util.Collections.emptyList(); 7625 private void ensureVisibleIsMutable() { 7626 if (!((bitField0_ & 0x00000020) == 0x00000020)) { 7627 visible_ = new java.util.ArrayList<>(visible_); 7628 bitField0_ |= 0x00000020; 7629 } 7630 } 7631 /** 7632 * <code>repeated bool visible = 6 [packed = true];</code> 7633 * 7266 copyOnWrite(); 7267 instance.clearUserSid(); 7268 return this; 7269 } 7270 7271 /** 7634 7272 * <pre> 7635 7273 * The visible flag is used to store history information. It indicates that … … 7642 7280 * set. 7643 7281 * </pre> 7644 */ 7645 @Override 7646 public java.util.List<java.lang.Boolean> 7282 * 7283 * <code>repeated bool visible = 6 [packed = true];</code> 7284 */ 7285 public java.util.List<java.lang.Boolean> 7647 7286 getVisibleList() { 7648 return java.util.Collections.unmodifiableList(visible_); 7649 } 7650 /** 7651 * <code>repeated bool visible = 6 [packed = true];</code> 7652 * 7287 return java.util.Collections.unmodifiableList( 7288 instance.getVisibleList()); 7289 } 7290 /** 7653 7291 * <pre> 7654 7292 * The visible flag is used to store history information. It indicates that … … 7661 7299 * set. 7662 7300 * </pre> 7663 */ 7664 @Override 7665 public int getVisibleCount() { 7666 return visible_.size(); 7667 } 7668 /** 7301 * 7669 7302 * <code>repeated bool visible = 6 [packed = true];</code> 7670 * 7303 */ 7304 public int getVisibleCount() { 7305 return instance.getVisibleCount(); 7306 } 7307 /** 7671 7308 * <pre> 7672 7309 * The visible flag is used to store history information. It indicates that … … 7679 7316 * set. 7680 7317 * </pre> 7681 */ 7682 @Override 7683 public boolean getVisible(int index) { 7684 return visible_.get(index); 7685 } 7686 /** 7318 * 7687 7319 * <code>repeated bool visible = 6 [packed = true];</code> 7688 * 7320 */ 7321 public boolean getVisible(int index) { 7322 return instance.getVisible(index); 7323 } 7324 /** 7689 7325 * <pre> 7690 7326 * The visible flag is used to store history information. It indicates that … … 7697 7333 * set. 7698 7334 * </pre> 7335 * 7336 * <code>repeated bool visible = 6 [packed = true];</code> 7699 7337 */ 7700 7338 public Builder setVisible( 7701 7339 int index, boolean value) { 7702 ensureVisibleIsMutable(); 7703 visible_.set(index, value); 7704 7705 return this; 7706 } 7707 /** 7708 * <code>repeated bool visible = 6 [packed = true];</code> 7709 * 7340 copyOnWrite(); 7341 instance.setVisible(index, value); 7342 return this; 7343 } 7344 /** 7710 7345 * <pre> 7711 7346 * The visible flag is used to store history information. It indicates that … … 7718 7353 * set. 7719 7354 * </pre> 7355 * 7356 * <code>repeated bool visible = 6 [packed = true];</code> 7720 7357 */ 7721 7358 public Builder addVisible(boolean value) { 7722 ensureVisibleIsMutable(); 7723 visible_.add(value); 7724 7725 return this; 7726 } 7727 /** 7728 * <code>repeated bool visible = 6 [packed = true];</code> 7729 * 7359 copyOnWrite(); 7360 instance.addVisible(value); 7361 return this; 7362 } 7363 /** 7730 7364 * <pre> 7731 7365 * The visible flag is used to store history information. It indicates that … … 7738 7372 * set. 7739 7373 * </pre> 7374 * 7375 * <code>repeated bool visible = 6 [packed = true];</code> 7740 7376 */ 7741 7377 public Builder addAllVisible( 7742 7378 java.lang.Iterable<? extends java.lang.Boolean> values) { 7743 ensureVisibleIsMutable(); 7744 com.google.protobuf.AbstractMessageLite.Builder.addAll( 7745 values, visible_); 7746 7747 return this; 7748 } 7749 /** 7750 * <code>repeated bool visible = 6 [packed = true];</code> 7751 * 7379 copyOnWrite(); 7380 instance.addAllVisible(values); 7381 return this; 7382 } 7383 /** 7752 7384 * <pre> 7753 7385 * The visible flag is used to store history information. It indicates that … … 7760 7392 * set. 7761 7393 * </pre> 7394 * 7395 * <code>repeated bool visible = 6 [packed = true];</code> 7762 7396 */ 7763 7397 public Builder clearVisible() { 7764 visible_ = java.util.Collections.emptyList(); 7765 bitField0_ = (bitField0_ & ~0x00000020); 7766 7398 copyOnWrite(); 7399 instance.clearVisible(); 7767 7400 return this; 7768 7401 } … … 7770 7403 // @@protoc_insertion_point(builder_scope:OSMPBF.DenseInfo) 7771 7404 } 7772 7405 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 7406 protected final java.lang.Object dynamicMethod( 7407 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 7408 java.lang.Object arg0, java.lang.Object arg1) { 7409 switch (method) { 7410 case NEW_MUTABLE_INSTANCE: { 7411 return new crosby.binary.Osmformat.DenseInfo(); 7412 } 7413 case IS_INITIALIZED: { 7414 return DEFAULT_INSTANCE; 7415 } 7416 case MAKE_IMMUTABLE: { 7417 version_.makeImmutable(); 7418 timestamp_.makeImmutable(); 7419 changeset_.makeImmutable(); 7420 uid_.makeImmutable(); 7421 userSid_.makeImmutable(); 7422 visible_.makeImmutable(); 7423 return null; 7424 } 7425 case NEW_BUILDER: { 7426 return new Builder(); 7427 } 7428 case VISIT: { 7429 Visitor visitor = (Visitor) arg0; 7430 crosby.binary.Osmformat.DenseInfo other = (crosby.binary.Osmformat.DenseInfo) arg1; 7431 version_= visitor.visitIntList(version_, other.version_); 7432 timestamp_= visitor.visitLongList(timestamp_, other.timestamp_); 7433 changeset_= visitor.visitLongList(changeset_, other.changeset_); 7434 uid_= visitor.visitIntList(uid_, other.uid_); 7435 userSid_= visitor.visitIntList(userSid_, other.userSid_); 7436 visible_= visitor.visitBooleanList(visible_, other.visible_); 7437 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 7438 .INSTANCE) { 7439 } 7440 return this; 7441 } 7442 case MERGE_FROM_STREAM: { 7443 com.google.protobuf.CodedInputStream input = 7444 (com.google.protobuf.CodedInputStream) arg0; 7445 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 7446 (com.google.protobuf.ExtensionRegistryLite) arg1; 7447 try { 7448 boolean done = false; 7449 while (!done) { 7450 int tag = input.readTag(); 7451 switch (tag) { 7452 case 0: 7453 done = true; 7454 break; 7455 default: { 7456 if (!parseUnknownField(tag, input)) { 7457 done = true; 7458 } 7459 break; 7460 } 7461 case 8: { 7462 if (!version_.isModifiable()) { 7463 version_ = 7464 com.google.protobuf.GeneratedMessageLite.mutableCopy(version_); 7465 } 7466 version_.addInt(input.readInt32()); 7467 break; 7468 } 7469 case 10: { 7470 int length = input.readRawVarint32(); 7471 int limit = input.pushLimit(length); 7472 if (!version_.isModifiable() && input.getBytesUntilLimit() > 0) { 7473 version_ = 7474 com.google.protobuf.GeneratedMessageLite.mutableCopy(version_); 7475 } 7476 while (input.getBytesUntilLimit() > 0) { 7477 version_.addInt(input.readInt32()); 7478 } 7479 input.popLimit(limit); 7480 break; 7481 } 7482 case 16: { 7483 if (!timestamp_.isModifiable()) { 7484 timestamp_ = 7485 com.google.protobuf.GeneratedMessageLite.mutableCopy(timestamp_); 7486 } 7487 timestamp_.addLong(input.readSInt64()); 7488 break; 7489 } 7490 case 18: { 7491 int length = input.readRawVarint32(); 7492 int limit = input.pushLimit(length); 7493 if (!timestamp_.isModifiable() && input.getBytesUntilLimit() > 0) { 7494 timestamp_ = 7495 com.google.protobuf.GeneratedMessageLite.mutableCopy(timestamp_); 7496 } 7497 while (input.getBytesUntilLimit() > 0) { 7498 timestamp_.addLong(input.readSInt64()); 7499 } 7500 input.popLimit(limit); 7501 break; 7502 } 7503 case 24: { 7504 if (!changeset_.isModifiable()) { 7505 changeset_ = 7506 com.google.protobuf.GeneratedMessageLite.mutableCopy(changeset_); 7507 } 7508 changeset_.addLong(input.readSInt64()); 7509 break; 7510 } 7511 case 26: { 7512 int length = input.readRawVarint32(); 7513 int limit = input.pushLimit(length); 7514 if (!changeset_.isModifiable() && input.getBytesUntilLimit() > 0) { 7515 changeset_ = 7516 com.google.protobuf.GeneratedMessageLite.mutableCopy(changeset_); 7517 } 7518 while (input.getBytesUntilLimit() > 0) { 7519 changeset_.addLong(input.readSInt64()); 7520 } 7521 input.popLimit(limit); 7522 break; 7523 } 7524 case 32: { 7525 if (!uid_.isModifiable()) { 7526 uid_ = 7527 com.google.protobuf.GeneratedMessageLite.mutableCopy(uid_); 7528 } 7529 uid_.addInt(input.readSInt32()); 7530 break; 7531 } 7532 case 34: { 7533 int length = input.readRawVarint32(); 7534 int limit = input.pushLimit(length); 7535 if (!uid_.isModifiable() && input.getBytesUntilLimit() > 0) { 7536 uid_ = 7537 com.google.protobuf.GeneratedMessageLite.mutableCopy(uid_); 7538 } 7539 while (input.getBytesUntilLimit() > 0) { 7540 uid_.addInt(input.readSInt32()); 7541 } 7542 input.popLimit(limit); 7543 break; 7544 } 7545 case 40: { 7546 if (!userSid_.isModifiable()) { 7547 userSid_ = 7548 com.google.protobuf.GeneratedMessageLite.mutableCopy(userSid_); 7549 } 7550 userSid_.addInt(input.readSInt32()); 7551 break; 7552 } 7553 case 42: { 7554 int length = input.readRawVarint32(); 7555 int limit = input.pushLimit(length); 7556 if (!userSid_.isModifiable() && input.getBytesUntilLimit() > 0) { 7557 userSid_ = 7558 com.google.protobuf.GeneratedMessageLite.mutableCopy(userSid_); 7559 } 7560 while (input.getBytesUntilLimit() > 0) { 7561 userSid_.addInt(input.readSInt32()); 7562 } 7563 input.popLimit(limit); 7564 break; 7565 } 7566 case 48: { 7567 if (!visible_.isModifiable()) { 7568 visible_ = 7569 com.google.protobuf.GeneratedMessageLite.mutableCopy(visible_); 7570 } 7571 visible_.addBoolean(input.readBool()); 7572 break; 7573 } 7574 case 50: { 7575 int length = input.readRawVarint32(); 7576 int limit = input.pushLimit(length); 7577 if (!visible_.isModifiable() && input.getBytesUntilLimit() > 0) { 7578 final int currentSize = visible_.size(); 7579 visible_ = visible_.mutableCopyWithCapacity( 7580 currentSize + (length/1)); 7581 } 7582 while (input.getBytesUntilLimit() > 0) { 7583 visible_.addBoolean(input.readBool()); 7584 } 7585 input.popLimit(limit); 7586 break; 7587 } 7588 } 7589 } 7590 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7591 throw new RuntimeException(e.setUnfinishedMessage(this)); 7592 } catch (java.io.IOException e) { 7593 throw new RuntimeException( 7594 new com.google.protobuf.InvalidProtocolBufferException( 7595 e.getMessage()).setUnfinishedMessage(this)); 7596 } finally { 7597 } 7598 } 7599 // fall through 7600 case GET_DEFAULT_INSTANCE: { 7601 return DEFAULT_INSTANCE; 7602 } 7603 case GET_PARSER: { 7604 if (PARSER == null) { synchronized (crosby.binary.Osmformat.DenseInfo.class) { 7605 if (PARSER == null) { 7606 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 7607 } 7608 } 7609 } 7610 return PARSER; 7611 } 7612 } 7613 throw new UnsupportedOperationException(); 7614 } 7615 7616 7617 // @@protoc_insertion_point(class_scope:OSMPBF.DenseInfo) 7618 private static final crosby.binary.Osmformat.DenseInfo DEFAULT_INSTANCE; 7773 7619 static { 7774 defaultInstance = new DenseInfo(true); 7775 defaultInstance.initFields(); 7776 } 7777 7778 // @@protoc_insertion_point(class_scope:OSMPBF.DenseInfo) 7620 DEFAULT_INSTANCE = new DenseInfo(); 7621 DEFAULT_INSTANCE.makeImmutable(); 7622 } 7623 7624 public static crosby.binary.Osmformat.DenseInfo getDefaultInstance() { 7625 return DEFAULT_INSTANCE; 7626 } 7627 7628 private static volatile com.google.protobuf.Parser<DenseInfo> PARSER; 7629 7630 public static com.google.protobuf.Parser<DenseInfo> parser() { 7631 return DEFAULT_INSTANCE.getParserForType(); 7632 } 7779 7633 } 7780 7634 … … 7784 7638 7785 7639 /** 7786 * <code>required int64 id = 1;</code> 7787 * 7788 * <pre> 7789 * 7640 * <pre> 7641 * 7790 7642 * // Parallel arrays. 7791 7643 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 7793 7645 * optional Info info = 4; 7794 7646 * </pre> 7647 * 7648 * <code>required int64 id = 1;</code> 7795 7649 */ 7796 7650 boolean hasId(); 7797 7651 /** 7798 * <code>required int64 id = 1;</code> 7799 * 7800 * <pre> 7801 * 7652 * <pre> 7653 * 7802 7654 * // Parallel arrays. 7803 7655 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 7805 7657 * optional Info info = 4; 7806 7658 * </pre> 7659 * 7660 * <code>required int64 id = 1;</code> 7807 7661 */ 7808 7662 long getId(); 7809 7663 } 7810 7664 /** 7811 * Protobuf type {@code OSMPBF.ChangeSet}7812 *7813 7665 * <pre> 7814 7666 * THIS IS STUB DESIGN FOR CHANGESETS. NOT USED RIGHT NOW. 7815 7667 * TODO: REMOVE THIS? 7816 7668 * </pre> 7669 * 7670 * Protobuf type {@code OSMPBF.ChangeSet} 7817 7671 */ 7818 public static final class ChangeSet extends 7819 com.google.protobuf.GeneratedMessageLite implements 7672 public static final class ChangeSet extends 7673 com.google.protobuf.GeneratedMessageLite< 7674 ChangeSet, ChangeSet.Builder> implements 7820 7675 // @@protoc_insertion_point(message_implements:OSMPBF.ChangeSet) 7821 7676 ChangeSetOrBuilder { 7822 // Use ChangeSet.newBuilder() to construct. 7823 private ChangeSet(com.google.protobuf.GeneratedMessageLite.Builder builder) { 7824 super(builder); 7825 this.unknownFields = builder.getUnknownFields(); 7826 } 7827 private ChangeSet(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 7828 7829 private static final ChangeSet defaultInstance; 7830 public static ChangeSet getDefaultInstance() { 7831 return defaultInstance; 7832 } 7833 7834 @Override 7835 public ChangeSet getDefaultInstanceForType() { 7836 return defaultInstance; 7837 } 7838 7839 private final com.google.protobuf.ByteString unknownFields; 7840 private ChangeSet( 7841 com.google.protobuf.CodedInputStream input, 7842 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7843 throws com.google.protobuf.InvalidProtocolBufferException { 7844 initFields(); 7845 int mutable_bitField0_ = 0; 7846 com.google.protobuf.ByteString.Output unknownFieldsOutput = 7847 com.google.protobuf.ByteString.newOutput(); 7848 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 7849 com.google.protobuf.CodedOutputStream.newInstance( 7850 unknownFieldsOutput); 7851 try { 7852 boolean done = false; 7853 while (!done) { 7854 int tag = input.readTag(); 7855 switch (tag) { 7856 case 0: 7857 done = true; 7858 break; 7859 default: { 7860 if (!parseUnknownField(input, unknownFieldsCodedOutput, 7861 extensionRegistry, tag)) { 7862 done = true; 7863 } 7864 break; 7865 } 7866 case 8: { 7867 bitField0_ |= 0x00000001; 7868 id_ = input.readInt64(); 7869 break; 7870 } 7871 } 7872 } 7873 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7874 throw e.setUnfinishedMessage(this); 7875 } catch (java.io.IOException e) { 7876 throw new com.google.protobuf.InvalidProtocolBufferException( 7877 e.getMessage()).setUnfinishedMessage(this); 7878 } finally { 7879 try { 7880 unknownFieldsCodedOutput.flush(); 7881 } catch (java.io.IOException e) { 7882 // Should not happen 7883 } finally { 7884 unknownFields = unknownFieldsOutput.toByteString(); 7885 } 7886 makeExtensionsImmutable(); 7887 } 7888 } 7889 public static com.google.protobuf.Parser<ChangeSet> PARSER = 7890 new com.google.protobuf.AbstractParser<ChangeSet>() { 7891 @Override 7892 public ChangeSet parsePartialFrom( 7893 com.google.protobuf.CodedInputStream input, 7894 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7895 throws com.google.protobuf.InvalidProtocolBufferException { 7896 return new ChangeSet(input, extensionRegistry); 7897 } 7898 }; 7899 7900 @java.lang.Override 7901 public com.google.protobuf.Parser<ChangeSet> getParserForType() { 7902 return PARSER; 7903 } 7904 7677 private ChangeSet() { 7678 } 7905 7679 private int bitField0_; 7906 7680 public static final int ID_FIELD_NUMBER = 1; 7907 7681 private long id_; 7908 7682 /** 7909 * <code>required int64 id = 1;</code> 7910 * 7911 * <pre> 7912 * 7683 * <pre> 7684 * 7913 7685 * // Parallel arrays. 7914 7686 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 7916 7688 * optional Info info = 4; 7917 7689 * </pre> 7918 */ 7919 @Override 7920 public boolean hasId() { 7690 * 7691 * <code>required int64 id = 1;</code> 7692 */ 7693 public boolean hasId() { 7921 7694 return ((bitField0_ & 0x00000001) == 0x00000001); 7922 7695 } 7923 7696 /** 7924 * <code>required int64 id = 1;</code> 7925 * 7926 * <pre> 7927 * 7697 * <pre> 7698 * 7928 7699 * // Parallel arrays. 7929 7700 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 7931 7702 * optional Info info = 4; 7932 7703 * </pre> 7933 */ 7934 @Override 7935 public long getId() { 7704 * 7705 * <code>required int64 id = 1;</code> 7706 */ 7707 public long getId() { 7936 7708 return id_; 7937 7709 } 7938 7939 private void initFields() { 7710 /** 7711 * <pre> 7712 * 7713 * // Parallel arrays. 7714 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7715 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7716 * optional Info info = 4; 7717 * </pre> 7718 * 7719 * <code>required int64 id = 1;</code> 7720 */ 7721 private void setId(long value) { 7722 bitField0_ |= 0x00000001; 7723 id_ = value; 7724 } 7725 /** 7726 * <pre> 7727 * 7728 * // Parallel arrays. 7729 * repeated uint32 keys = 2 [packed = true]; // String IDs. 7730 * repeated uint32 vals = 3 [packed = true]; // String IDs. 7731 * optional Info info = 4; 7732 * </pre> 7733 * 7734 * <code>required int64 id = 1;</code> 7735 */ 7736 private void clearId() { 7737 bitField0_ = (bitField0_ & ~0x00000001); 7940 7738 id_ = 0L; 7941 7739 } 7942 private byte memoizedIsInitialized = -1; 7943 @Override 7944 public final boolean isInitialized() { 7945 byte isInitialized = memoizedIsInitialized; 7946 if (isInitialized == 1) return true; 7947 if (isInitialized == 0) return false; 7948 7949 if (!hasId()) { 7950 memoizedIsInitialized = 0; 7951 return false; 7952 } 7953 memoizedIsInitialized = 1; 7954 return true; 7955 } 7956 7957 @Override 7958 public void writeTo(com.google.protobuf.CodedOutputStream output) 7740 7741 public void writeTo(com.google.protobuf.CodedOutputStream output) 7959 7742 throws java.io.IOException { 7960 getSerializedSize();7961 7743 if (((bitField0_ & 0x00000001) == 0x00000001)) { 7962 7744 output.writeInt64(1, id_); 7963 7745 } 7964 output.writeRawBytes(unknownFields); 7965 } 7966 7967 private int memoizedSerializedSize = -1; 7968 @Override 7969 public int getSerializedSize() { 7746 unknownFields.writeTo(output); 7747 } 7748 7749 public int getSerializedSize() { 7970 7750 int size = memoizedSerializedSize; 7971 7751 if (size != -1) return size; … … 7976 7756 .computeInt64Size(1, id_); 7977 7757 } 7978 size += unknownFields. size();7758 size += unknownFields.getSerializedSize(); 7979 7759 memoizedSerializedSize = size; 7980 7760 return size; 7981 7761 } 7982 7762 7983 private static final long serialVersionUID = 0L; 7984 @java.lang.Override 7985 protected java.lang.Object writeReplace() 7986 throws java.io.ObjectStreamException { 7987 return super.writeReplace(); 7988 } 7989 7763 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7764 java.nio.ByteBuffer data) 7765 throws com.google.protobuf.InvalidProtocolBufferException { 7766 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7767 DEFAULT_INSTANCE, data); 7768 } 7769 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7770 java.nio.ByteBuffer data, 7771 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7772 throws com.google.protobuf.InvalidProtocolBufferException { 7773 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7774 DEFAULT_INSTANCE, data, extensionRegistry); 7775 } 7990 7776 public static crosby.binary.Osmformat.ChangeSet parseFrom( 7991 7777 com.google.protobuf.ByteString data) 7992 7778 throws com.google.protobuf.InvalidProtocolBufferException { 7993 return PARSER.parseFrom(data); 7779 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7780 DEFAULT_INSTANCE, data); 7994 7781 } 7995 7782 public static crosby.binary.Osmformat.ChangeSet parseFrom( … … 7997 7784 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7998 7785 throws com.google.protobuf.InvalidProtocolBufferException { 7999 return PARSER.parseFrom(data, extensionRegistry); 7786 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7787 DEFAULT_INSTANCE, data, extensionRegistry); 8000 7788 } 8001 7789 public static crosby.binary.Osmformat.ChangeSet parseFrom(byte[] data) 8002 7790 throws com.google.protobuf.InvalidProtocolBufferException { 8003 return PARSER.parseFrom(data); 7791 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7792 DEFAULT_INSTANCE, data); 8004 7793 } 8005 7794 public static crosby.binary.Osmformat.ChangeSet parseFrom( … … 8007 7796 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8008 7797 throws com.google.protobuf.InvalidProtocolBufferException { 8009 return PARSER.parseFrom(data, extensionRegistry); 7798 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7799 DEFAULT_INSTANCE, data, extensionRegistry); 8010 7800 } 8011 7801 public static crosby.binary.Osmformat.ChangeSet parseFrom(java.io.InputStream input) 8012 7802 throws java.io.IOException { 8013 return PARSER.parseFrom(input); 7803 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7804 DEFAULT_INSTANCE, input); 8014 7805 } 8015 7806 public static crosby.binary.Osmformat.ChangeSet parseFrom( … … 8017 7808 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8018 7809 throws java.io.IOException { 8019 return PARSER.parseFrom(input, extensionRegistry); 7810 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7811 DEFAULT_INSTANCE, input, extensionRegistry); 8020 7812 } 8021 7813 public static crosby.binary.Osmformat.ChangeSet parseDelimitedFrom(java.io.InputStream input) 8022 7814 throws java.io.IOException { 8023 return PARSER.parseDelimitedFrom(input);7815 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 8024 7816 } 8025 7817 public static crosby.binary.Osmformat.ChangeSet parseDelimitedFrom( … … 8027 7819 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8028 7820 throws java.io.IOException { 8029 return PARSER.parseDelimitedFrom(input, extensionRegistry);7821 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 8030 7822 } 8031 7823 public static crosby.binary.Osmformat.ChangeSet parseFrom( 8032 7824 com.google.protobuf.CodedInputStream input) 8033 7825 throws java.io.IOException { 8034 return PARSER.parseFrom(input); 7826 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7827 DEFAULT_INSTANCE, input); 8035 7828 } 8036 7829 public static crosby.binary.Osmformat.ChangeSet parseFrom( … … 8038 7831 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8039 7832 throws java.io.IOException { 8040 return PARSER.parseFrom(input, extensionRegistry); 8041 } 8042 8043 public static Builder newBuilder() { return Builder.create(); } 8044 @Override 8045 public Builder newBuilderForType() { return newBuilder(); } 7833 return com.google.protobuf.GeneratedMessageLite.parseFrom( 7834 DEFAULT_INSTANCE, input, extensionRegistry); 7835 } 7836 7837 public static Builder newBuilder() { 7838 return DEFAULT_INSTANCE.toBuilder(); 7839 } 8046 7840 public static Builder newBuilder(crosby.binary.Osmformat.ChangeSet prototype) { 8047 return newBuilder().mergeFrom(prototype); 8048 } 8049 @Override 8050 public Builder toBuilder() { return newBuilder(this); } 8051 8052 /** 8053 * Protobuf type {@code OSMPBF.ChangeSet} 8054 * 7841 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 7842 } 7843 7844 /** 8055 7845 * <pre> 8056 7846 * THIS IS STUB DESIGN FOR CHANGESETS. NOT USED RIGHT NOW. 8057 7847 * TODO: REMOVE THIS? 8058 7848 * </pre> 7849 * 7850 * Protobuf type {@code OSMPBF.ChangeSet} 8059 7851 */ 8060 7852 public static final class Builder extends 8061 7853 com.google.protobuf.GeneratedMessageLite.Builder< 8062 crosby.binary.Osmformat.ChangeSet, Builder> 8063 implements 7854 crosby.binary.Osmformat.ChangeSet, Builder> implements 8064 7855 // @@protoc_insertion_point(builder_implements:OSMPBF.ChangeSet) 8065 7856 crosby.binary.Osmformat.ChangeSetOrBuilder { 8066 7857 // Construct using crosby.binary.Osmformat.ChangeSet.newBuilder() 8067 7858 private Builder() { 8068 maybeForceBuilderInitialization(); 8069 } 8070 8071 private void maybeForceBuilderInitialization() { 8072 } 8073 private static Builder create() { 8074 return new Builder(); 8075 } 8076 8077 @Override 8078 public Builder clear() { 8079 super.clear(); 8080 id_ = 0L; 8081 bitField0_ = (bitField0_ & ~0x00000001); 8082 return this; 8083 } 8084 8085 @Override 8086 public Builder clone() { 8087 return create().mergeFrom(buildPartial()); 8088 } 8089 8090 @Override 8091 public crosby.binary.Osmformat.ChangeSet getDefaultInstanceForType() { 8092 return crosby.binary.Osmformat.ChangeSet.getDefaultInstance(); 8093 } 8094 8095 @Override 8096 public crosby.binary.Osmformat.ChangeSet build() { 8097 crosby.binary.Osmformat.ChangeSet result = buildPartial(); 8098 if (!result.isInitialized()) { 8099 throw newUninitializedMessageException(result); 8100 } 8101 return result; 8102 } 8103 8104 @Override 8105 public crosby.binary.Osmformat.ChangeSet buildPartial() { 8106 crosby.binary.Osmformat.ChangeSet result = new crosby.binary.Osmformat.ChangeSet(this); 8107 int from_bitField0_ = bitField0_; 8108 int to_bitField0_ = 0; 8109 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 8110 to_bitField0_ |= 0x00000001; 8111 } 8112 result.id_ = id_; 8113 result.bitField0_ = to_bitField0_; 8114 return result; 8115 } 8116 8117 @Override 8118 public Builder mergeFrom(crosby.binary.Osmformat.ChangeSet other) { 8119 if (other == crosby.binary.Osmformat.ChangeSet.getDefaultInstance()) return this; 8120 if (other.hasId()) { 8121 setId(other.getId()); 8122 } 8123 setUnknownFields( 8124 getUnknownFields().concat(other.unknownFields)); 8125 return this; 8126 } 8127 8128 @Override 8129 public final boolean isInitialized() { 8130 if (!hasId()) { 8131 8132 return false; 8133 } 8134 return true; 8135 } 8136 8137 @Override 8138 public Builder mergeFrom( 8139 com.google.protobuf.CodedInputStream input, 8140 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8141 throws java.io.IOException { 8142 crosby.binary.Osmformat.ChangeSet parsedMessage = null; 8143 try { 8144 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 8145 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8146 parsedMessage = (crosby.binary.Osmformat.ChangeSet) e.getUnfinishedMessage(); 8147 throw e; 8148 } finally { 8149 if (parsedMessage != null) { 8150 mergeFrom(parsedMessage); 8151 } 8152 } 8153 return this; 8154 } 8155 private int bitField0_; 8156 8157 private long id_ ; 8158 /** 8159 * <code>required int64 id = 1;</code> 8160 * 8161 * <pre> 8162 * 7859 super(DEFAULT_INSTANCE); 7860 } 7861 7862 7863 /** 7864 * <pre> 7865 * 8163 7866 * // Parallel arrays. 8164 7867 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 8166 7869 * optional Info info = 4; 8167 7870 * </pre> 8168 */ 8169 @Override 8170 public boolean hasId() { 8171 return ((bitField0_ & 0x00000001) == 0x00000001); 8172 } 8173 /** 7871 * 8174 7872 * <code>required int64 id = 1;</code> 8175 * 8176 * <pre> 8177 * 7873 */ 7874 public boolean hasId() { 7875 return instance.hasId(); 7876 } 7877 /** 7878 * <pre> 7879 * 8178 7880 * // Parallel arrays. 8179 7881 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 8181 7883 * optional Info info = 4; 8182 7884 * </pre> 8183 */ 8184 @Override 8185 public long getId() { 8186 return id_; 8187 } 8188 /** 7885 * 8189 7886 * <code>required int64 id = 1;</code> 8190 * 8191 * <pre> 8192 * 7887 */ 7888 public long getId() { 7889 return instance.getId(); 7890 } 7891 /** 7892 * <pre> 7893 * 8193 7894 * // Parallel arrays. 8194 7895 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 8196 7897 * optional Info info = 4; 8197 7898 * </pre> 7899 * 7900 * <code>required int64 id = 1;</code> 8198 7901 */ 8199 7902 public Builder setId(long value) { 8200 bitField0_ |= 0x00000001; 8201 id_ = value; 8202 8203 return this; 8204 } 8205 /** 8206 * <code>required int64 id = 1;</code> 8207 * 8208 * <pre> 8209 * 7903 copyOnWrite(); 7904 instance.setId(value); 7905 return this; 7906 } 7907 /** 7908 * <pre> 7909 * 8210 7910 * // Parallel arrays. 8211 7911 * repeated uint32 keys = 2 [packed = true]; // String IDs. … … 8213 7913 * optional Info info = 4; 8214 7914 * </pre> 7915 * 7916 * <code>required int64 id = 1;</code> 8215 7917 */ 8216 7918 public Builder clearId() { 8217 bitField0_ = (bitField0_ & ~0x00000001); 8218 id_ = 0L; 8219 7919 copyOnWrite(); 7920 instance.clearId(); 8220 7921 return this; 8221 7922 } … … 8223 7924 // @@protoc_insertion_point(builder_scope:OSMPBF.ChangeSet) 8224 7925 } 8225 7926 private byte memoizedIsInitialized = -1; 7927 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 7928 protected final java.lang.Object dynamicMethod( 7929 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 7930 java.lang.Object arg0, java.lang.Object arg1) { 7931 switch (method) { 7932 case NEW_MUTABLE_INSTANCE: { 7933 return new crosby.binary.Osmformat.ChangeSet(); 7934 } 7935 case IS_INITIALIZED: { 7936 byte isInitialized = memoizedIsInitialized; 7937 if (isInitialized == 1) return DEFAULT_INSTANCE; 7938 if (isInitialized == 0) return null; 7939 7940 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 7941 if (!hasId()) { 7942 if (shouldMemoize) { 7943 memoizedIsInitialized = 0; 7944 } 7945 return null; 7946 } 7947 if (shouldMemoize) memoizedIsInitialized = 1; 7948 return DEFAULT_INSTANCE; 7949 7950 } 7951 case MAKE_IMMUTABLE: { 7952 return null; 7953 } 7954 case NEW_BUILDER: { 7955 return new Builder(); 7956 } 7957 case VISIT: { 7958 Visitor visitor = (Visitor) arg0; 7959 crosby.binary.Osmformat.ChangeSet other = (crosby.binary.Osmformat.ChangeSet) arg1; 7960 id_ = visitor.visitLong( 7961 hasId(), id_, 7962 other.hasId(), other.id_); 7963 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 7964 .INSTANCE) { 7965 bitField0_ |= other.bitField0_; 7966 } 7967 return this; 7968 } 7969 case MERGE_FROM_STREAM: { 7970 com.google.protobuf.CodedInputStream input = 7971 (com.google.protobuf.CodedInputStream) arg0; 7972 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 7973 (com.google.protobuf.ExtensionRegistryLite) arg1; 7974 try { 7975 boolean done = false; 7976 while (!done) { 7977 int tag = input.readTag(); 7978 switch (tag) { 7979 case 0: 7980 done = true; 7981 break; 7982 default: { 7983 if (!parseUnknownField(tag, input)) { 7984 done = true; 7985 } 7986 break; 7987 } 7988 case 8: { 7989 bitField0_ |= 0x00000001; 7990 id_ = input.readInt64(); 7991 break; 7992 } 7993 } 7994 } 7995 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7996 throw new RuntimeException(e.setUnfinishedMessage(this)); 7997 } catch (java.io.IOException e) { 7998 throw new RuntimeException( 7999 new com.google.protobuf.InvalidProtocolBufferException( 8000 e.getMessage()).setUnfinishedMessage(this)); 8001 } finally { 8002 } 8003 } 8004 // fall through 8005 case GET_DEFAULT_INSTANCE: { 8006 return DEFAULT_INSTANCE; 8007 } 8008 case GET_PARSER: { 8009 if (PARSER == null) { synchronized (crosby.binary.Osmformat.ChangeSet.class) { 8010 if (PARSER == null) { 8011 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 8012 } 8013 } 8014 } 8015 return PARSER; 8016 } 8017 } 8018 throw new UnsupportedOperationException(); 8019 } 8020 8021 8022 // @@protoc_insertion_point(class_scope:OSMPBF.ChangeSet) 8023 private static final crosby.binary.Osmformat.ChangeSet DEFAULT_INSTANCE; 8226 8024 static { 8227 defaultInstance = new ChangeSet(true); 8228 defaultInstance.initFields(); 8229 } 8230 8231 // @@protoc_insertion_point(class_scope:OSMPBF.ChangeSet) 8025 DEFAULT_INSTANCE = new ChangeSet(); 8026 DEFAULT_INSTANCE.makeImmutable(); 8027 } 8028 8029 public static crosby.binary.Osmformat.ChangeSet getDefaultInstance() { 8030 return DEFAULT_INSTANCE; 8031 } 8032 8033 private static volatile com.google.protobuf.Parser<ChangeSet> PARSER; 8034 8035 public static com.google.protobuf.Parser<ChangeSet> parser() { 8036 return DEFAULT_INSTANCE.getParserForType(); 8037 } 8232 8038 } 8233 8039 … … 8246 8052 8247 8053 /** 8054 * <pre> 8055 * Parallel arrays. 8056 * </pre> 8057 * 8248 8058 * <code>repeated uint32 keys = 2 [packed = true];</code> 8249 * 8059 */ 8060 java.util.List<java.lang.Integer> getKeysList(); 8061 /** 8250 8062 * <pre> 8251 8063 * Parallel arrays. 8252 8064 * </pre> 8253 */ 8254 java.util.List<java.lang.Integer> getKeysList(); 8255 /** 8065 * 8256 8066 * <code>repeated uint32 keys = 2 [packed = true];</code> 8257 * 8067 */ 8068 int getKeysCount(); 8069 /** 8258 8070 * <pre> 8259 8071 * Parallel arrays. 8260 8072 * </pre> 8261 */ 8262 int getKeysCount(); 8263 /** 8073 * 8264 8074 * <code>repeated uint32 keys = 2 [packed = true];</code> 8265 *8266 * <pre>8267 * Parallel arrays.8268 * </pre>8269 8075 */ 8270 8076 int getKeys(int index); 8271 8077 8272 8078 /** 8079 * <pre> 8080 * String IDs. 8081 * </pre> 8082 * 8273 8083 * <code>repeated uint32 vals = 3 [packed = true];</code> 8274 * 8084 */ 8085 java.util.List<java.lang.Integer> getValsList(); 8086 /** 8275 8087 * <pre> 8276 8088 * String IDs. 8277 8089 * </pre> 8278 */ 8279 java.util.List<java.lang.Integer> getValsList(); 8280 /** 8090 * 8281 8091 * <code>repeated uint32 vals = 3 [packed = true];</code> 8282 * 8092 */ 8093 int getValsCount(); 8094 /** 8283 8095 * <pre> 8284 8096 * String IDs. 8285 8097 * </pre> 8286 */ 8287 int getValsCount(); 8288 /** 8098 * 8289 8099 * <code>repeated uint32 vals = 3 [packed = true];</code> 8290 *8291 * <pre>8292 * String IDs.8293 * </pre>8294 8100 */ 8295 8101 int getVals(int index); 8296 8102 8297 8103 /** 8104 * <pre> 8105 * May be omitted in omitmeta 8106 * </pre> 8107 * 8298 8108 * <code>optional .OSMPBF.Info info = 4;</code> 8299 * 8109 */ 8110 boolean hasInfo(); 8111 /** 8300 8112 * <pre> 8301 8113 * May be omitted in omitmeta 8302 8114 * </pre> 8303 */ 8304 boolean hasInfo(); 8305 /** 8115 * 8306 8116 * <code>optional .OSMPBF.Info info = 4;</code> 8307 *8308 * <pre>8309 * May be omitted in omitmeta8310 * </pre>8311 8117 */ 8312 8118 crosby.binary.Osmformat.Info getInfo(); … … 8333 8139 * Protobuf type {@code OSMPBF.Node} 8334 8140 */ 8335 public static final class Node extends 8336 com.google.protobuf.GeneratedMessageLite implements 8141 public static final class Node extends 8142 com.google.protobuf.GeneratedMessageLite< 8143 Node, Node.Builder> implements 8337 8144 // @@protoc_insertion_point(message_implements:OSMPBF.Node) 8338 8145 NodeOrBuilder { 8339 // Use Node.newBuilder() to construct. 8340 private Node(com.google.protobuf.GeneratedMessageLite.Builder builder) { 8341 super(builder); 8342 this.unknownFields = builder.getUnknownFields(); 8343 } 8344 private Node(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 8345 8346 private static final Node defaultInstance; 8347 public static Node getDefaultInstance() { 8348 return defaultInstance; 8349 } 8350 8351 @Override 8352 public Node getDefaultInstanceForType() { 8353 return defaultInstance; 8354 } 8355 8356 private final com.google.protobuf.ByteString unknownFields; 8357 private Node( 8358 com.google.protobuf.CodedInputStream input, 8359 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8360 throws com.google.protobuf.InvalidProtocolBufferException { 8361 initFields(); 8362 int mutable_bitField0_ = 0; 8363 com.google.protobuf.ByteString.Output unknownFieldsOutput = 8364 com.google.protobuf.ByteString.newOutput(); 8365 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 8366 com.google.protobuf.CodedOutputStream.newInstance( 8367 unknownFieldsOutput); 8368 try { 8369 boolean done = false; 8370 while (!done) { 8371 int tag = input.readTag(); 8372 switch (tag) { 8373 case 0: 8374 done = true; 8375 break; 8376 default: { 8377 if (!parseUnknownField(input, unknownFieldsCodedOutput, 8378 extensionRegistry, tag)) { 8379 done = true; 8380 } 8381 break; 8382 } 8383 case 8: { 8384 bitField0_ |= 0x00000001; 8385 id_ = input.readSInt64(); 8386 break; 8387 } 8388 case 16: { 8389 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 8390 keys_ = new java.util.ArrayList<>(); 8391 mutable_bitField0_ |= 0x00000002; 8392 } 8393 keys_.add(input.readUInt32()); 8394 break; 8395 } 8396 case 18: { 8397 int length = input.readRawVarint32(); 8398 int limit = input.pushLimit(length); 8399 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 8400 keys_ = new java.util.ArrayList<>(); 8401 mutable_bitField0_ |= 0x00000002; 8402 } 8403 while (input.getBytesUntilLimit() > 0) { 8404 keys_.add(input.readUInt32()); 8405 } 8406 input.popLimit(limit); 8407 break; 8408 } 8409 case 24: { 8410 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 8411 vals_ = new java.util.ArrayList<>(); 8412 mutable_bitField0_ |= 0x00000004; 8413 } 8414 vals_.add(input.readUInt32()); 8415 break; 8416 } 8417 case 26: { 8418 int length = input.readRawVarint32(); 8419 int limit = input.pushLimit(length); 8420 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 8421 vals_ = new java.util.ArrayList<>(); 8422 mutable_bitField0_ |= 0x00000004; 8423 } 8424 while (input.getBytesUntilLimit() > 0) { 8425 vals_.add(input.readUInt32()); 8426 } 8427 input.popLimit(limit); 8428 break; 8429 } 8430 case 34: { 8431 crosby.binary.Osmformat.Info.Builder subBuilder = null; 8432 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8433 subBuilder = info_.toBuilder(); 8434 } 8435 info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry); 8436 if (subBuilder != null) { 8437 subBuilder.mergeFrom(info_); 8438 info_ = subBuilder.buildPartial(); 8439 } 8440 bitField0_ |= 0x00000002; 8441 break; 8442 } 8443 case 64: { 8444 bitField0_ |= 0x00000004; 8445 lat_ = input.readSInt64(); 8446 break; 8447 } 8448 case 72: { 8449 bitField0_ |= 0x00000008; 8450 lon_ = input.readSInt64(); 8451 break; 8452 } 8453 } 8454 } 8455 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8456 throw e.setUnfinishedMessage(this); 8457 } catch (java.io.IOException e) { 8458 throw new com.google.protobuf.InvalidProtocolBufferException( 8459 e.getMessage()).setUnfinishedMessage(this); 8460 } finally { 8461 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 8462 keys_ = java.util.Collections.unmodifiableList(keys_); 8463 } 8464 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 8465 vals_ = java.util.Collections.unmodifiableList(vals_); 8466 } 8467 try { 8468 unknownFieldsCodedOutput.flush(); 8469 } catch (java.io.IOException e) { 8470 // Should not happen 8471 } finally { 8472 unknownFields = unknownFieldsOutput.toByteString(); 8473 } 8474 makeExtensionsImmutable(); 8475 } 8476 } 8477 public static com.google.protobuf.Parser<Node> PARSER = 8478 new com.google.protobuf.AbstractParser<Node>() { 8479 @Override 8480 public Node parsePartialFrom( 8481 com.google.protobuf.CodedInputStream input, 8482 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8483 throws com.google.protobuf.InvalidProtocolBufferException { 8484 return new Node(input, extensionRegistry); 8485 } 8486 }; 8487 8488 @java.lang.Override 8489 public com.google.protobuf.Parser<Node> getParserForType() { 8490 return PARSER; 8491 } 8492 8146 private Node() { 8147 keys_ = emptyIntList(); 8148 vals_ = emptyIntList(); 8149 } 8493 8150 private int bitField0_; 8494 8151 public static final int ID_FIELD_NUMBER = 1; … … 8497 8154 * <code>required sint64 id = 1;</code> 8498 8155 */ 8499 @Override 8500 public boolean hasId() { 8156 public boolean hasId() { 8501 8157 return ((bitField0_ & 0x00000001) == 0x00000001); 8502 8158 } … … 8504 8160 * <code>required sint64 id = 1;</code> 8505 8161 */ 8506 @Override 8507 public long getId() { 8162 public long getId() { 8508 8163 return id_; 8509 8164 } 8165 /** 8166 * <code>required sint64 id = 1;</code> 8167 */ 8168 private void setId(long value) { 8169 bitField0_ |= 0x00000001; 8170 id_ = value; 8171 } 8172 /** 8173 * <code>required sint64 id = 1;</code> 8174 */ 8175 private void clearId() { 8176 bitField0_ = (bitField0_ & ~0x00000001); 8177 id_ = 0L; 8178 } 8510 8179 8511 8180 public static final int KEYS_FIELD_NUMBER = 2; 8512 private java.util.List<java.lang.Integer> keys_; 8513 /** 8181 private com.google.protobuf.Internal.IntList keys_; 8182 /** 8183 * <pre> 8184 * Parallel arrays. 8185 * </pre> 8186 * 8514 8187 * <code>repeated uint32 keys = 2 [packed = true];</code> 8515 * 8516 * <pre> 8517 * Parallel arrays. 8518 * </pre> 8519 */ 8520 @Override 8521 public java.util.List<java.lang.Integer> 8188 */ 8189 public java.util.List<java.lang.Integer> 8522 8190 getKeysList() { 8523 8191 return keys_; 8524 8192 } 8525 8193 /** 8194 * <pre> 8195 * Parallel arrays. 8196 * </pre> 8197 * 8526 8198 * <code>repeated uint32 keys = 2 [packed = true];</code> 8527 * 8199 */ 8200 public int getKeysCount() { 8201 return keys_.size(); 8202 } 8203 /** 8528 8204 * <pre> 8529 8205 * Parallel arrays. 8530 8206 * </pre> 8531 */ 8532 @Override 8533 public int getKeysCount() { 8534 return keys_.size(); 8535 } 8536 /** 8207 * 8537 8208 * <code>repeated uint32 keys = 2 [packed = true];</code> 8538 * 8209 */ 8210 public int getKeys(int index) { 8211 return keys_.getInt(index); 8212 } 8213 private int keysMemoizedSerializedSize = -1; 8214 private void ensureKeysIsMutable() { 8215 if (!keys_.isModifiable()) { 8216 keys_ = 8217 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 8218 } 8219 } 8220 /** 8539 8221 * <pre> 8540 8222 * Parallel arrays. 8541 8223 * </pre> 8542 */ 8543 @Override 8544 public int getKeys(int index) { 8545 return keys_.get(index); 8546 } 8547 private int keysMemoizedSerializedSize = -1; 8224 * 8225 * <code>repeated uint32 keys = 2 [packed = true];</code> 8226 */ 8227 private void setKeys( 8228 int index, int value) { 8229 ensureKeysIsMutable(); 8230 keys_.setInt(index, value); 8231 } 8232 /** 8233 * <pre> 8234 * Parallel arrays. 8235 * </pre> 8236 * 8237 * <code>repeated uint32 keys = 2 [packed = true];</code> 8238 */ 8239 private void addKeys(int value) { 8240 ensureKeysIsMutable(); 8241 keys_.addInt(value); 8242 } 8243 /** 8244 * <pre> 8245 * Parallel arrays. 8246 * </pre> 8247 * 8248 * <code>repeated uint32 keys = 2 [packed = true];</code> 8249 */ 8250 private void addAllKeys( 8251 java.lang.Iterable<? extends java.lang.Integer> values) { 8252 ensureKeysIsMutable(); 8253 com.google.protobuf.AbstractMessageLite.addAll( 8254 values, keys_); 8255 } 8256 /** 8257 * <pre> 8258 * Parallel arrays. 8259 * </pre> 8260 * 8261 * <code>repeated uint32 keys = 2 [packed = true];</code> 8262 */ 8263 private void clearKeys() { 8264 keys_ = emptyIntList(); 8265 } 8548 8266 8549 8267 public static final int VALS_FIELD_NUMBER = 3; 8550 private java.util.List<java.lang.Integer> vals_; 8551 /** 8268 private com.google.protobuf.Internal.IntList vals_; 8269 /** 8270 * <pre> 8271 * String IDs. 8272 * </pre> 8273 * 8552 8274 * <code>repeated uint32 vals = 3 [packed = true];</code> 8553 * 8554 * <pre> 8555 * String IDs. 8556 * </pre> 8557 */ 8558 @Override 8559 public java.util.List<java.lang.Integer> 8275 */ 8276 public java.util.List<java.lang.Integer> 8560 8277 getValsList() { 8561 8278 return vals_; 8562 8279 } 8563 8280 /** 8281 * <pre> 8282 * String IDs. 8283 * </pre> 8284 * 8564 8285 * <code>repeated uint32 vals = 3 [packed = true];</code> 8565 * 8286 */ 8287 public int getValsCount() { 8288 return vals_.size(); 8289 } 8290 /** 8566 8291 * <pre> 8567 8292 * String IDs. 8568 8293 * </pre> 8569 */ 8570 @Override 8571 public int getValsCount() { 8572 return vals_.size(); 8573 } 8574 /** 8294 * 8575 8295 * <code>repeated uint32 vals = 3 [packed = true];</code> 8576 * 8296 */ 8297 public int getVals(int index) { 8298 return vals_.getInt(index); 8299 } 8300 private int valsMemoizedSerializedSize = -1; 8301 private void ensureValsIsMutable() { 8302 if (!vals_.isModifiable()) { 8303 vals_ = 8304 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 8305 } 8306 } 8307 /** 8577 8308 * <pre> 8578 8309 * String IDs. 8579 8310 * </pre> 8580 */ 8581 @Override 8582 public int getVals(int index) { 8583 return vals_.get(index); 8584 } 8585 private int valsMemoizedSerializedSize = -1; 8311 * 8312 * <code>repeated uint32 vals = 3 [packed = true];</code> 8313 */ 8314 private void setVals( 8315 int index, int value) { 8316 ensureValsIsMutable(); 8317 vals_.setInt(index, value); 8318 } 8319 /** 8320 * <pre> 8321 * String IDs. 8322 * </pre> 8323 * 8324 * <code>repeated uint32 vals = 3 [packed = true];</code> 8325 */ 8326 private void addVals(int value) { 8327 ensureValsIsMutable(); 8328 vals_.addInt(value); 8329 } 8330 /** 8331 * <pre> 8332 * String IDs. 8333 * </pre> 8334 * 8335 * <code>repeated uint32 vals = 3 [packed = true];</code> 8336 */ 8337 private void addAllVals( 8338 java.lang.Iterable<? extends java.lang.Integer> values) { 8339 ensureValsIsMutable(); 8340 com.google.protobuf.AbstractMessageLite.addAll( 8341 values, vals_); 8342 } 8343 /** 8344 * <pre> 8345 * String IDs. 8346 * </pre> 8347 * 8348 * <code>repeated uint32 vals = 3 [packed = true];</code> 8349 */ 8350 private void clearVals() { 8351 vals_ = emptyIntList(); 8352 } 8586 8353 8587 8354 public static final int INFO_FIELD_NUMBER = 4; 8588 8355 private crosby.binary.Osmformat.Info info_; 8589 8356 /** 8357 * <pre> 8358 * May be omitted in omitmeta 8359 * </pre> 8360 * 8590 8361 * <code>optional .OSMPBF.Info info = 4;</code> 8591 * 8362 */ 8363 public boolean hasInfo() { 8364 return ((bitField0_ & 0x00000002) == 0x00000002); 8365 } 8366 /** 8592 8367 * <pre> 8593 8368 * May be omitted in omitmeta 8594 8369 * </pre> 8595 */ 8596 @Override 8597 public boolean hasInfo() { 8598 return ((bitField0_ & 0x00000002) == 0x00000002); 8599 } 8600 /** 8370 * 8601 8371 * <code>optional .OSMPBF.Info info = 4;</code> 8602 * 8372 */ 8373 public crosby.binary.Osmformat.Info getInfo() { 8374 return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_; 8375 } 8376 /** 8603 8377 * <pre> 8604 8378 * May be omitted in omitmeta 8605 8379 * </pre> 8606 */ 8607 @Override 8608 public crosby.binary.Osmformat.Info getInfo() { 8609 return info_; 8380 * 8381 * <code>optional .OSMPBF.Info info = 4;</code> 8382 */ 8383 private void setInfo(crosby.binary.Osmformat.Info value) { 8384 if (value == null) { 8385 throw new NullPointerException(); 8386 } 8387 info_ = value; 8388 bitField0_ |= 0x00000002; 8389 } 8390 /** 8391 * <pre> 8392 * May be omitted in omitmeta 8393 * </pre> 8394 * 8395 * <code>optional .OSMPBF.Info info = 4;</code> 8396 */ 8397 private void setInfo( 8398 crosby.binary.Osmformat.Info.Builder builderForValue) { 8399 info_ = builderForValue.build(); 8400 bitField0_ |= 0x00000002; 8401 } 8402 /** 8403 * <pre> 8404 * May be omitted in omitmeta 8405 * </pre> 8406 * 8407 * <code>optional .OSMPBF.Info info = 4;</code> 8408 */ 8409 private void mergeInfo(crosby.binary.Osmformat.Info value) { 8410 if (info_ != null && 8411 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 8412 info_ = 8413 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 8414 } else { 8415 info_ = value; 8416 } 8417 bitField0_ |= 0x00000002; 8418 } 8419 /** 8420 * <pre> 8421 * May be omitted in omitmeta 8422 * </pre> 8423 * 8424 * <code>optional .OSMPBF.Info info = 4;</code> 8425 */ 8426 private void clearInfo() { info_ = null; 8427 bitField0_ = (bitField0_ & ~0x00000002); 8610 8428 } 8611 8429 … … 8615 8433 * <code>required sint64 lat = 8;</code> 8616 8434 */ 8617 @Override 8618 public boolean hasLat() { 8435 public boolean hasLat() { 8619 8436 return ((bitField0_ & 0x00000004) == 0x00000004); 8620 8437 } … … 8622 8439 * <code>required sint64 lat = 8;</code> 8623 8440 */ 8624 @Override 8625 public long getLat() { 8441 public long getLat() { 8626 8442 return lat_; 8443 } 8444 /** 8445 * <code>required sint64 lat = 8;</code> 8446 */ 8447 private void setLat(long value) { 8448 bitField0_ |= 0x00000004; 8449 lat_ = value; 8450 } 8451 /** 8452 * <code>required sint64 lat = 8;</code> 8453 */ 8454 private void clearLat() { 8455 bitField0_ = (bitField0_ & ~0x00000004); 8456 lat_ = 0L; 8627 8457 } 8628 8458 … … 8632 8462 * <code>required sint64 lon = 9;</code> 8633 8463 */ 8634 @Override 8635 public boolean hasLon() { 8464 public boolean hasLon() { 8636 8465 return ((bitField0_ & 0x00000008) == 0x00000008); 8637 8466 } … … 8639 8468 * <code>required sint64 lon = 9;</code> 8640 8469 */ 8641 @Override 8642 public long getLon() { 8470 public long getLon() { 8643 8471 return lon_; 8644 8472 } 8645 8646 private void initFields() { 8647 id_ = 0L; 8648 keys_ = java.util.Collections.emptyList(); 8649 vals_ = java.util.Collections.emptyList(); 8650 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 8651 lat_ = 0L; 8473 /** 8474 * <code>required sint64 lon = 9;</code> 8475 */ 8476 private void setLon(long value) { 8477 bitField0_ |= 0x00000008; 8478 lon_ = value; 8479 } 8480 /** 8481 * <code>required sint64 lon = 9;</code> 8482 */ 8483 private void clearLon() { 8484 bitField0_ = (bitField0_ & ~0x00000008); 8652 8485 lon_ = 0L; 8653 8486 } 8654 private byte memoizedIsInitialized = -1; 8655 @Override 8656 public final boolean isInitialized() { 8657 byte isInitialized = memoizedIsInitialized; 8658 if (isInitialized == 1) return true; 8659 if (isInitialized == 0) return false; 8660 8661 if (!hasId()) { 8662 memoizedIsInitialized = 0; 8663 return false; 8664 } 8665 if (!hasLat()) { 8666 memoizedIsInitialized = 0; 8667 return false; 8668 } 8669 if (!hasLon()) { 8670 memoizedIsInitialized = 0; 8671 return false; 8672 } 8673 memoizedIsInitialized = 1; 8674 return true; 8675 } 8676 8677 @Override 8678 public void writeTo(com.google.protobuf.CodedOutputStream output) 8487 8488 public void writeTo(com.google.protobuf.CodedOutputStream output) 8679 8489 throws java.io.IOException { 8680 8490 getSerializedSize(); … … 8683 8493 } 8684 8494 if (getKeysList().size() > 0) { 8685 output.write RawVarint32(18);8686 output.write RawVarint32(keysMemoizedSerializedSize);8495 output.writeUInt32NoTag(18); 8496 output.writeUInt32NoTag(keysMemoizedSerializedSize); 8687 8497 } 8688 8498 for (int i = 0; i < keys_.size(); i++) { 8689 output.writeUInt32NoTag(keys_.get (i));8499 output.writeUInt32NoTag(keys_.getInt(i)); 8690 8500 } 8691 8501 if (getValsList().size() > 0) { 8692 output.write RawVarint32(26);8693 output.write RawVarint32(valsMemoizedSerializedSize);8502 output.writeUInt32NoTag(26); 8503 output.writeUInt32NoTag(valsMemoizedSerializedSize); 8694 8504 } 8695 8505 for (int i = 0; i < vals_.size(); i++) { 8696 output.writeUInt32NoTag(vals_.get (i));8506 output.writeUInt32NoTag(vals_.getInt(i)); 8697 8507 } 8698 8508 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8699 output.writeMessage(4, info_);8509 output.writeMessage(4, getInfo()); 8700 8510 } 8701 8511 if (((bitField0_ & 0x00000004) == 0x00000004)) { … … 8705 8515 output.writeSInt64(9, lon_); 8706 8516 } 8707 output.writeRawBytes(unknownFields); 8708 } 8709 8710 private int memoizedSerializedSize = -1; 8711 @Override 8712 public int getSerializedSize() { 8517 unknownFields.writeTo(output); 8518 } 8519 8520 public int getSerializedSize() { 8713 8521 int size = memoizedSerializedSize; 8714 8522 if (size != -1) return size; … … 8723 8531 for (int i = 0; i < keys_.size(); i++) { 8724 8532 dataSize += com.google.protobuf.CodedOutputStream 8725 .computeUInt32SizeNoTag(keys_.get (i));8533 .computeUInt32SizeNoTag(keys_.getInt(i)); 8726 8534 } 8727 8535 size += dataSize; … … 8737 8545 for (int i = 0; i < vals_.size(); i++) { 8738 8546 dataSize += com.google.protobuf.CodedOutputStream 8739 .computeUInt32SizeNoTag(vals_.get (i));8547 .computeUInt32SizeNoTag(vals_.getInt(i)); 8740 8548 } 8741 8549 size += dataSize; … … 8749 8557 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8750 8558 size += com.google.protobuf.CodedOutputStream 8751 .computeMessageSize(4, info_);8559 .computeMessageSize(4, getInfo()); 8752 8560 } 8753 8561 if (((bitField0_ & 0x00000004) == 0x00000004)) { … … 8759 8567 .computeSInt64Size(9, lon_); 8760 8568 } 8761 size += unknownFields. size();8569 size += unknownFields.getSerializedSize(); 8762 8570 memoizedSerializedSize = size; 8763 8571 return size; 8764 8572 } 8765 8573 8766 private static final long serialVersionUID = 0L; 8767 @java.lang.Override 8768 protected java.lang.Object writeReplace() 8769 throws java.io.ObjectStreamException { 8770 return super.writeReplace(); 8771 } 8772 8574 public static crosby.binary.Osmformat.Node parseFrom( 8575 java.nio.ByteBuffer data) 8576 throws com.google.protobuf.InvalidProtocolBufferException { 8577 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8578 DEFAULT_INSTANCE, data); 8579 } 8580 public static crosby.binary.Osmformat.Node parseFrom( 8581 java.nio.ByteBuffer data, 8582 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8583 throws com.google.protobuf.InvalidProtocolBufferException { 8584 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8585 DEFAULT_INSTANCE, data, extensionRegistry); 8586 } 8773 8587 public static crosby.binary.Osmformat.Node parseFrom( 8774 8588 com.google.protobuf.ByteString data) 8775 8589 throws com.google.protobuf.InvalidProtocolBufferException { 8776 return PARSER.parseFrom(data); 8590 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8591 DEFAULT_INSTANCE, data); 8777 8592 } 8778 8593 public static crosby.binary.Osmformat.Node parseFrom( … … 8780 8595 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8781 8596 throws com.google.protobuf.InvalidProtocolBufferException { 8782 return PARSER.parseFrom(data, extensionRegistry); 8597 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8598 DEFAULT_INSTANCE, data, extensionRegistry); 8783 8599 } 8784 8600 public static crosby.binary.Osmformat.Node parseFrom(byte[] data) 8785 8601 throws com.google.protobuf.InvalidProtocolBufferException { 8786 return PARSER.parseFrom(data); 8602 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8603 DEFAULT_INSTANCE, data); 8787 8604 } 8788 8605 public static crosby.binary.Osmformat.Node parseFrom( … … 8790 8607 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8791 8608 throws com.google.protobuf.InvalidProtocolBufferException { 8792 return PARSER.parseFrom(data, extensionRegistry); 8609 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8610 DEFAULT_INSTANCE, data, extensionRegistry); 8793 8611 } 8794 8612 public static crosby.binary.Osmformat.Node parseFrom(java.io.InputStream input) 8795 8613 throws java.io.IOException { 8796 return PARSER.parseFrom(input); 8614 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8615 DEFAULT_INSTANCE, input); 8797 8616 } 8798 8617 public static crosby.binary.Osmformat.Node parseFrom( … … 8800 8619 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8801 8620 throws java.io.IOException { 8802 return PARSER.parseFrom(input, extensionRegistry); 8621 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8622 DEFAULT_INSTANCE, input, extensionRegistry); 8803 8623 } 8804 8624 public static crosby.binary.Osmformat.Node parseDelimitedFrom(java.io.InputStream input) 8805 8625 throws java.io.IOException { 8806 return PARSER.parseDelimitedFrom(input);8626 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 8807 8627 } 8808 8628 public static crosby.binary.Osmformat.Node parseDelimitedFrom( … … 8810 8630 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8811 8631 throws java.io.IOException { 8812 return PARSER.parseDelimitedFrom(input, extensionRegistry);8632 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 8813 8633 } 8814 8634 public static crosby.binary.Osmformat.Node parseFrom( 8815 8635 com.google.protobuf.CodedInputStream input) 8816 8636 throws java.io.IOException { 8817 return PARSER.parseFrom(input); 8637 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8638 DEFAULT_INSTANCE, input); 8818 8639 } 8819 8640 public static crosby.binary.Osmformat.Node parseFrom( … … 8821 8642 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8822 8643 throws java.io.IOException { 8823 return PARSER.parseFrom(input, extensionRegistry); 8824 } 8825 8826 public static Builder newBuilder() { return Builder.create(); } 8827 @Override 8828 public Builder newBuilderForType() { return newBuilder(); } 8644 return com.google.protobuf.GeneratedMessageLite.parseFrom( 8645 DEFAULT_INSTANCE, input, extensionRegistry); 8646 } 8647 8648 public static Builder newBuilder() { 8649 return DEFAULT_INSTANCE.toBuilder(); 8650 } 8829 8651 public static Builder newBuilder(crosby.binary.Osmformat.Node prototype) { 8830 return newBuilder().mergeFrom(prototype); 8831 } 8832 @Override 8833 public Builder toBuilder() { return newBuilder(this); } 8652 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 8653 } 8834 8654 8835 8655 /** … … 8838 8658 public static final class Builder extends 8839 8659 com.google.protobuf.GeneratedMessageLite.Builder< 8840 crosby.binary.Osmformat.Node, Builder> 8841 implements 8660 crosby.binary.Osmformat.Node, Builder> implements 8842 8661 // @@protoc_insertion_point(builder_implements:OSMPBF.Node) 8843 8662 crosby.binary.Osmformat.NodeOrBuilder { 8844 8663 // Construct using crosby.binary.Osmformat.Node.newBuilder() 8845 8664 private Builder() { 8846 maybeForceBuilderInitialization(); 8847 } 8848 8849 private void maybeForceBuilderInitialization() { 8850 } 8851 private static Builder create() { 8852 return new Builder(); 8853 } 8854 8855 @Override 8856 public Builder clear() { 8857 super.clear(); 8858 id_ = 0L; 8859 bitField0_ = (bitField0_ & ~0x00000001); 8860 keys_ = java.util.Collections.emptyList(); 8861 bitField0_ = (bitField0_ & ~0x00000002); 8862 vals_ = java.util.Collections.emptyList(); 8863 bitField0_ = (bitField0_ & ~0x00000004); 8864 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 8865 bitField0_ = (bitField0_ & ~0x00000008); 8866 lat_ = 0L; 8867 bitField0_ = (bitField0_ & ~0x00000010); 8868 lon_ = 0L; 8869 bitField0_ = (bitField0_ & ~0x00000020); 8870 return this; 8871 } 8872 8873 @Override 8874 public Builder clone() { 8875 return create().mergeFrom(buildPartial()); 8876 } 8877 8878 @Override 8879 public crosby.binary.Osmformat.Node getDefaultInstanceForType() { 8880 return crosby.binary.Osmformat.Node.getDefaultInstance(); 8881 } 8882 8883 @Override 8884 public crosby.binary.Osmformat.Node build() { 8885 crosby.binary.Osmformat.Node result = buildPartial(); 8886 if (!result.isInitialized()) { 8887 throw newUninitializedMessageException(result); 8888 } 8889 return result; 8890 } 8891 8892 @Override 8893 public crosby.binary.Osmformat.Node buildPartial() { 8894 crosby.binary.Osmformat.Node result = new crosby.binary.Osmformat.Node(this); 8895 int from_bitField0_ = bitField0_; 8896 int to_bitField0_ = 0; 8897 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 8898 to_bitField0_ |= 0x00000001; 8899 } 8900 result.id_ = id_; 8901 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8902 keys_ = java.util.Collections.unmodifiableList(keys_); 8903 bitField0_ = (bitField0_ & ~0x00000002); 8904 } 8905 result.keys_ = keys_; 8906 if (((bitField0_ & 0x00000004) == 0x00000004)) { 8907 vals_ = java.util.Collections.unmodifiableList(vals_); 8908 bitField0_ = (bitField0_ & ~0x00000004); 8909 } 8910 result.vals_ = vals_; 8911 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 8912 to_bitField0_ |= 0x00000002; 8913 } 8914 result.info_ = info_; 8915 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 8916 to_bitField0_ |= 0x00000004; 8917 } 8918 result.lat_ = lat_; 8919 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 8920 to_bitField0_ |= 0x00000008; 8921 } 8922 result.lon_ = lon_; 8923 result.bitField0_ = to_bitField0_; 8924 return result; 8925 } 8926 8927 @Override 8928 public Builder mergeFrom(crosby.binary.Osmformat.Node other) { 8929 if (other == crosby.binary.Osmformat.Node.getDefaultInstance()) return this; 8930 if (other.hasId()) { 8931 setId(other.getId()); 8932 } 8933 if (!other.keys_.isEmpty()) { 8934 if (keys_.isEmpty()) { 8935 keys_ = other.keys_; 8936 bitField0_ = (bitField0_ & ~0x00000002); 8937 } else { 8938 ensureKeysIsMutable(); 8939 keys_.addAll(other.keys_); 8940 } 8941 8942 } 8943 if (!other.vals_.isEmpty()) { 8944 if (vals_.isEmpty()) { 8945 vals_ = other.vals_; 8946 bitField0_ = (bitField0_ & ~0x00000004); 8947 } else { 8948 ensureValsIsMutable(); 8949 vals_.addAll(other.vals_); 8950 } 8951 8952 } 8953 if (other.hasInfo()) { 8954 mergeInfo(other.getInfo()); 8955 } 8956 if (other.hasLat()) { 8957 setLat(other.getLat()); 8958 } 8959 if (other.hasLon()) { 8960 setLon(other.getLon()); 8961 } 8962 setUnknownFields( 8963 getUnknownFields().concat(other.unknownFields)); 8964 return this; 8965 } 8966 8967 @Override 8968 public final boolean isInitialized() { 8969 if (!hasId()) { 8970 8971 return false; 8972 } 8973 if (!hasLat()) { 8974 8975 return false; 8976 } 8977 if (!hasLon()) { 8978 8979 return false; 8980 } 8981 return true; 8982 } 8983 8984 @Override 8985 public Builder mergeFrom( 8986 com.google.protobuf.CodedInputStream input, 8987 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8988 throws java.io.IOException { 8989 crosby.binary.Osmformat.Node parsedMessage = null; 8990 try { 8991 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 8992 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8993 parsedMessage = (crosby.binary.Osmformat.Node) e.getUnfinishedMessage(); 8994 throw e; 8995 } finally { 8996 if (parsedMessage != null) { 8997 mergeFrom(parsedMessage); 8998 } 8999 } 9000 return this; 9001 } 9002 private int bitField0_; 9003 9004 private long id_ ; 8665 super(DEFAULT_INSTANCE); 8666 } 8667 8668 9005 8669 /** 9006 8670 * <code>required sint64 id = 1;</code> 9007 8671 */ 9008 @Override 9009 public boolean hasId() { 9010 return ((bitField0_ & 0x00000001) == 0x00000001); 8672 public boolean hasId() { 8673 return instance.hasId(); 9011 8674 } 9012 8675 /** 9013 8676 * <code>required sint64 id = 1;</code> 9014 8677 */ 9015 @Override 9016 public long getId() { 9017 return id_; 8678 public long getId() { 8679 return instance.getId(); 9018 8680 } 9019 8681 /** … … 9021 8683 */ 9022 8684 public Builder setId(long value) { 9023 bitField0_ |= 0x00000001; 9024 id_ = value; 9025 8685 copyOnWrite(); 8686 instance.setId(value); 9026 8687 return this; 9027 8688 } … … 9030 8691 */ 9031 8692 public Builder clearId() { 9032 bitField0_ = (bitField0_ & ~0x00000001); 9033 id_ = 0L; 9034 9035 return this; 9036 } 9037 9038 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 9039 private void ensureKeysIsMutable() { 9040 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 9041 keys_ = new java.util.ArrayList<>(keys_); 9042 bitField0_ |= 0x00000002; 9043 } 9044 } 9045 /** 8693 copyOnWrite(); 8694 instance.clearId(); 8695 return this; 8696 } 8697 8698 /** 8699 * <pre> 8700 * Parallel arrays. 8701 * </pre> 8702 * 9046 8703 * <code>repeated uint32 keys = 2 [packed = true];</code> 9047 * 8704 */ 8705 public java.util.List<java.lang.Integer> 8706 getKeysList() { 8707 return java.util.Collections.unmodifiableList( 8708 instance.getKeysList()); 8709 } 8710 /** 9048 8711 * <pre> 9049 8712 * Parallel arrays. 9050 8713 * </pre> 9051 */ 9052 @Override 9053 public java.util.List<java.lang.Integer> 9054 getKeysList() { 9055 return java.util.Collections.unmodifiableList(keys_); 9056 } 9057 /** 8714 * 9058 8715 * <code>repeated uint32 keys = 2 [packed = true];</code> 9059 * 8716 */ 8717 public int getKeysCount() { 8718 return instance.getKeysCount(); 8719 } 8720 /** 9060 8721 * <pre> 9061 8722 * Parallel arrays. 9062 8723 * </pre> 9063 */ 9064 @Override 9065 public int getKeysCount() { 9066 return keys_.size(); 9067 } 9068 /** 8724 * 9069 8725 * <code>repeated uint32 keys = 2 [packed = true];</code> 9070 * 8726 */ 8727 public int getKeys(int index) { 8728 return instance.getKeys(index); 8729 } 8730 /** 9071 8731 * <pre> 9072 8732 * Parallel arrays. 9073 8733 * </pre> 9074 */ 9075 @Override 9076 public int getKeys(int index) { 9077 return keys_.get(index); 9078 } 9079 /** 8734 * 9080 8735 * <code>repeated uint32 keys = 2 [packed = true];</code> 9081 *9082 * <pre>9083 * Parallel arrays.9084 * </pre>9085 8736 */ 9086 8737 public Builder setKeys( 9087 8738 int index, int value) { 9088 ensureKeysIsMutable(); 9089 keys_.set(index, value); 9090 9091 return this; 9092 } 9093 /** 8739 copyOnWrite(); 8740 instance.setKeys(index, value); 8741 return this; 8742 } 8743 /** 8744 * <pre> 8745 * Parallel arrays. 8746 * </pre> 8747 * 9094 8748 * <code>repeated uint32 keys = 2 [packed = true];</code> 9095 * 8749 */ 8750 public Builder addKeys(int value) { 8751 copyOnWrite(); 8752 instance.addKeys(value); 8753 return this; 8754 } 8755 /** 9096 8756 * <pre> 9097 8757 * Parallel arrays. 9098 8758 * </pre> 9099 */ 9100 public Builder addKeys(int value) { 9101 ensureKeysIsMutable(); 9102 keys_.add(value); 9103 9104 return this; 9105 } 9106 /** 8759 * 9107 8760 * <code>repeated uint32 keys = 2 [packed = true];</code> 9108 *9109 * <pre>9110 * Parallel arrays.9111 * </pre>9112 8761 */ 9113 8762 public Builder addAllKeys( 9114 8763 java.lang.Iterable<? extends java.lang.Integer> values) { 9115 ensureKeysIsMutable(); 9116 com.google.protobuf.AbstractMessageLite.Builder.addAll( 9117 values, keys_); 9118 9119 return this; 9120 } 9121 /** 8764 copyOnWrite(); 8765 instance.addAllKeys(values); 8766 return this; 8767 } 8768 /** 8769 * <pre> 8770 * Parallel arrays. 8771 * </pre> 8772 * 9122 8773 * <code>repeated uint32 keys = 2 [packed = true];</code> 9123 *9124 * <pre>9125 * Parallel arrays.9126 * </pre>9127 8774 */ 9128 8775 public Builder clearKeys() { 9129 keys_ = java.util.Collections.emptyList(); 9130 bitField0_ = (bitField0_ & ~0x00000002); 9131 9132 return this; 9133 } 9134 9135 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 9136 private void ensureValsIsMutable() { 9137 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 9138 vals_ = new java.util.ArrayList<>(vals_); 9139 bitField0_ |= 0x00000004; 9140 } 9141 } 9142 /** 8776 copyOnWrite(); 8777 instance.clearKeys(); 8778 return this; 8779 } 8780 8781 /** 8782 * <pre> 8783 * String IDs. 8784 * </pre> 8785 * 9143 8786 * <code>repeated uint32 vals = 3 [packed = true];</code> 9144 * 8787 */ 8788 public java.util.List<java.lang.Integer> 8789 getValsList() { 8790 return java.util.Collections.unmodifiableList( 8791 instance.getValsList()); 8792 } 8793 /** 9145 8794 * <pre> 9146 8795 * String IDs. 9147 8796 * </pre> 9148 */ 9149 @Override 9150 public java.util.List<java.lang.Integer> 9151 getValsList() { 9152 return java.util.Collections.unmodifiableList(vals_); 9153 } 9154 /** 8797 * 9155 8798 * <code>repeated uint32 vals = 3 [packed = true];</code> 9156 * 8799 */ 8800 public int getValsCount() { 8801 return instance.getValsCount(); 8802 } 8803 /** 9157 8804 * <pre> 9158 8805 * String IDs. 9159 8806 * </pre> 9160 */ 9161 @Override 9162 public int getValsCount() { 9163 return vals_.size(); 9164 } 9165 /** 8807 * 9166 8808 * <code>repeated uint32 vals = 3 [packed = true];</code> 9167 * 8809 */ 8810 public int getVals(int index) { 8811 return instance.getVals(index); 8812 } 8813 /** 9168 8814 * <pre> 9169 8815 * String IDs. 9170 8816 * </pre> 9171 */ 9172 @Override 9173 public int getVals(int index) { 9174 return vals_.get(index); 9175 } 9176 /** 8817 * 9177 8818 * <code>repeated uint32 vals = 3 [packed = true];</code> 9178 *9179 * <pre>9180 * String IDs.9181 * </pre>9182 8819 */ 9183 8820 public Builder setVals( 9184 8821 int index, int value) { 9185 ensureValsIsMutable(); 9186 vals_.set(index, value); 9187 9188 return this; 9189 } 9190 /** 8822 copyOnWrite(); 8823 instance.setVals(index, value); 8824 return this; 8825 } 8826 /** 8827 * <pre> 8828 * String IDs. 8829 * </pre> 8830 * 9191 8831 * <code>repeated uint32 vals = 3 [packed = true];</code> 9192 * 8832 */ 8833 public Builder addVals(int value) { 8834 copyOnWrite(); 8835 instance.addVals(value); 8836 return this; 8837 } 8838 /** 9193 8839 * <pre> 9194 8840 * String IDs. 9195 8841 * </pre> 9196 */ 9197 public Builder addVals(int value) { 9198 ensureValsIsMutable(); 9199 vals_.add(value); 9200 9201 return this; 9202 } 9203 /** 8842 * 9204 8843 * <code>repeated uint32 vals = 3 [packed = true];</code> 9205 *9206 * <pre>9207 * String IDs.9208 * </pre>9209 8844 */ 9210 8845 public Builder addAllVals( 9211 8846 java.lang.Iterable<? extends java.lang.Integer> values) { 9212 ensureValsIsMutable(); 9213 com.google.protobuf.AbstractMessageLite.Builder.addAll( 9214 values, vals_); 9215 9216 return this; 9217 } 9218 /** 8847 copyOnWrite(); 8848 instance.addAllVals(values); 8849 return this; 8850 } 8851 /** 8852 * <pre> 8853 * String IDs. 8854 * </pre> 8855 * 9219 8856 * <code>repeated uint32 vals = 3 [packed = true];</code> 9220 *9221 * <pre>9222 * String IDs.9223 * </pre>9224 8857 */ 9225 8858 public Builder clearVals() { 9226 vals_ = java.util.Collections.emptyList(); 9227 bitField0_ = (bitField0_ & ~0x00000004); 9228 9229 return this; 9230 } 9231 9232 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 9233 /** 8859 copyOnWrite(); 8860 instance.clearVals(); 8861 return this; 8862 } 8863 8864 /** 8865 * <pre> 8866 * May be omitted in omitmeta 8867 * </pre> 8868 * 9234 8869 * <code>optional .OSMPBF.Info info = 4;</code> 9235 * 8870 */ 8871 public boolean hasInfo() { 8872 return instance.hasInfo(); 8873 } 8874 /** 9236 8875 * <pre> 9237 8876 * May be omitted in omitmeta 9238 8877 * </pre> 9239 */ 9240 @Override 9241 public boolean hasInfo() { 9242 return ((bitField0_ & 0x00000008) == 0x00000008); 9243 } 9244 /** 8878 * 9245 8879 * <code>optional .OSMPBF.Info info = 4;</code> 9246 * 8880 */ 8881 public crosby.binary.Osmformat.Info getInfo() { 8882 return instance.getInfo(); 8883 } 8884 /** 9247 8885 * <pre> 9248 8886 * May be omitted in omitmeta 9249 8887 * </pre> 9250 */ 9251 @Override 9252 public crosby.binary.Osmformat.Info getInfo() { 9253 return info_; 9254 } 9255 /** 8888 * 9256 8889 * <code>optional .OSMPBF.Info info = 4;</code> 9257 * 8890 */ 8891 public Builder setInfo(crosby.binary.Osmformat.Info value) { 8892 copyOnWrite(); 8893 instance.setInfo(value); 8894 return this; 8895 } 8896 /** 9258 8897 * <pre> 9259 8898 * May be omitted in omitmeta 9260 8899 * </pre> 9261 */ 9262 public Builder setInfo(crosby.binary.Osmformat.Info value) { 9263 if (value == null) { 9264 throw new NullPointerException(); 9265 } 9266 info_ = value; 9267 9268 bitField0_ |= 0x00000008; 9269 return this; 9270 } 9271 /** 8900 * 9272 8901 * <code>optional .OSMPBF.Info info = 4;</code> 9273 *9274 * <pre>9275 * May be omitted in omitmeta9276 * </pre>9277 8902 */ 9278 8903 public Builder setInfo( 9279 8904 crosby.binary.Osmformat.Info.Builder builderForValue) { 9280 info_ = builderForValue.build(); 9281 9282 bitField0_ |= 0x00000008; 9283 return this; 9284 } 9285 /** 8905 copyOnWrite(); 8906 instance.setInfo(builderForValue); 8907 return this; 8908 } 8909 /** 8910 * <pre> 8911 * May be omitted in omitmeta 8912 * </pre> 8913 * 9286 8914 * <code>optional .OSMPBF.Info info = 4;</code> 9287 * 8915 */ 8916 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 8917 copyOnWrite(); 8918 instance.mergeInfo(value); 8919 return this; 8920 } 8921 /** 9288 8922 * <pre> 9289 8923 * May be omitted in omitmeta 9290 8924 * </pre> 9291 */ 9292 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 9293 if (((bitField0_ & 0x00000008) == 0x00000008) && 9294 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 9295 info_ = 9296 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 9297 } else { 9298 info_ = value; 9299 } 9300 9301 bitField0_ |= 0x00000008; 9302 return this; 9303 } 9304 /** 8925 * 9305 8926 * <code>optional .OSMPBF.Info info = 4;</code> 9306 * 9307 * <pre> 9308 * May be omitted in omitmeta 9309 * </pre> 9310 */ 9311 public Builder clearInfo() { 9312 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 9313 9314 bitField0_ = (bitField0_ & ~0x00000008); 9315 return this; 9316 } 9317 9318 private long lat_ ; 8927 */ 8928 public Builder clearInfo() { copyOnWrite(); 8929 instance.clearInfo(); 8930 return this; 8931 } 8932 9319 8933 /** 9320 8934 * <code>required sint64 lat = 8;</code> 9321 8935 */ 9322 @Override 9323 public boolean hasLat() { 9324 return ((bitField0_ & 0x00000010) == 0x00000010); 8936 public boolean hasLat() { 8937 return instance.hasLat(); 9325 8938 } 9326 8939 /** 9327 8940 * <code>required sint64 lat = 8;</code> 9328 8941 */ 9329 @Override 9330 public long getLat() { 9331 return lat_; 8942 public long getLat() { 8943 return instance.getLat(); 9332 8944 } 9333 8945 /** … … 9335 8947 */ 9336 8948 public Builder setLat(long value) { 9337 bitField0_ |= 0x00000010; 9338 lat_ = value; 9339 8949 copyOnWrite(); 8950 instance.setLat(value); 9340 8951 return this; 9341 8952 } … … 9344 8955 */ 9345 8956 public Builder clearLat() { 9346 bitField0_ = (bitField0_ & ~0x00000010); 9347 lat_ = 0L; 9348 9349 return this; 9350 } 9351 9352 private long lon_ ; 8957 copyOnWrite(); 8958 instance.clearLat(); 8959 return this; 8960 } 8961 9353 8962 /** 9354 8963 * <code>required sint64 lon = 9;</code> 9355 8964 */ 9356 @Override 9357 public boolean hasLon() { 9358 return ((bitField0_ & 0x00000020) == 0x00000020); 8965 public boolean hasLon() { 8966 return instance.hasLon(); 9359 8967 } 9360 8968 /** 9361 8969 * <code>required sint64 lon = 9;</code> 9362 8970 */ 9363 @Override 9364 public long getLon() { 9365 return lon_; 8971 public long getLon() { 8972 return instance.getLon(); 9366 8973 } 9367 8974 /** … … 9369 8976 */ 9370 8977 public Builder setLon(long value) { 9371 bitField0_ |= 0x00000020; 9372 lon_ = value; 9373 8978 copyOnWrite(); 8979 instance.setLon(value); 9374 8980 return this; 9375 8981 } … … 9378 8984 */ 9379 8985 public Builder clearLon() { 9380 bitField0_ = (bitField0_ & ~0x00000020); 9381 lon_ = 0L; 9382 8986 copyOnWrite(); 8987 instance.clearLon(); 9383 8988 return this; 9384 8989 } … … 9386 8991 // @@protoc_insertion_point(builder_scope:OSMPBF.Node) 9387 8992 } 9388 8993 private byte memoizedIsInitialized = -1; 8994 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 8995 protected final java.lang.Object dynamicMethod( 8996 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 8997 java.lang.Object arg0, java.lang.Object arg1) { 8998 switch (method) { 8999 case NEW_MUTABLE_INSTANCE: { 9000 return new crosby.binary.Osmformat.Node(); 9001 } 9002 case IS_INITIALIZED: { 9003 byte isInitialized = memoizedIsInitialized; 9004 if (isInitialized == 1) return DEFAULT_INSTANCE; 9005 if (isInitialized == 0) return null; 9006 9007 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 9008 if (!hasId()) { 9009 if (shouldMemoize) { 9010 memoizedIsInitialized = 0; 9011 } 9012 return null; 9013 } 9014 if (!hasLat()) { 9015 if (shouldMemoize) { 9016 memoizedIsInitialized = 0; 9017 } 9018 return null; 9019 } 9020 if (!hasLon()) { 9021 if (shouldMemoize) { 9022 memoizedIsInitialized = 0; 9023 } 9024 return null; 9025 } 9026 if (shouldMemoize) memoizedIsInitialized = 1; 9027 return DEFAULT_INSTANCE; 9028 9029 } 9030 case MAKE_IMMUTABLE: { 9031 keys_.makeImmutable(); 9032 vals_.makeImmutable(); 9033 return null; 9034 } 9035 case NEW_BUILDER: { 9036 return new Builder(); 9037 } 9038 case VISIT: { 9039 Visitor visitor = (Visitor) arg0; 9040 crosby.binary.Osmformat.Node other = (crosby.binary.Osmformat.Node) arg1; 9041 id_ = visitor.visitLong( 9042 hasId(), id_, 9043 other.hasId(), other.id_); 9044 keys_= visitor.visitIntList(keys_, other.keys_); 9045 vals_= visitor.visitIntList(vals_, other.vals_); 9046 info_ = visitor.visitMessage(info_, other.info_); 9047 lat_ = visitor.visitLong( 9048 hasLat(), lat_, 9049 other.hasLat(), other.lat_); 9050 lon_ = visitor.visitLong( 9051 hasLon(), lon_, 9052 other.hasLon(), other.lon_); 9053 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 9054 .INSTANCE) { 9055 bitField0_ |= other.bitField0_; 9056 } 9057 return this; 9058 } 9059 case MERGE_FROM_STREAM: { 9060 com.google.protobuf.CodedInputStream input = 9061 (com.google.protobuf.CodedInputStream) arg0; 9062 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 9063 (com.google.protobuf.ExtensionRegistryLite) arg1; 9064 try { 9065 boolean done = false; 9066 while (!done) { 9067 int tag = input.readTag(); 9068 switch (tag) { 9069 case 0: 9070 done = true; 9071 break; 9072 default: { 9073 if (!parseUnknownField(tag, input)) { 9074 done = true; 9075 } 9076 break; 9077 } 9078 case 8: { 9079 bitField0_ |= 0x00000001; 9080 id_ = input.readSInt64(); 9081 break; 9082 } 9083 case 16: { 9084 if (!keys_.isModifiable()) { 9085 keys_ = 9086 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 9087 } 9088 keys_.addInt(input.readUInt32()); 9089 break; 9090 } 9091 case 18: { 9092 int length = input.readRawVarint32(); 9093 int limit = input.pushLimit(length); 9094 if (!keys_.isModifiable() && input.getBytesUntilLimit() > 0) { 9095 keys_ = 9096 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 9097 } 9098 while (input.getBytesUntilLimit() > 0) { 9099 keys_.addInt(input.readUInt32()); 9100 } 9101 input.popLimit(limit); 9102 break; 9103 } 9104 case 24: { 9105 if (!vals_.isModifiable()) { 9106 vals_ = 9107 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 9108 } 9109 vals_.addInt(input.readUInt32()); 9110 break; 9111 } 9112 case 26: { 9113 int length = input.readRawVarint32(); 9114 int limit = input.pushLimit(length); 9115 if (!vals_.isModifiable() && input.getBytesUntilLimit() > 0) { 9116 vals_ = 9117 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 9118 } 9119 while (input.getBytesUntilLimit() > 0) { 9120 vals_.addInt(input.readUInt32()); 9121 } 9122 input.popLimit(limit); 9123 break; 9124 } 9125 case 34: { 9126 crosby.binary.Osmformat.Info.Builder subBuilder = null; 9127 if (((bitField0_ & 0x00000002) == 0x00000002)) { 9128 subBuilder = info_.toBuilder(); 9129 } 9130 info_ = input.readMessage(crosby.binary.Osmformat.Info.parser(), extensionRegistry); 9131 if (subBuilder != null) { 9132 subBuilder.mergeFrom(info_); 9133 info_ = subBuilder.buildPartial(); 9134 } 9135 bitField0_ |= 0x00000002; 9136 break; 9137 } 9138 case 64: { 9139 bitField0_ |= 0x00000004; 9140 lat_ = input.readSInt64(); 9141 break; 9142 } 9143 case 72: { 9144 bitField0_ |= 0x00000008; 9145 lon_ = input.readSInt64(); 9146 break; 9147 } 9148 } 9149 } 9150 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9151 throw new RuntimeException(e.setUnfinishedMessage(this)); 9152 } catch (java.io.IOException e) { 9153 throw new RuntimeException( 9154 new com.google.protobuf.InvalidProtocolBufferException( 9155 e.getMessage()).setUnfinishedMessage(this)); 9156 } finally { 9157 } 9158 } 9159 // fall through 9160 case GET_DEFAULT_INSTANCE: { 9161 return DEFAULT_INSTANCE; 9162 } 9163 case GET_PARSER: { 9164 if (PARSER == null) { synchronized (crosby.binary.Osmformat.Node.class) { 9165 if (PARSER == null) { 9166 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 9167 } 9168 } 9169 } 9170 return PARSER; 9171 } 9172 } 9173 throw new UnsupportedOperationException(); 9174 } 9175 9176 9177 // @@protoc_insertion_point(class_scope:OSMPBF.Node) 9178 private static final crosby.binary.Osmformat.Node DEFAULT_INSTANCE; 9389 9179 static { 9390 defaultInstance = new Node(true); 9391 defaultInstance.initFields(); 9392 } 9393 9394 // @@protoc_insertion_point(class_scope:OSMPBF.Node) 9180 DEFAULT_INSTANCE = new Node(); 9181 DEFAULT_INSTANCE.makeImmutable(); 9182 } 9183 9184 public static crosby.binary.Osmformat.Node getDefaultInstance() { 9185 return DEFAULT_INSTANCE; 9186 } 9187 9188 private static volatile com.google.protobuf.Parser<Node> PARSER; 9189 9190 public static com.google.protobuf.Parser<Node> parser() { 9191 return DEFAULT_INSTANCE.getParserForType(); 9192 } 9395 9193 } 9396 9194 … … 9400 9198 9401 9199 /** 9200 * <pre> 9201 * DELTA coded 9202 * </pre> 9203 * 9402 9204 * <code>repeated sint64 id = 1 [packed = true];</code> 9403 * 9205 */ 9206 java.util.List<java.lang.Long> getIdList(); 9207 /** 9404 9208 * <pre> 9405 9209 * DELTA coded 9406 9210 * </pre> 9407 */ 9408 java.util.List<java.lang.Long> getIdList(); 9409 /** 9211 * 9410 9212 * <code>repeated sint64 id = 1 [packed = true];</code> 9411 * 9213 */ 9214 int getIdCount(); 9215 /** 9412 9216 * <pre> 9413 9217 * DELTA coded 9414 9218 * </pre> 9415 */ 9416 int getIdCount(); 9417 /** 9219 * 9418 9220 * <code>repeated sint64 id = 1 [packed = true];</code> 9419 * 9221 */ 9222 long getId(int index); 9223 9224 /** 9225 * <pre> 9226 *repeated Info info = 4; 9227 * </pre> 9228 * 9229 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9230 */ 9231 boolean hasDenseinfo(); 9232 /** 9233 * <pre> 9234 *repeated Info info = 4; 9235 * </pre> 9236 * 9237 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9238 */ 9239 crosby.binary.Osmformat.DenseInfo getDenseinfo(); 9240 9241 /** 9420 9242 * <pre> 9421 9243 * DELTA coded 9422 9244 * </pre> 9423 */ 9424 long getId(int index); 9425 9426 /** 9427 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9428 * 9429 * <pre> 9430 *repeated Info info = 4; 9431 * </pre> 9432 */ 9433 boolean hasDenseinfo(); 9434 /** 9435 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9436 * 9437 * <pre> 9438 *repeated Info info = 4; 9439 * </pre> 9440 */ 9441 crosby.binary.Osmformat.DenseInfo getDenseinfo(); 9442 9443 /** 9245 * 9444 9246 * <code>repeated sint64 lat = 8 [packed = true];</code> 9445 * 9247 */ 9248 java.util.List<java.lang.Long> getLatList(); 9249 /** 9446 9250 * <pre> 9447 9251 * DELTA coded 9448 9252 * </pre> 9449 */ 9450 java.util.List<java.lang.Long> getLatList(); 9451 /** 9253 * 9452 9254 * <code>repeated sint64 lat = 8 [packed = true];</code> 9453 * 9255 */ 9256 int getLatCount(); 9257 /** 9454 9258 * <pre> 9455 9259 * DELTA coded 9456 9260 * </pre> 9457 */ 9458 int getLatCount(); 9459 /** 9261 * 9460 9262 * <code>repeated sint64 lat = 8 [packed = true];</code> 9461 * 9263 */ 9264 long getLat(int index); 9265 9266 /** 9462 9267 * <pre> 9463 9268 * DELTA coded 9464 9269 * </pre> 9465 */ 9466 long getLat(int index); 9467 9468 /** 9270 * 9469 9271 * <code>repeated sint64 lon = 9 [packed = true];</code> 9470 * 9272 */ 9273 java.util.List<java.lang.Long> getLonList(); 9274 /** 9471 9275 * <pre> 9472 9276 * DELTA coded 9473 9277 * </pre> 9474 */ 9475 java.util.List<java.lang.Long> getLonList(); 9476 /** 9278 * 9477 9279 * <code>repeated sint64 lon = 9 [packed = true];</code> 9478 * 9280 */ 9281 int getLonCount(); 9282 /** 9479 9283 * <pre> 9480 9284 * DELTA coded 9481 9285 * </pre> 9482 */ 9483 int getLonCount(); 9484 /** 9286 * 9485 9287 * <code>repeated sint64 lon = 9 [packed = true];</code> 9486 *9487 * <pre>9488 * DELTA coded9489 * </pre>9490 9288 */ 9491 9289 long getLon(int index); 9492 9290 9493 9291 /** 9292 * <pre> 9293 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9294 * </pre> 9295 * 9494 9296 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9495 * 9297 */ 9298 java.util.List<java.lang.Integer> getKeysValsList(); 9299 /** 9496 9300 * <pre> 9497 9301 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9498 9302 * </pre> 9499 */ 9500 java.util.List<java.lang.Integer> getKeysValsList(); 9501 /** 9303 * 9502 9304 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9503 * 9305 */ 9306 int getKeysValsCount(); 9307 /** 9504 9308 * <pre> 9505 9309 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9506 9310 * </pre> 9507 */ 9508 int getKeysValsCount(); 9509 /** 9311 * 9510 9312 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9511 *9512 * <pre>9513 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.9514 * </pre>9515 9313 */ 9516 9314 int getKeysVals(int index); … … 9519 9317 * Protobuf type {@code OSMPBF.DenseNodes} 9520 9318 */ 9521 public static final class DenseNodes extends 9522 com.google.protobuf.GeneratedMessageLite implements 9319 public static final class DenseNodes extends 9320 com.google.protobuf.GeneratedMessageLite< 9321 DenseNodes, DenseNodes.Builder> implements 9523 9322 // @@protoc_insertion_point(message_implements:OSMPBF.DenseNodes) 9524 9323 DenseNodesOrBuilder { 9525 // Use DenseNodes.newBuilder() to construct. 9526 private DenseNodes(com.google.protobuf.GeneratedMessageLite.Builder builder) { 9527 super(builder); 9528 this.unknownFields = builder.getUnknownFields(); 9529 } 9530 private DenseNodes(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 9531 9532 private static final DenseNodes defaultInstance; 9533 public static DenseNodes getDefaultInstance() { 9534 return defaultInstance; 9535 } 9536 9537 @Override 9538 public DenseNodes getDefaultInstanceForType() { 9539 return defaultInstance; 9540 } 9541 9542 private final com.google.protobuf.ByteString unknownFields; 9543 private DenseNodes( 9544 com.google.protobuf.CodedInputStream input, 9545 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9546 throws com.google.protobuf.InvalidProtocolBufferException { 9547 initFields(); 9548 int mutable_bitField0_ = 0; 9549 com.google.protobuf.ByteString.Output unknownFieldsOutput = 9550 com.google.protobuf.ByteString.newOutput(); 9551 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 9552 com.google.protobuf.CodedOutputStream.newInstance( 9553 unknownFieldsOutput); 9554 try { 9555 boolean done = false; 9556 while (!done) { 9557 int tag = input.readTag(); 9558 switch (tag) { 9559 case 0: 9560 done = true; 9561 break; 9562 default: { 9563 if (!parseUnknownField(input, unknownFieldsCodedOutput, 9564 extensionRegistry, tag)) { 9565 done = true; 9566 } 9567 break; 9568 } 9569 case 8: { 9570 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 9571 id_ = new java.util.ArrayList<>(); 9572 mutable_bitField0_ |= 0x00000001; 9573 } 9574 id_.add(input.readSInt64()); 9575 break; 9576 } 9577 case 10: { 9578 int length = input.readRawVarint32(); 9579 int limit = input.pushLimit(length); 9580 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { 9581 id_ = new java.util.ArrayList<>(); 9582 mutable_bitField0_ |= 0x00000001; 9583 } 9584 while (input.getBytesUntilLimit() > 0) { 9585 id_.add(input.readSInt64()); 9586 } 9587 input.popLimit(limit); 9588 break; 9589 } 9590 case 42: { 9591 crosby.binary.Osmformat.DenseInfo.Builder subBuilder = null; 9592 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9593 subBuilder = denseinfo_.toBuilder(); 9594 } 9595 denseinfo_ = input.readMessage(crosby.binary.Osmformat.DenseInfo.PARSER, extensionRegistry); 9596 if (subBuilder != null) { 9597 subBuilder.mergeFrom(denseinfo_); 9598 denseinfo_ = subBuilder.buildPartial(); 9599 } 9600 bitField0_ |= 0x00000001; 9601 break; 9602 } 9603 case 64: { 9604 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 9605 lat_ = new java.util.ArrayList<>(); 9606 mutable_bitField0_ |= 0x00000004; 9607 } 9608 lat_.add(input.readSInt64()); 9609 break; 9610 } 9611 case 66: { 9612 int length = input.readRawVarint32(); 9613 int limit = input.pushLimit(length); 9614 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 9615 lat_ = new java.util.ArrayList<>(); 9616 mutable_bitField0_ |= 0x00000004; 9617 } 9618 while (input.getBytesUntilLimit() > 0) { 9619 lat_.add(input.readSInt64()); 9620 } 9621 input.popLimit(limit); 9622 break; 9623 } 9624 case 72: { 9625 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 9626 lon_ = new java.util.ArrayList<>(); 9627 mutable_bitField0_ |= 0x00000008; 9628 } 9629 lon_.add(input.readSInt64()); 9630 break; 9631 } 9632 case 74: { 9633 int length = input.readRawVarint32(); 9634 int limit = input.pushLimit(length); 9635 if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { 9636 lon_ = new java.util.ArrayList<>(); 9637 mutable_bitField0_ |= 0x00000008; 9638 } 9639 while (input.getBytesUntilLimit() > 0) { 9640 lon_.add(input.readSInt64()); 9641 } 9642 input.popLimit(limit); 9643 break; 9644 } 9645 case 80: { 9646 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 9647 keysVals_ = new java.util.ArrayList<>(); 9648 mutable_bitField0_ |= 0x00000010; 9649 } 9650 keysVals_.add(input.readInt32()); 9651 break; 9652 } 9653 case 82: { 9654 int length = input.readRawVarint32(); 9655 int limit = input.pushLimit(length); 9656 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 9657 keysVals_ = new java.util.ArrayList<>(); 9658 mutable_bitField0_ |= 0x00000010; 9659 } 9660 while (input.getBytesUntilLimit() > 0) { 9661 keysVals_.add(input.readInt32()); 9662 } 9663 input.popLimit(limit); 9664 break; 9665 } 9666 } 9667 } 9668 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9669 throw e.setUnfinishedMessage(this); 9670 } catch (java.io.IOException e) { 9671 throw new com.google.protobuf.InvalidProtocolBufferException( 9672 e.getMessage()).setUnfinishedMessage(this); 9673 } finally { 9674 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 9675 id_ = java.util.Collections.unmodifiableList(id_); 9676 } 9677 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 9678 lat_ = java.util.Collections.unmodifiableList(lat_); 9679 } 9680 if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { 9681 lon_ = java.util.Collections.unmodifiableList(lon_); 9682 } 9683 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 9684 keysVals_ = java.util.Collections.unmodifiableList(keysVals_); 9685 } 9686 try { 9687 unknownFieldsCodedOutput.flush(); 9688 } catch (java.io.IOException e) { 9689 // Should not happen 9690 } finally { 9691 unknownFields = unknownFieldsOutput.toByteString(); 9692 } 9693 makeExtensionsImmutable(); 9694 } 9695 } 9696 public static com.google.protobuf.Parser<DenseNodes> PARSER = 9697 new com.google.protobuf.AbstractParser<DenseNodes>() { 9698 @Override 9699 public DenseNodes parsePartialFrom( 9700 com.google.protobuf.CodedInputStream input, 9701 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9702 throws com.google.protobuf.InvalidProtocolBufferException { 9703 return new DenseNodes(input, extensionRegistry); 9704 } 9705 }; 9706 9707 @java.lang.Override 9708 public com.google.protobuf.Parser<DenseNodes> getParserForType() { 9709 return PARSER; 9710 } 9711 9324 private DenseNodes() { 9325 id_ = emptyLongList(); 9326 lat_ = emptyLongList(); 9327 lon_ = emptyLongList(); 9328 keysVals_ = emptyIntList(); 9329 } 9712 9330 private int bitField0_; 9713 9331 public static final int ID_FIELD_NUMBER = 1; 9714 private java.util.List<java.lang.Long> id_; 9715 /** 9332 private com.google.protobuf.Internal.LongList id_; 9333 /** 9334 * <pre> 9335 * DELTA coded 9336 * </pre> 9337 * 9716 9338 * <code>repeated sint64 id = 1 [packed = true];</code> 9717 * 9718 * <pre> 9719 * DELTA coded 9720 * </pre> 9721 */ 9722 @Override 9723 public java.util.List<java.lang.Long> 9339 */ 9340 public java.util.List<java.lang.Long> 9724 9341 getIdList() { 9725 9342 return id_; 9726 9343 } 9727 9344 /** 9345 * <pre> 9346 * DELTA coded 9347 * </pre> 9348 * 9728 9349 * <code>repeated sint64 id = 1 [packed = true];</code> 9729 * 9350 */ 9351 public int getIdCount() { 9352 return id_.size(); 9353 } 9354 /** 9730 9355 * <pre> 9731 9356 * DELTA coded 9732 9357 * </pre> 9733 */ 9734 @Override 9735 public int getIdCount() { 9736 return id_.size(); 9737 } 9738 /** 9358 * 9739 9359 * <code>repeated sint64 id = 1 [packed = true];</code> 9740 * 9360 */ 9361 public long getId(int index) { 9362 return id_.getLong(index); 9363 } 9364 private int idMemoizedSerializedSize = -1; 9365 private void ensureIdIsMutable() { 9366 if (!id_.isModifiable()) { 9367 id_ = 9368 com.google.protobuf.GeneratedMessageLite.mutableCopy(id_); 9369 } 9370 } 9371 /** 9741 9372 * <pre> 9742 9373 * DELTA coded 9743 9374 * </pre> 9744 */ 9745 @Override 9746 public long getId(int index) { 9747 return id_.get(index); 9748 } 9749 private int idMemoizedSerializedSize = -1; 9375 * 9376 * <code>repeated sint64 id = 1 [packed = true];</code> 9377 */ 9378 private void setId( 9379 int index, long value) { 9380 ensureIdIsMutable(); 9381 id_.setLong(index, value); 9382 } 9383 /** 9384 * <pre> 9385 * DELTA coded 9386 * </pre> 9387 * 9388 * <code>repeated sint64 id = 1 [packed = true];</code> 9389 */ 9390 private void addId(long value) { 9391 ensureIdIsMutable(); 9392 id_.addLong(value); 9393 } 9394 /** 9395 * <pre> 9396 * DELTA coded 9397 * </pre> 9398 * 9399 * <code>repeated sint64 id = 1 [packed = true];</code> 9400 */ 9401 private void addAllId( 9402 java.lang.Iterable<? extends java.lang.Long> values) { 9403 ensureIdIsMutable(); 9404 com.google.protobuf.AbstractMessageLite.addAll( 9405 values, id_); 9406 } 9407 /** 9408 * <pre> 9409 * DELTA coded 9410 * </pre> 9411 * 9412 * <code>repeated sint64 id = 1 [packed = true];</code> 9413 */ 9414 private void clearId() { 9415 id_ = emptyLongList(); 9416 } 9750 9417 9751 9418 public static final int DENSEINFO_FIELD_NUMBER = 5; 9752 9419 private crosby.binary.Osmformat.DenseInfo denseinfo_; 9753 9420 /** 9421 * <pre> 9422 *repeated Info info = 4; 9423 * </pre> 9424 * 9754 9425 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9755 * 9426 */ 9427 public boolean hasDenseinfo() { 9428 return ((bitField0_ & 0x00000001) == 0x00000001); 9429 } 9430 /** 9756 9431 * <pre> 9757 9432 *repeated Info info = 4; 9758 9433 * </pre> 9759 */ 9760 @Override 9761 public boolean hasDenseinfo() { 9762 return ((bitField0_ & 0x00000001) == 0x00000001); 9763 } 9764 /** 9434 * 9765 9435 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9766 * 9436 */ 9437 public crosby.binary.Osmformat.DenseInfo getDenseinfo() { 9438 return denseinfo_ == null ? crosby.binary.Osmformat.DenseInfo.getDefaultInstance() : denseinfo_; 9439 } 9440 /** 9767 9441 * <pre> 9768 9442 *repeated Info info = 4; 9769 9443 * </pre> 9770 */ 9771 @Override 9772 public crosby.binary.Osmformat.DenseInfo getDenseinfo() { 9773 return denseinfo_; 9444 * 9445 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9446 */ 9447 private void setDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 9448 if (value == null) { 9449 throw new NullPointerException(); 9450 } 9451 denseinfo_ = value; 9452 bitField0_ |= 0x00000001; 9453 } 9454 /** 9455 * <pre> 9456 *repeated Info info = 4; 9457 * </pre> 9458 * 9459 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9460 */ 9461 private void setDenseinfo( 9462 crosby.binary.Osmformat.DenseInfo.Builder builderForValue) { 9463 denseinfo_ = builderForValue.build(); 9464 bitField0_ |= 0x00000001; 9465 } 9466 /** 9467 * <pre> 9468 *repeated Info info = 4; 9469 * </pre> 9470 * 9471 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9472 */ 9473 private void mergeDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 9474 if (denseinfo_ != null && 9475 denseinfo_ != crosby.binary.Osmformat.DenseInfo.getDefaultInstance()) { 9476 denseinfo_ = 9477 crosby.binary.Osmformat.DenseInfo.newBuilder(denseinfo_).mergeFrom(value).buildPartial(); 9478 } else { 9479 denseinfo_ = value; 9480 } 9481 bitField0_ |= 0x00000001; 9482 } 9483 /** 9484 * <pre> 9485 *repeated Info info = 4; 9486 * </pre> 9487 * 9488 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 9489 */ 9490 private void clearDenseinfo() { denseinfo_ = null; 9491 bitField0_ = (bitField0_ & ~0x00000001); 9774 9492 } 9775 9493 9776 9494 public static final int LAT_FIELD_NUMBER = 8; 9777 private java.util.List<java.lang.Long> lat_; 9778 /** 9495 private com.google.protobuf.Internal.LongList lat_; 9496 /** 9497 * <pre> 9498 * DELTA coded 9499 * </pre> 9500 * 9779 9501 * <code>repeated sint64 lat = 8 [packed = true];</code> 9780 * 9781 * <pre> 9782 * DELTA coded 9783 * </pre> 9784 */ 9785 @Override 9786 public java.util.List<java.lang.Long> 9502 */ 9503 public java.util.List<java.lang.Long> 9787 9504 getLatList() { 9788 9505 return lat_; 9789 9506 } 9790 9507 /** 9508 * <pre> 9509 * DELTA coded 9510 * </pre> 9511 * 9791 9512 * <code>repeated sint64 lat = 8 [packed = true];</code> 9792 * 9513 */ 9514 public int getLatCount() { 9515 return lat_.size(); 9516 } 9517 /** 9793 9518 * <pre> 9794 9519 * DELTA coded 9795 9520 * </pre> 9796 */ 9797 @Override 9798 public int getLatCount() { 9799 return lat_.size(); 9800 } 9801 /** 9521 * 9802 9522 * <code>repeated sint64 lat = 8 [packed = true];</code> 9803 * 9523 */ 9524 public long getLat(int index) { 9525 return lat_.getLong(index); 9526 } 9527 private int latMemoizedSerializedSize = -1; 9528 private void ensureLatIsMutable() { 9529 if (!lat_.isModifiable()) { 9530 lat_ = 9531 com.google.protobuf.GeneratedMessageLite.mutableCopy(lat_); 9532 } 9533 } 9534 /** 9804 9535 * <pre> 9805 9536 * DELTA coded 9806 9537 * </pre> 9807 */ 9808 @Override 9809 public long getLat(int index) { 9810 return lat_.get(index); 9811 } 9812 private int latMemoizedSerializedSize = -1; 9538 * 9539 * <code>repeated sint64 lat = 8 [packed = true];</code> 9540 */ 9541 private void setLat( 9542 int index, long value) { 9543 ensureLatIsMutable(); 9544 lat_.setLong(index, value); 9545 } 9546 /** 9547 * <pre> 9548 * DELTA coded 9549 * </pre> 9550 * 9551 * <code>repeated sint64 lat = 8 [packed = true];</code> 9552 */ 9553 private void addLat(long value) { 9554 ensureLatIsMutable(); 9555 lat_.addLong(value); 9556 } 9557 /** 9558 * <pre> 9559 * DELTA coded 9560 * </pre> 9561 * 9562 * <code>repeated sint64 lat = 8 [packed = true];</code> 9563 */ 9564 private void addAllLat( 9565 java.lang.Iterable<? extends java.lang.Long> values) { 9566 ensureLatIsMutable(); 9567 com.google.protobuf.AbstractMessageLite.addAll( 9568 values, lat_); 9569 } 9570 /** 9571 * <pre> 9572 * DELTA coded 9573 * </pre> 9574 * 9575 * <code>repeated sint64 lat = 8 [packed = true];</code> 9576 */ 9577 private void clearLat() { 9578 lat_ = emptyLongList(); 9579 } 9813 9580 9814 9581 public static final int LON_FIELD_NUMBER = 9; 9815 private java.util.List<java.lang.Long> lon_; 9816 /** 9582 private com.google.protobuf.Internal.LongList lon_; 9583 /** 9584 * <pre> 9585 * DELTA coded 9586 * </pre> 9587 * 9817 9588 * <code>repeated sint64 lon = 9 [packed = true];</code> 9818 * 9819 * <pre> 9820 * DELTA coded 9821 * </pre> 9822 */ 9823 @Override 9824 public java.util.List<java.lang.Long> 9589 */ 9590 public java.util.List<java.lang.Long> 9825 9591 getLonList() { 9826 9592 return lon_; 9827 9593 } 9828 9594 /** 9595 * <pre> 9596 * DELTA coded 9597 * </pre> 9598 * 9829 9599 * <code>repeated sint64 lon = 9 [packed = true];</code> 9830 * 9600 */ 9601 public int getLonCount() { 9602 return lon_.size(); 9603 } 9604 /** 9831 9605 * <pre> 9832 9606 * DELTA coded 9833 9607 * </pre> 9834 */ 9835 @Override 9836 public int getLonCount() { 9837 return lon_.size(); 9838 } 9839 /** 9608 * 9840 9609 * <code>repeated sint64 lon = 9 [packed = true];</code> 9841 * 9610 */ 9611 public long getLon(int index) { 9612 return lon_.getLong(index); 9613 } 9614 private int lonMemoizedSerializedSize = -1; 9615 private void ensureLonIsMutable() { 9616 if (!lon_.isModifiable()) { 9617 lon_ = 9618 com.google.protobuf.GeneratedMessageLite.mutableCopy(lon_); 9619 } 9620 } 9621 /** 9842 9622 * <pre> 9843 9623 * DELTA coded 9844 9624 * </pre> 9845 */ 9846 @Override 9847 public long getLon(int index) { 9848 return lon_.get(index); 9849 } 9850 private int lonMemoizedSerializedSize = -1; 9625 * 9626 * <code>repeated sint64 lon = 9 [packed = true];</code> 9627 */ 9628 private void setLon( 9629 int index, long value) { 9630 ensureLonIsMutable(); 9631 lon_.setLong(index, value); 9632 } 9633 /** 9634 * <pre> 9635 * DELTA coded 9636 * </pre> 9637 * 9638 * <code>repeated sint64 lon = 9 [packed = true];</code> 9639 */ 9640 private void addLon(long value) { 9641 ensureLonIsMutable(); 9642 lon_.addLong(value); 9643 } 9644 /** 9645 * <pre> 9646 * DELTA coded 9647 * </pre> 9648 * 9649 * <code>repeated sint64 lon = 9 [packed = true];</code> 9650 */ 9651 private void addAllLon( 9652 java.lang.Iterable<? extends java.lang.Long> values) { 9653 ensureLonIsMutable(); 9654 com.google.protobuf.AbstractMessageLite.addAll( 9655 values, lon_); 9656 } 9657 /** 9658 * <pre> 9659 * DELTA coded 9660 * </pre> 9661 * 9662 * <code>repeated sint64 lon = 9 [packed = true];</code> 9663 */ 9664 private void clearLon() { 9665 lon_ = emptyLongList(); 9666 } 9851 9667 9852 9668 public static final int KEYS_VALS_FIELD_NUMBER = 10; 9853 private java.util.List<java.lang.Integer> keysVals_; 9854 /** 9669 private com.google.protobuf.Internal.IntList keysVals_; 9670 /** 9671 * <pre> 9672 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9673 * </pre> 9674 * 9855 9675 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9856 * 9857 * <pre> 9858 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9859 * </pre> 9860 */ 9861 @Override 9862 public java.util.List<java.lang.Integer> 9676 */ 9677 public java.util.List<java.lang.Integer> 9863 9678 getKeysValsList() { 9864 9679 return keysVals_; 9865 9680 } 9866 9681 /** 9682 * <pre> 9683 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9684 * </pre> 9685 * 9867 9686 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9868 * 9687 */ 9688 public int getKeysValsCount() { 9689 return keysVals_.size(); 9690 } 9691 /** 9869 9692 * <pre> 9870 9693 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9871 9694 * </pre> 9872 */ 9873 @Override 9874 public int getKeysValsCount() { 9875 return keysVals_.size(); 9876 } 9877 /** 9695 * 9878 9696 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9879 * 9697 */ 9698 public int getKeysVals(int index) { 9699 return keysVals_.getInt(index); 9700 } 9701 private int keysValsMemoizedSerializedSize = -1; 9702 private void ensureKeysValsIsMutable() { 9703 if (!keysVals_.isModifiable()) { 9704 keysVals_ = 9705 com.google.protobuf.GeneratedMessageLite.mutableCopy(keysVals_); 9706 } 9707 } 9708 /** 9880 9709 * <pre> 9881 9710 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9882 9711 * </pre> 9883 */ 9884 @Override 9885 public int getKeysVals(int index) { 9886 return keysVals_.get(index); 9887 } 9888 private int keysValsMemoizedSerializedSize = -1; 9889 9890 private void initFields() { 9891 id_ = java.util.Collections.emptyList(); 9892 denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 9893 lat_ = java.util.Collections.emptyList(); 9894 lon_ = java.util.Collections.emptyList(); 9895 keysVals_ = java.util.Collections.emptyList(); 9896 } 9897 private byte memoizedIsInitialized = -1; 9898 @Override 9899 public final boolean isInitialized() { 9900 byte isInitialized = memoizedIsInitialized; 9901 if (isInitialized == 1) return true; 9902 if (isInitialized == 0) return false; 9903 9904 memoizedIsInitialized = 1; 9905 return true; 9906 } 9907 9908 @Override 9909 public void writeTo(com.google.protobuf.CodedOutputStream output) 9712 * 9713 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9714 */ 9715 private void setKeysVals( 9716 int index, int value) { 9717 ensureKeysValsIsMutable(); 9718 keysVals_.setInt(index, value); 9719 } 9720 /** 9721 * <pre> 9722 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9723 * </pre> 9724 * 9725 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9726 */ 9727 private void addKeysVals(int value) { 9728 ensureKeysValsIsMutable(); 9729 keysVals_.addInt(value); 9730 } 9731 /** 9732 * <pre> 9733 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9734 * </pre> 9735 * 9736 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9737 */ 9738 private void addAllKeysVals( 9739 java.lang.Iterable<? extends java.lang.Integer> values) { 9740 ensureKeysValsIsMutable(); 9741 com.google.protobuf.AbstractMessageLite.addAll( 9742 values, keysVals_); 9743 } 9744 /** 9745 * <pre> 9746 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 9747 * </pre> 9748 * 9749 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 9750 */ 9751 private void clearKeysVals() { 9752 keysVals_ = emptyIntList(); 9753 } 9754 9755 public void writeTo(com.google.protobuf.CodedOutputStream output) 9910 9756 throws java.io.IOException { 9911 9757 getSerializedSize(); 9912 9758 if (getIdList().size() > 0) { 9913 output.write RawVarint32(10);9914 output.write RawVarint32(idMemoizedSerializedSize);9759 output.writeUInt32NoTag(10); 9760 output.writeUInt32NoTag(idMemoizedSerializedSize); 9915 9761 } 9916 9762 for (int i = 0; i < id_.size(); i++) { 9917 output.writeSInt64NoTag(id_.get (i));9763 output.writeSInt64NoTag(id_.getLong(i)); 9918 9764 } 9919 9765 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9920 output.writeMessage(5, denseinfo_);9766 output.writeMessage(5, getDenseinfo()); 9921 9767 } 9922 9768 if (getLatList().size() > 0) { 9923 output.write RawVarint32(66);9924 output.write RawVarint32(latMemoizedSerializedSize);9769 output.writeUInt32NoTag(66); 9770 output.writeUInt32NoTag(latMemoizedSerializedSize); 9925 9771 } 9926 9772 for (int i = 0; i < lat_.size(); i++) { 9927 output.writeSInt64NoTag(lat_.get (i));9773 output.writeSInt64NoTag(lat_.getLong(i)); 9928 9774 } 9929 9775 if (getLonList().size() > 0) { 9930 output.write RawVarint32(74);9931 output.write RawVarint32(lonMemoizedSerializedSize);9776 output.writeUInt32NoTag(74); 9777 output.writeUInt32NoTag(lonMemoizedSerializedSize); 9932 9778 } 9933 9779 for (int i = 0; i < lon_.size(); i++) { 9934 output.writeSInt64NoTag(lon_.get (i));9780 output.writeSInt64NoTag(lon_.getLong(i)); 9935 9781 } 9936 9782 if (getKeysValsList().size() > 0) { 9937 output.write RawVarint32(82);9938 output.write RawVarint32(keysValsMemoizedSerializedSize);9783 output.writeUInt32NoTag(82); 9784 output.writeUInt32NoTag(keysValsMemoizedSerializedSize); 9939 9785 } 9940 9786 for (int i = 0; i < keysVals_.size(); i++) { 9941 output.writeInt32NoTag(keysVals_.get(i)); 9942 } 9943 output.writeRawBytes(unknownFields); 9944 } 9945 9946 private int memoizedSerializedSize = -1; 9947 @Override 9948 public int getSerializedSize() { 9787 output.writeInt32NoTag(keysVals_.getInt(i)); 9788 } 9789 unknownFields.writeTo(output); 9790 } 9791 9792 public int getSerializedSize() { 9949 9793 int size = memoizedSerializedSize; 9950 9794 if (size != -1) return size; … … 9955 9799 for (int i = 0; i < id_.size(); i++) { 9956 9800 dataSize += com.google.protobuf.CodedOutputStream 9957 .computeSInt64SizeNoTag(id_.get (i));9801 .computeSInt64SizeNoTag(id_.getLong(i)); 9958 9802 } 9959 9803 size += dataSize; … … 9967 9811 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9968 9812 size += com.google.protobuf.CodedOutputStream 9969 .computeMessageSize(5, denseinfo_);9813 .computeMessageSize(5, getDenseinfo()); 9970 9814 } 9971 9815 { … … 9973 9817 for (int i = 0; i < lat_.size(); i++) { 9974 9818 dataSize += com.google.protobuf.CodedOutputStream 9975 .computeSInt64SizeNoTag(lat_.get (i));9819 .computeSInt64SizeNoTag(lat_.getLong(i)); 9976 9820 } 9977 9821 size += dataSize; … … 9987 9831 for (int i = 0; i < lon_.size(); i++) { 9988 9832 dataSize += com.google.protobuf.CodedOutputStream 9989 .computeSInt64SizeNoTag(lon_.get (i));9833 .computeSInt64SizeNoTag(lon_.getLong(i)); 9990 9834 } 9991 9835 size += dataSize; … … 10001 9845 for (int i = 0; i < keysVals_.size(); i++) { 10002 9846 dataSize += com.google.protobuf.CodedOutputStream 10003 .computeInt32SizeNoTag(keysVals_.get (i));9847 .computeInt32SizeNoTag(keysVals_.getInt(i)); 10004 9848 } 10005 9849 size += dataSize; … … 10011 9855 keysValsMemoizedSerializedSize = dataSize; 10012 9856 } 10013 size += unknownFields. size();9857 size += unknownFields.getSerializedSize(); 10014 9858 memoizedSerializedSize = size; 10015 9859 return size; 10016 9860 } 10017 9861 10018 private static final long serialVersionUID = 0L; 10019 @java.lang.Override 10020 protected java.lang.Object writeReplace() 10021 throws java.io.ObjectStreamException { 10022 return super.writeReplace(); 10023 } 10024 9862 public static crosby.binary.Osmformat.DenseNodes parseFrom( 9863 java.nio.ByteBuffer data) 9864 throws com.google.protobuf.InvalidProtocolBufferException { 9865 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9866 DEFAULT_INSTANCE, data); 9867 } 9868 public static crosby.binary.Osmformat.DenseNodes parseFrom( 9869 java.nio.ByteBuffer data, 9870 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9871 throws com.google.protobuf.InvalidProtocolBufferException { 9872 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9873 DEFAULT_INSTANCE, data, extensionRegistry); 9874 } 10025 9875 public static crosby.binary.Osmformat.DenseNodes parseFrom( 10026 9876 com.google.protobuf.ByteString data) 10027 9877 throws com.google.protobuf.InvalidProtocolBufferException { 10028 return PARSER.parseFrom(data); 9878 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9879 DEFAULT_INSTANCE, data); 10029 9880 } 10030 9881 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 10032 9883 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10033 9884 throws com.google.protobuf.InvalidProtocolBufferException { 10034 return PARSER.parseFrom(data, extensionRegistry); 9885 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9886 DEFAULT_INSTANCE, data, extensionRegistry); 10035 9887 } 10036 9888 public static crosby.binary.Osmformat.DenseNodes parseFrom(byte[] data) 10037 9889 throws com.google.protobuf.InvalidProtocolBufferException { 10038 return PARSER.parseFrom(data); 9890 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9891 DEFAULT_INSTANCE, data); 10039 9892 } 10040 9893 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 10042 9895 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10043 9896 throws com.google.protobuf.InvalidProtocolBufferException { 10044 return PARSER.parseFrom(data, extensionRegistry); 9897 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9898 DEFAULT_INSTANCE, data, extensionRegistry); 10045 9899 } 10046 9900 public static crosby.binary.Osmformat.DenseNodes parseFrom(java.io.InputStream input) 10047 9901 throws java.io.IOException { 10048 return PARSER.parseFrom(input); 9902 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9903 DEFAULT_INSTANCE, input); 10049 9904 } 10050 9905 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 10052 9907 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10053 9908 throws java.io.IOException { 10054 return PARSER.parseFrom(input, extensionRegistry); 9909 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9910 DEFAULT_INSTANCE, input, extensionRegistry); 10055 9911 } 10056 9912 public static crosby.binary.Osmformat.DenseNodes parseDelimitedFrom(java.io.InputStream input) 10057 9913 throws java.io.IOException { 10058 return PARSER.parseDelimitedFrom(input);9914 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 10059 9915 } 10060 9916 public static crosby.binary.Osmformat.DenseNodes parseDelimitedFrom( … … 10062 9918 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10063 9919 throws java.io.IOException { 10064 return PARSER.parseDelimitedFrom(input, extensionRegistry);9920 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 10065 9921 } 10066 9922 public static crosby.binary.Osmformat.DenseNodes parseFrom( 10067 9923 com.google.protobuf.CodedInputStream input) 10068 9924 throws java.io.IOException { 10069 return PARSER.parseFrom(input); 9925 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9926 DEFAULT_INSTANCE, input); 10070 9927 } 10071 9928 public static crosby.binary.Osmformat.DenseNodes parseFrom( … … 10073 9930 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10074 9931 throws java.io.IOException { 10075 return PARSER.parseFrom(input, extensionRegistry); 10076 } 10077 10078 public static Builder newBuilder() { return Builder.create(); } 10079 @Override 10080 public Builder newBuilderForType() { return newBuilder(); } 9932 return com.google.protobuf.GeneratedMessageLite.parseFrom( 9933 DEFAULT_INSTANCE, input, extensionRegistry); 9934 } 9935 9936 public static Builder newBuilder() { 9937 return DEFAULT_INSTANCE.toBuilder(); 9938 } 10081 9939 public static Builder newBuilder(crosby.binary.Osmformat.DenseNodes prototype) { 10082 return newBuilder().mergeFrom(prototype); 10083 } 10084 @Override 10085 public Builder toBuilder() { return newBuilder(this); } 9940 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 9941 } 10086 9942 10087 9943 /** … … 10090 9946 public static final class Builder extends 10091 9947 com.google.protobuf.GeneratedMessageLite.Builder< 10092 crosby.binary.Osmformat.DenseNodes, Builder> 10093 implements 9948 crosby.binary.Osmformat.DenseNodes, Builder> implements 10094 9949 // @@protoc_insertion_point(builder_implements:OSMPBF.DenseNodes) 10095 9950 crosby.binary.Osmformat.DenseNodesOrBuilder { 10096 9951 // Construct using crosby.binary.Osmformat.DenseNodes.newBuilder() 10097 9952 private Builder() { 10098 maybeForceBuilderInitialization(); 10099 } 10100 10101 private void maybeForceBuilderInitialization() { 10102 } 10103 private static Builder create() { 10104 return new Builder(); 10105 } 10106 10107 @Override 10108 public Builder clear() { 10109 super.clear(); 10110 id_ = java.util.Collections.emptyList(); 10111 bitField0_ = (bitField0_ & ~0x00000001); 10112 denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 10113 bitField0_ = (bitField0_ & ~0x00000002); 10114 lat_ = java.util.Collections.emptyList(); 10115 bitField0_ = (bitField0_ & ~0x00000004); 10116 lon_ = java.util.Collections.emptyList(); 10117 bitField0_ = (bitField0_ & ~0x00000008); 10118 keysVals_ = java.util.Collections.emptyList(); 10119 bitField0_ = (bitField0_ & ~0x00000010); 10120 return this; 10121 } 10122 10123 @Override 10124 public Builder clone() { 10125 return create().mergeFrom(buildPartial()); 10126 } 10127 10128 @Override 10129 public crosby.binary.Osmformat.DenseNodes getDefaultInstanceForType() { 10130 return crosby.binary.Osmformat.DenseNodes.getDefaultInstance(); 10131 } 10132 10133 @Override 10134 public crosby.binary.Osmformat.DenseNodes build() { 10135 crosby.binary.Osmformat.DenseNodes result = buildPartial(); 10136 if (!result.isInitialized()) { 10137 throw newUninitializedMessageException(result); 10138 } 10139 return result; 10140 } 10141 10142 @Override 10143 public crosby.binary.Osmformat.DenseNodes buildPartial() { 10144 crosby.binary.Osmformat.DenseNodes result = new crosby.binary.Osmformat.DenseNodes(this); 10145 int from_bitField0_ = bitField0_; 10146 int to_bitField0_ = 0; 10147 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10148 id_ = java.util.Collections.unmodifiableList(id_); 10149 bitField0_ = (bitField0_ & ~0x00000001); 10150 } 10151 result.id_ = id_; 10152 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 10153 to_bitField0_ |= 0x00000001; 10154 } 10155 result.denseinfo_ = denseinfo_; 10156 if (((bitField0_ & 0x00000004) == 0x00000004)) { 10157 lat_ = java.util.Collections.unmodifiableList(lat_); 10158 bitField0_ = (bitField0_ & ~0x00000004); 10159 } 10160 result.lat_ = lat_; 10161 if (((bitField0_ & 0x00000008) == 0x00000008)) { 10162 lon_ = java.util.Collections.unmodifiableList(lon_); 10163 bitField0_ = (bitField0_ & ~0x00000008); 10164 } 10165 result.lon_ = lon_; 10166 if (((bitField0_ & 0x00000010) == 0x00000010)) { 10167 keysVals_ = java.util.Collections.unmodifiableList(keysVals_); 10168 bitField0_ = (bitField0_ & ~0x00000010); 10169 } 10170 result.keysVals_ = keysVals_; 10171 result.bitField0_ = to_bitField0_; 10172 return result; 10173 } 10174 10175 @Override 10176 public Builder mergeFrom(crosby.binary.Osmformat.DenseNodes other) { 10177 if (other == crosby.binary.Osmformat.DenseNodes.getDefaultInstance()) return this; 10178 if (!other.id_.isEmpty()) { 10179 if (id_.isEmpty()) { 10180 id_ = other.id_; 10181 bitField0_ = (bitField0_ & ~0x00000001); 10182 } else { 10183 ensureIdIsMutable(); 10184 id_.addAll(other.id_); 10185 } 10186 10187 } 10188 if (other.hasDenseinfo()) { 10189 mergeDenseinfo(other.getDenseinfo()); 10190 } 10191 if (!other.lat_.isEmpty()) { 10192 if (lat_.isEmpty()) { 10193 lat_ = other.lat_; 10194 bitField0_ = (bitField0_ & ~0x00000004); 10195 } else { 10196 ensureLatIsMutable(); 10197 lat_.addAll(other.lat_); 10198 } 10199 10200 } 10201 if (!other.lon_.isEmpty()) { 10202 if (lon_.isEmpty()) { 10203 lon_ = other.lon_; 10204 bitField0_ = (bitField0_ & ~0x00000008); 10205 } else { 10206 ensureLonIsMutable(); 10207 lon_.addAll(other.lon_); 10208 } 10209 10210 } 10211 if (!other.keysVals_.isEmpty()) { 10212 if (keysVals_.isEmpty()) { 10213 keysVals_ = other.keysVals_; 10214 bitField0_ = (bitField0_ & ~0x00000010); 10215 } else { 10216 ensureKeysValsIsMutable(); 10217 keysVals_.addAll(other.keysVals_); 10218 } 10219 10220 } 10221 setUnknownFields( 10222 getUnknownFields().concat(other.unknownFields)); 10223 return this; 10224 } 10225 10226 @Override 10227 public final boolean isInitialized() { 10228 return true; 10229 } 10230 10231 @Override 10232 public Builder mergeFrom( 10233 com.google.protobuf.CodedInputStream input, 10234 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10235 throws java.io.IOException { 10236 crosby.binary.Osmformat.DenseNodes parsedMessage = null; 10237 try { 10238 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 10239 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10240 parsedMessage = (crosby.binary.Osmformat.DenseNodes) e.getUnfinishedMessage(); 10241 throw e; 10242 } finally { 10243 if (parsedMessage != null) { 10244 mergeFrom(parsedMessage); 10245 } 10246 } 10247 return this; 10248 } 10249 private int bitField0_; 10250 10251 private java.util.List<java.lang.Long> id_ = java.util.Collections.emptyList(); 10252 private void ensureIdIsMutable() { 10253 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 10254 id_ = new java.util.ArrayList<>(id_); 10255 bitField0_ |= 0x00000001; 10256 } 10257 } 10258 /** 9953 super(DEFAULT_INSTANCE); 9954 } 9955 9956 9957 /** 9958 * <pre> 9959 * DELTA coded 9960 * </pre> 9961 * 10259 9962 * <code>repeated sint64 id = 1 [packed = true];</code> 10260 * 9963 */ 9964 public java.util.List<java.lang.Long> 9965 getIdList() { 9966 return java.util.Collections.unmodifiableList( 9967 instance.getIdList()); 9968 } 9969 /** 10261 9970 * <pre> 10262 9971 * DELTA coded 10263 9972 * </pre> 10264 */ 10265 @Override 10266 public java.util.List<java.lang.Long> 10267 getIdList() { 10268 return java.util.Collections.unmodifiableList(id_); 10269 } 10270 /** 9973 * 10271 9974 * <code>repeated sint64 id = 1 [packed = true];</code> 10272 * 9975 */ 9976 public int getIdCount() { 9977 return instance.getIdCount(); 9978 } 9979 /** 10273 9980 * <pre> 10274 9981 * DELTA coded 10275 9982 * </pre> 10276 */ 10277 @Override 10278 public int getIdCount() { 10279 return id_.size(); 10280 } 10281 /** 9983 * 10282 9984 * <code>repeated sint64 id = 1 [packed = true];</code> 10283 * 9985 */ 9986 public long getId(int index) { 9987 return instance.getId(index); 9988 } 9989 /** 10284 9990 * <pre> 10285 9991 * DELTA coded 10286 9992 * </pre> 10287 */ 10288 @Override 10289 public long getId(int index) { 10290 return id_.get(index); 10291 } 10292 /** 9993 * 10293 9994 * <code>repeated sint64 id = 1 [packed = true];</code> 10294 *10295 * <pre>10296 * DELTA coded10297 * </pre>10298 9995 */ 10299 9996 public Builder setId( 10300 9997 int index, long value) { 10301 ensureIdIsMutable(); 10302 id_.set(index, value); 10303 10304 return this; 10305 } 10306 /** 9998 copyOnWrite(); 9999 instance.setId(index, value); 10000 return this; 10001 } 10002 /** 10003 * <pre> 10004 * DELTA coded 10005 * </pre> 10006 * 10307 10007 * <code>repeated sint64 id = 1 [packed = true];</code> 10308 * 10008 */ 10009 public Builder addId(long value) { 10010 copyOnWrite(); 10011 instance.addId(value); 10012 return this; 10013 } 10014 /** 10309 10015 * <pre> 10310 10016 * DELTA coded 10311 10017 * </pre> 10312 */ 10313 public Builder addId(long value) { 10314 ensureIdIsMutable(); 10315 id_.add(value); 10316 10317 return this; 10318 } 10319 /** 10018 * 10320 10019 * <code>repeated sint64 id = 1 [packed = true];</code> 10321 *10322 * <pre>10323 * DELTA coded10324 * </pre>10325 10020 */ 10326 10021 public Builder addAllId( 10327 10022 java.lang.Iterable<? extends java.lang.Long> values) { 10328 ensureIdIsMutable(); 10329 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10330 values, id_); 10331 10332 return this; 10333 } 10334 /** 10023 copyOnWrite(); 10024 instance.addAllId(values); 10025 return this; 10026 } 10027 /** 10028 * <pre> 10029 * DELTA coded 10030 * </pre> 10031 * 10335 10032 * <code>repeated sint64 id = 1 [packed = true];</code> 10336 *10337 * <pre>10338 * DELTA coded10339 * </pre>10340 10033 */ 10341 10034 public Builder clearId() { 10342 id_ = java.util.Collections.emptyList(); 10343 bitField0_ = (bitField0_ & ~0x00000001); 10344 10345 return this; 10346 } 10347 10348 private crosby.binary.Osmformat.DenseInfo denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 10349 /** 10035 copyOnWrite(); 10036 instance.clearId(); 10037 return this; 10038 } 10039 10040 /** 10041 * <pre> 10042 *repeated Info info = 4; 10043 * </pre> 10044 * 10350 10045 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10351 * 10046 */ 10047 public boolean hasDenseinfo() { 10048 return instance.hasDenseinfo(); 10049 } 10050 /** 10352 10051 * <pre> 10353 10052 *repeated Info info = 4; 10354 10053 * </pre> 10355 */ 10356 @Override 10357 public boolean hasDenseinfo() { 10358 return ((bitField0_ & 0x00000002) == 0x00000002); 10359 } 10360 /** 10054 * 10361 10055 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10362 * 10056 */ 10057 public crosby.binary.Osmformat.DenseInfo getDenseinfo() { 10058 return instance.getDenseinfo(); 10059 } 10060 /** 10363 10061 * <pre> 10364 10062 *repeated Info info = 4; 10365 10063 * </pre> 10366 */ 10367 @Override 10368 public crosby.binary.Osmformat.DenseInfo getDenseinfo() { 10369 return denseinfo_; 10370 } 10371 /** 10064 * 10372 10065 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10373 * 10066 */ 10067 public Builder setDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 10068 copyOnWrite(); 10069 instance.setDenseinfo(value); 10070 return this; 10071 } 10072 /** 10374 10073 * <pre> 10375 10074 *repeated Info info = 4; 10376 10075 * </pre> 10377 */ 10378 public Builder setDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 10379 if (value == null) { 10380 throw new NullPointerException(); 10381 } 10382 denseinfo_ = value; 10383 10384 bitField0_ |= 0x00000002; 10385 return this; 10386 } 10387 /** 10076 * 10388 10077 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10389 *10390 * <pre>10391 *repeated Info info = 4;10392 * </pre>10393 10078 */ 10394 10079 public Builder setDenseinfo( 10395 10080 crosby.binary.Osmformat.DenseInfo.Builder builderForValue) { 10396 denseinfo_ = builderForValue.build(); 10397 10398 bitField0_ |= 0x00000002; 10399 return this; 10400 } 10401 /** 10081 copyOnWrite(); 10082 instance.setDenseinfo(builderForValue); 10083 return this; 10084 } 10085 /** 10086 * <pre> 10087 *repeated Info info = 4; 10088 * </pre> 10089 * 10402 10090 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10403 * 10091 */ 10092 public Builder mergeDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 10093 copyOnWrite(); 10094 instance.mergeDenseinfo(value); 10095 return this; 10096 } 10097 /** 10404 10098 * <pre> 10405 10099 *repeated Info info = 4; 10406 10100 * </pre> 10407 */ 10408 public Builder mergeDenseinfo(crosby.binary.Osmformat.DenseInfo value) { 10409 if (((bitField0_ & 0x00000002) == 0x00000002) && 10410 denseinfo_ != crosby.binary.Osmformat.DenseInfo.getDefaultInstance()) { 10411 denseinfo_ = 10412 crosby.binary.Osmformat.DenseInfo.newBuilder(denseinfo_).mergeFrom(value).buildPartial(); 10413 } else { 10414 denseinfo_ = value; 10415 } 10416 10417 bitField0_ |= 0x00000002; 10418 return this; 10419 } 10420 /** 10101 * 10421 10102 * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> 10422 * 10423 * <pre> 10424 *repeated Info info = 4; 10425 * </pre> 10426 */ 10427 public Builder clearDenseinfo() { 10428 denseinfo_ = crosby.binary.Osmformat.DenseInfo.getDefaultInstance(); 10429 10430 bitField0_ = (bitField0_ & ~0x00000002); 10431 return this; 10432 } 10433 10434 private java.util.List<java.lang.Long> lat_ = java.util.Collections.emptyList(); 10435 private void ensureLatIsMutable() { 10436 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 10437 lat_ = new java.util.ArrayList<>(lat_); 10438 bitField0_ |= 0x00000004; 10439 } 10440 } 10441 /** 10103 */ 10104 public Builder clearDenseinfo() { copyOnWrite(); 10105 instance.clearDenseinfo(); 10106 return this; 10107 } 10108 10109 /** 10110 * <pre> 10111 * DELTA coded 10112 * </pre> 10113 * 10442 10114 * <code>repeated sint64 lat = 8 [packed = true];</code> 10443 * 10115 */ 10116 public java.util.List<java.lang.Long> 10117 getLatList() { 10118 return java.util.Collections.unmodifiableList( 10119 instance.getLatList()); 10120 } 10121 /** 10444 10122 * <pre> 10445 10123 * DELTA coded 10446 10124 * </pre> 10447 */ 10448 @Override 10449 public java.util.List<java.lang.Long> 10450 getLatList() { 10451 return java.util.Collections.unmodifiableList(lat_); 10452 } 10453 /** 10125 * 10454 10126 * <code>repeated sint64 lat = 8 [packed = true];</code> 10455 * 10127 */ 10128 public int getLatCount() { 10129 return instance.getLatCount(); 10130 } 10131 /** 10456 10132 * <pre> 10457 10133 * DELTA coded 10458 10134 * </pre> 10459 */ 10460 @Override 10461 public int getLatCount() { 10462 return lat_.size(); 10463 } 10464 /** 10135 * 10465 10136 * <code>repeated sint64 lat = 8 [packed = true];</code> 10466 * 10137 */ 10138 public long getLat(int index) { 10139 return instance.getLat(index); 10140 } 10141 /** 10467 10142 * <pre> 10468 10143 * DELTA coded 10469 10144 * </pre> 10470 */ 10471 @Override 10472 public long getLat(int index) { 10473 return lat_.get(index); 10474 } 10475 /** 10145 * 10476 10146 * <code>repeated sint64 lat = 8 [packed = true];</code> 10477 *10478 * <pre>10479 * DELTA coded10480 * </pre>10481 10147 */ 10482 10148 public Builder setLat( 10483 10149 int index, long value) { 10484 ensureLatIsMutable(); 10485 lat_.set(index, value); 10486 10487 return this; 10488 } 10489 /** 10150 copyOnWrite(); 10151 instance.setLat(index, value); 10152 return this; 10153 } 10154 /** 10155 * <pre> 10156 * DELTA coded 10157 * </pre> 10158 * 10490 10159 * <code>repeated sint64 lat = 8 [packed = true];</code> 10491 * 10160 */ 10161 public Builder addLat(long value) { 10162 copyOnWrite(); 10163 instance.addLat(value); 10164 return this; 10165 } 10166 /** 10492 10167 * <pre> 10493 10168 * DELTA coded 10494 10169 * </pre> 10495 */ 10496 public Builder addLat(long value) { 10497 ensureLatIsMutable(); 10498 lat_.add(value); 10499 10500 return this; 10501 } 10502 /** 10170 * 10503 10171 * <code>repeated sint64 lat = 8 [packed = true];</code> 10504 *10505 * <pre>10506 * DELTA coded10507 * </pre>10508 10172 */ 10509 10173 public Builder addAllLat( 10510 10174 java.lang.Iterable<? extends java.lang.Long> values) { 10511 ensureLatIsMutable(); 10512 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10513 values, lat_); 10514 10515 return this; 10516 } 10517 /** 10175 copyOnWrite(); 10176 instance.addAllLat(values); 10177 return this; 10178 } 10179 /** 10180 * <pre> 10181 * DELTA coded 10182 * </pre> 10183 * 10518 10184 * <code>repeated sint64 lat = 8 [packed = true];</code> 10519 * 10185 */ 10186 public Builder clearLat() { 10187 copyOnWrite(); 10188 instance.clearLat(); 10189 return this; 10190 } 10191 10192 /** 10520 10193 * <pre> 10521 10194 * DELTA coded 10522 10195 * </pre> 10523 */ 10524 public Builder clearLat() { 10525 lat_ = java.util.Collections.emptyList(); 10526 bitField0_ = (bitField0_ & ~0x00000004); 10527 10528 return this; 10529 } 10530 10531 private java.util.List<java.lang.Long> lon_ = java.util.Collections.emptyList(); 10532 private void ensureLonIsMutable() { 10533 if (!((bitField0_ & 0x00000008) == 0x00000008)) { 10534 lon_ = new java.util.ArrayList<>(lon_); 10535 bitField0_ |= 0x00000008; 10536 } 10537 } 10538 /** 10196 * 10539 10197 * <code>repeated sint64 lon = 9 [packed = true];</code> 10540 * 10198 */ 10199 public java.util.List<java.lang.Long> 10200 getLonList() { 10201 return java.util.Collections.unmodifiableList( 10202 instance.getLonList()); 10203 } 10204 /** 10541 10205 * <pre> 10542 10206 * DELTA coded 10543 10207 * </pre> 10544 */ 10545 @Override 10546 public java.util.List<java.lang.Long> 10547 getLonList() { 10548 return java.util.Collections.unmodifiableList(lon_); 10549 } 10550 /** 10208 * 10551 10209 * <code>repeated sint64 lon = 9 [packed = true];</code> 10552 * 10210 */ 10211 public int getLonCount() { 10212 return instance.getLonCount(); 10213 } 10214 /** 10553 10215 * <pre> 10554 10216 * DELTA coded 10555 10217 * </pre> 10556 */ 10557 @Override 10558 public int getLonCount() { 10559 return lon_.size(); 10560 } 10561 /** 10218 * 10562 10219 * <code>repeated sint64 lon = 9 [packed = true];</code> 10563 * 10220 */ 10221 public long getLon(int index) { 10222 return instance.getLon(index); 10223 } 10224 /** 10564 10225 * <pre> 10565 10226 * DELTA coded 10566 10227 * </pre> 10567 */ 10568 @Override 10569 public long getLon(int index) { 10570 return lon_.get(index); 10571 } 10572 /** 10228 * 10573 10229 * <code>repeated sint64 lon = 9 [packed = true];</code> 10574 *10575 * <pre>10576 * DELTA coded10577 * </pre>10578 10230 */ 10579 10231 public Builder setLon( 10580 10232 int index, long value) { 10581 ensureLonIsMutable(); 10582 lon_.set(index, value); 10583 10584 return this; 10585 } 10586 /** 10233 copyOnWrite(); 10234 instance.setLon(index, value); 10235 return this; 10236 } 10237 /** 10238 * <pre> 10239 * DELTA coded 10240 * </pre> 10241 * 10587 10242 * <code>repeated sint64 lon = 9 [packed = true];</code> 10588 * 10243 */ 10244 public Builder addLon(long value) { 10245 copyOnWrite(); 10246 instance.addLon(value); 10247 return this; 10248 } 10249 /** 10589 10250 * <pre> 10590 10251 * DELTA coded 10591 10252 * </pre> 10592 */ 10593 public Builder addLon(long value) { 10594 ensureLonIsMutable(); 10595 lon_.add(value); 10596 10597 return this; 10598 } 10599 /** 10253 * 10600 10254 * <code>repeated sint64 lon = 9 [packed = true];</code> 10601 *10602 * <pre>10603 * DELTA coded10604 * </pre>10605 10255 */ 10606 10256 public Builder addAllLon( 10607 10257 java.lang.Iterable<? extends java.lang.Long> values) { 10608 ensureLonIsMutable(); 10609 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10610 values, lon_); 10611 10612 return this; 10613 } 10614 /** 10258 copyOnWrite(); 10259 instance.addAllLon(values); 10260 return this; 10261 } 10262 /** 10263 * <pre> 10264 * DELTA coded 10265 * </pre> 10266 * 10615 10267 * <code>repeated sint64 lon = 9 [packed = true];</code> 10616 *10617 * <pre>10618 * DELTA coded10619 * </pre>10620 10268 */ 10621 10269 public Builder clearLon() { 10622 lon_ = java.util.Collections.emptyList(); 10623 bitField0_ = (bitField0_ & ~0x00000008); 10624 10625 return this; 10626 } 10627 10628 private java.util.List<java.lang.Integer> keysVals_ = java.util.Collections.emptyList(); 10629 private void ensureKeysValsIsMutable() { 10630 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 10631 keysVals_ = new java.util.ArrayList<>(keysVals_); 10632 bitField0_ |= 0x00000010; 10633 } 10634 } 10635 /** 10270 copyOnWrite(); 10271 instance.clearLon(); 10272 return this; 10273 } 10274 10275 /** 10276 * <pre> 10277 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10278 * </pre> 10279 * 10636 10280 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10637 * 10281 */ 10282 public java.util.List<java.lang.Integer> 10283 getKeysValsList() { 10284 return java.util.Collections.unmodifiableList( 10285 instance.getKeysValsList()); 10286 } 10287 /** 10638 10288 * <pre> 10639 10289 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10640 10290 * </pre> 10641 */ 10642 @Override 10643 public java.util.List<java.lang.Integer> 10644 getKeysValsList() { 10645 return java.util.Collections.unmodifiableList(keysVals_); 10646 } 10647 /** 10291 * 10648 10292 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10649 * 10293 */ 10294 public int getKeysValsCount() { 10295 return instance.getKeysValsCount(); 10296 } 10297 /** 10650 10298 * <pre> 10651 10299 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10652 10300 * </pre> 10653 */ 10654 @Override 10655 public int getKeysValsCount() { 10656 return keysVals_.size(); 10657 } 10658 /** 10301 * 10659 10302 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10660 * 10303 */ 10304 public int getKeysVals(int index) { 10305 return instance.getKeysVals(index); 10306 } 10307 /** 10661 10308 * <pre> 10662 10309 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10663 10310 * </pre> 10664 */ 10665 @Override 10666 public int getKeysVals(int index) { 10667 return keysVals_.get(index); 10668 } 10669 /** 10311 * 10670 10312 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10671 *10672 * <pre>10673 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.10674 * </pre>10675 10313 */ 10676 10314 public Builder setKeysVals( 10677 10315 int index, int value) { 10678 ensureKeysValsIsMutable(); 10679 keysVals_.set(index, value); 10680 10681 return this; 10682 } 10683 /** 10316 copyOnWrite(); 10317 instance.setKeysVals(index, value); 10318 return this; 10319 } 10320 /** 10321 * <pre> 10322 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10323 * </pre> 10324 * 10684 10325 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10685 * 10326 */ 10327 public Builder addKeysVals(int value) { 10328 copyOnWrite(); 10329 instance.addKeysVals(value); 10330 return this; 10331 } 10332 /** 10686 10333 * <pre> 10687 10334 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10688 10335 * </pre> 10689 */ 10690 public Builder addKeysVals(int value) { 10691 ensureKeysValsIsMutable(); 10692 keysVals_.add(value); 10693 10694 return this; 10695 } 10696 /** 10336 * 10697 10337 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10698 *10699 * <pre>10700 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.10701 * </pre>10702 10338 */ 10703 10339 public Builder addAllKeysVals( 10704 10340 java.lang.Iterable<? extends java.lang.Integer> values) { 10705 ensureKeysValsIsMutable(); 10706 com.google.protobuf.AbstractMessageLite.Builder.addAll( 10707 values, keysVals_); 10708 10709 return this; 10710 } 10711 /** 10341 copyOnWrite(); 10342 instance.addAllKeysVals(values); 10343 return this; 10344 } 10345 /** 10346 * <pre> 10347 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless. 10348 * </pre> 10349 * 10712 10350 * <code>repeated int32 keys_vals = 10 [packed = true];</code> 10713 *10714 * <pre>10715 * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.10716 * </pre>10717 10351 */ 10718 10352 public Builder clearKeysVals() { 10719 keysVals_ = java.util.Collections.emptyList(); 10720 bitField0_ = (bitField0_ & ~0x00000010); 10721 10353 copyOnWrite(); 10354 instance.clearKeysVals(); 10722 10355 return this; 10723 10356 } … … 10725 10358 // @@protoc_insertion_point(builder_scope:OSMPBF.DenseNodes) 10726 10359 } 10727 10360 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 10361 protected final java.lang.Object dynamicMethod( 10362 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 10363 java.lang.Object arg0, java.lang.Object arg1) { 10364 switch (method) { 10365 case NEW_MUTABLE_INSTANCE: { 10366 return new crosby.binary.Osmformat.DenseNodes(); 10367 } 10368 case IS_INITIALIZED: { 10369 return DEFAULT_INSTANCE; 10370 } 10371 case MAKE_IMMUTABLE: { 10372 id_.makeImmutable(); 10373 lat_.makeImmutable(); 10374 lon_.makeImmutable(); 10375 keysVals_.makeImmutable(); 10376 return null; 10377 } 10378 case NEW_BUILDER: { 10379 return new Builder(); 10380 } 10381 case VISIT: { 10382 Visitor visitor = (Visitor) arg0; 10383 crosby.binary.Osmformat.DenseNodes other = (crosby.binary.Osmformat.DenseNodes) arg1; 10384 id_= visitor.visitLongList(id_, other.id_); 10385 denseinfo_ = visitor.visitMessage(denseinfo_, other.denseinfo_); 10386 lat_= visitor.visitLongList(lat_, other.lat_); 10387 lon_= visitor.visitLongList(lon_, other.lon_); 10388 keysVals_= visitor.visitIntList(keysVals_, other.keysVals_); 10389 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 10390 .INSTANCE) { 10391 bitField0_ |= other.bitField0_; 10392 } 10393 return this; 10394 } 10395 case MERGE_FROM_STREAM: { 10396 com.google.protobuf.CodedInputStream input = 10397 (com.google.protobuf.CodedInputStream) arg0; 10398 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 10399 (com.google.protobuf.ExtensionRegistryLite) arg1; 10400 try { 10401 boolean done = false; 10402 while (!done) { 10403 int tag = input.readTag(); 10404 switch (tag) { 10405 case 0: 10406 done = true; 10407 break; 10408 default: { 10409 if (!parseUnknownField(tag, input)) { 10410 done = true; 10411 } 10412 break; 10413 } 10414 case 8: { 10415 if (!id_.isModifiable()) { 10416 id_ = 10417 com.google.protobuf.GeneratedMessageLite.mutableCopy(id_); 10418 } 10419 id_.addLong(input.readSInt64()); 10420 break; 10421 } 10422 case 10: { 10423 int length = input.readRawVarint32(); 10424 int limit = input.pushLimit(length); 10425 if (!id_.isModifiable() && input.getBytesUntilLimit() > 0) { 10426 id_ = 10427 com.google.protobuf.GeneratedMessageLite.mutableCopy(id_); 10428 } 10429 while (input.getBytesUntilLimit() > 0) { 10430 id_.addLong(input.readSInt64()); 10431 } 10432 input.popLimit(limit); 10433 break; 10434 } 10435 case 42: { 10436 crosby.binary.Osmformat.DenseInfo.Builder subBuilder = null; 10437 if (((bitField0_ & 0x00000001) == 0x00000001)) { 10438 subBuilder = denseinfo_.toBuilder(); 10439 } 10440 denseinfo_ = input.readMessage(crosby.binary.Osmformat.DenseInfo.parser(), extensionRegistry); 10441 if (subBuilder != null) { 10442 subBuilder.mergeFrom(denseinfo_); 10443 denseinfo_ = subBuilder.buildPartial(); 10444 } 10445 bitField0_ |= 0x00000001; 10446 break; 10447 } 10448 case 64: { 10449 if (!lat_.isModifiable()) { 10450 lat_ = 10451 com.google.protobuf.GeneratedMessageLite.mutableCopy(lat_); 10452 } 10453 lat_.addLong(input.readSInt64()); 10454 break; 10455 } 10456 case 66: { 10457 int length = input.readRawVarint32(); 10458 int limit = input.pushLimit(length); 10459 if (!lat_.isModifiable() && input.getBytesUntilLimit() > 0) { 10460 lat_ = 10461 com.google.protobuf.GeneratedMessageLite.mutableCopy(lat_); 10462 } 10463 while (input.getBytesUntilLimit() > 0) { 10464 lat_.addLong(input.readSInt64()); 10465 } 10466 input.popLimit(limit); 10467 break; 10468 } 10469 case 72: { 10470 if (!lon_.isModifiable()) { 10471 lon_ = 10472 com.google.protobuf.GeneratedMessageLite.mutableCopy(lon_); 10473 } 10474 lon_.addLong(input.readSInt64()); 10475 break; 10476 } 10477 case 74: { 10478 int length = input.readRawVarint32(); 10479 int limit = input.pushLimit(length); 10480 if (!lon_.isModifiable() && input.getBytesUntilLimit() > 0) { 10481 lon_ = 10482 com.google.protobuf.GeneratedMessageLite.mutableCopy(lon_); 10483 } 10484 while (input.getBytesUntilLimit() > 0) { 10485 lon_.addLong(input.readSInt64()); 10486 } 10487 input.popLimit(limit); 10488 break; 10489 } 10490 case 80: { 10491 if (!keysVals_.isModifiable()) { 10492 keysVals_ = 10493 com.google.protobuf.GeneratedMessageLite.mutableCopy(keysVals_); 10494 } 10495 keysVals_.addInt(input.readInt32()); 10496 break; 10497 } 10498 case 82: { 10499 int length = input.readRawVarint32(); 10500 int limit = input.pushLimit(length); 10501 if (!keysVals_.isModifiable() && input.getBytesUntilLimit() > 0) { 10502 keysVals_ = 10503 com.google.protobuf.GeneratedMessageLite.mutableCopy(keysVals_); 10504 } 10505 while (input.getBytesUntilLimit() > 0) { 10506 keysVals_.addInt(input.readInt32()); 10507 } 10508 input.popLimit(limit); 10509 break; 10510 } 10511 } 10512 } 10513 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10514 throw new RuntimeException(e.setUnfinishedMessage(this)); 10515 } catch (java.io.IOException e) { 10516 throw new RuntimeException( 10517 new com.google.protobuf.InvalidProtocolBufferException( 10518 e.getMessage()).setUnfinishedMessage(this)); 10519 } finally { 10520 } 10521 } 10522 // fall through 10523 case GET_DEFAULT_INSTANCE: { 10524 return DEFAULT_INSTANCE; 10525 } 10526 case GET_PARSER: { 10527 if (PARSER == null) { synchronized (crosby.binary.Osmformat.DenseNodes.class) { 10528 if (PARSER == null) { 10529 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 10530 } 10531 } 10532 } 10533 return PARSER; 10534 } 10535 } 10536 throw new UnsupportedOperationException(); 10537 } 10538 10539 10540 // @@protoc_insertion_point(class_scope:OSMPBF.DenseNodes) 10541 private static final crosby.binary.Osmformat.DenseNodes DEFAULT_INSTANCE; 10728 10542 static { 10729 defaultInstance = new DenseNodes(true); 10730 defaultInstance.initFields(); 10731 } 10732 10733 // @@protoc_insertion_point(class_scope:OSMPBF.DenseNodes) 10543 DEFAULT_INSTANCE = new DenseNodes(); 10544 DEFAULT_INSTANCE.makeImmutable(); 10545 } 10546 10547 public static crosby.binary.Osmformat.DenseNodes getDefaultInstance() { 10548 return DEFAULT_INSTANCE; 10549 } 10550 10551 private static volatile com.google.protobuf.Parser<DenseNodes> PARSER; 10552 10553 public static com.google.protobuf.Parser<DenseNodes> parser() { 10554 return DEFAULT_INSTANCE.getParserForType(); 10555 } 10734 10556 } 10735 10557 … … 10748 10570 10749 10571 /** 10572 * <pre> 10573 * Parallel arrays. 10574 * </pre> 10575 * 10750 10576 * <code>repeated uint32 keys = 2 [packed = true];</code> 10751 * 10577 */ 10578 java.util.List<java.lang.Integer> getKeysList(); 10579 /** 10752 10580 * <pre> 10753 10581 * Parallel arrays. 10754 10582 * </pre> 10755 */ 10756 java.util.List<java.lang.Integer> getKeysList(); 10757 /** 10583 * 10758 10584 * <code>repeated uint32 keys = 2 [packed = true];</code> 10759 * 10585 */ 10586 int getKeysCount(); 10587 /** 10760 10588 * <pre> 10761 10589 * Parallel arrays. 10762 10590 * </pre> 10763 */ 10764 int getKeysCount(); 10765 /** 10591 * 10766 10592 * <code>repeated uint32 keys = 2 [packed = true];</code> 10767 *10768 * <pre>10769 * Parallel arrays.10770 * </pre>10771 10593 */ 10772 10594 int getKeys(int index); … … 10795 10617 10796 10618 /** 10619 * <pre> 10620 * DELTA coded 10621 * </pre> 10622 * 10797 10623 * <code>repeated sint64 refs = 8 [packed = true];</code> 10798 * 10624 */ 10625 java.util.List<java.lang.Long> getRefsList(); 10626 /** 10799 10627 * <pre> 10800 10628 * DELTA coded 10801 10629 * </pre> 10802 */ 10803 java.util.List<java.lang.Long> getRefsList(); 10804 /** 10630 * 10805 10631 * <code>repeated sint64 refs = 8 [packed = true];</code> 10806 * 10632 */ 10633 int getRefsCount(); 10634 /** 10807 10635 * <pre> 10808 10636 * DELTA coded 10809 10637 * </pre> 10810 */ 10811 int getRefsCount(); 10812 /** 10638 * 10813 10639 * <code>repeated sint64 refs = 8 [packed = true];</code> 10814 *10815 * <pre>10816 * DELTA coded10817 * </pre>10818 10640 */ 10819 10641 long getRefs(int index); … … 10822 10644 * Protobuf type {@code OSMPBF.Way} 10823 10645 */ 10824 public static final class Way extends 10825 com.google.protobuf.GeneratedMessageLite implements 10646 public static final class Way extends 10647 com.google.protobuf.GeneratedMessageLite< 10648 Way, Way.Builder> implements 10826 10649 // @@protoc_insertion_point(message_implements:OSMPBF.Way) 10827 10650 WayOrBuilder { 10828 // Use Way.newBuilder() to construct. 10829 private Way(com.google.protobuf.GeneratedMessageLite.Builder builder) { 10830 super(builder); 10831 this.unknownFields = builder.getUnknownFields(); 10832 } 10833 private Way(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 10834 10835 private static final Way defaultInstance; 10836 public static Way getDefaultInstance() { 10837 return defaultInstance; 10838 } 10839 10840 @Override 10841 public Way getDefaultInstanceForType() { 10842 return defaultInstance; 10843 } 10844 10845 private final com.google.protobuf.ByteString unknownFields; 10846 private Way( 10847 com.google.protobuf.CodedInputStream input, 10848 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10849 throws com.google.protobuf.InvalidProtocolBufferException { 10850 initFields(); 10851 int mutable_bitField0_ = 0; 10852 com.google.protobuf.ByteString.Output unknownFieldsOutput = 10853 com.google.protobuf.ByteString.newOutput(); 10854 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 10855 com.google.protobuf.CodedOutputStream.newInstance( 10856 unknownFieldsOutput); 10857 try { 10858 boolean done = false; 10859 while (!done) { 10860 int tag = input.readTag(); 10861 switch (tag) { 10862 case 0: 10863 done = true; 10864 break; 10865 default: { 10866 if (!parseUnknownField(input, unknownFieldsCodedOutput, 10867 extensionRegistry, tag)) { 10868 done = true; 10869 } 10870 break; 10871 } 10872 case 8: { 10873 bitField0_ |= 0x00000001; 10874 id_ = input.readInt64(); 10875 break; 10876 } 10877 case 16: { 10878 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 10879 keys_ = new java.util.ArrayList<>(); 10880 mutable_bitField0_ |= 0x00000002; 10881 } 10882 keys_.add(input.readUInt32()); 10883 break; 10884 } 10885 case 18: { 10886 int length = input.readRawVarint32(); 10887 int limit = input.pushLimit(length); 10888 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 10889 keys_ = new java.util.ArrayList<>(); 10890 mutable_bitField0_ |= 0x00000002; 10891 } 10892 while (input.getBytesUntilLimit() > 0) { 10893 keys_.add(input.readUInt32()); 10894 } 10895 input.popLimit(limit); 10896 break; 10897 } 10898 case 24: { 10899 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 10900 vals_ = new java.util.ArrayList<>(); 10901 mutable_bitField0_ |= 0x00000004; 10902 } 10903 vals_.add(input.readUInt32()); 10904 break; 10905 } 10906 case 26: { 10907 int length = input.readRawVarint32(); 10908 int limit = input.pushLimit(length); 10909 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 10910 vals_ = new java.util.ArrayList<>(); 10911 mutable_bitField0_ |= 0x00000004; 10912 } 10913 while (input.getBytesUntilLimit() > 0) { 10914 vals_.add(input.readUInt32()); 10915 } 10916 input.popLimit(limit); 10917 break; 10918 } 10919 case 34: { 10920 crosby.binary.Osmformat.Info.Builder subBuilder = null; 10921 if (((bitField0_ & 0x00000002) == 0x00000002)) { 10922 subBuilder = info_.toBuilder(); 10923 } 10924 info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry); 10925 if (subBuilder != null) { 10926 subBuilder.mergeFrom(info_); 10927 info_ = subBuilder.buildPartial(); 10928 } 10929 bitField0_ |= 0x00000002; 10930 break; 10931 } 10932 case 64: { 10933 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 10934 refs_ = new java.util.ArrayList<>(); 10935 mutable_bitField0_ |= 0x00000010; 10936 } 10937 refs_.add(input.readSInt64()); 10938 break; 10939 } 10940 case 66: { 10941 int length = input.readRawVarint32(); 10942 int limit = input.pushLimit(length); 10943 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 10944 refs_ = new java.util.ArrayList<>(); 10945 mutable_bitField0_ |= 0x00000010; 10946 } 10947 while (input.getBytesUntilLimit() > 0) { 10948 refs_.add(input.readSInt64()); 10949 } 10950 input.popLimit(limit); 10951 break; 10952 } 10953 } 10954 } 10955 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10956 throw e.setUnfinishedMessage(this); 10957 } catch (java.io.IOException e) { 10958 throw new com.google.protobuf.InvalidProtocolBufferException( 10959 e.getMessage()).setUnfinishedMessage(this); 10960 } finally { 10961 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 10962 keys_ = java.util.Collections.unmodifiableList(keys_); 10963 } 10964 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 10965 vals_ = java.util.Collections.unmodifiableList(vals_); 10966 } 10967 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 10968 refs_ = java.util.Collections.unmodifiableList(refs_); 10969 } 10970 try { 10971 unknownFieldsCodedOutput.flush(); 10972 } catch (java.io.IOException e) { 10973 // Should not happen 10974 } finally { 10975 unknownFields = unknownFieldsOutput.toByteString(); 10976 } 10977 makeExtensionsImmutable(); 10978 } 10979 } 10980 public static com.google.protobuf.Parser<Way> PARSER = 10981 new com.google.protobuf.AbstractParser<Way>() { 10982 @Override 10983 public Way parsePartialFrom( 10984 com.google.protobuf.CodedInputStream input, 10985 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10986 throws com.google.protobuf.InvalidProtocolBufferException { 10987 return new Way(input, extensionRegistry); 10988 } 10989 }; 10990 10991 @java.lang.Override 10992 public com.google.protobuf.Parser<Way> getParserForType() { 10993 return PARSER; 10994 } 10995 10651 private Way() { 10652 keys_ = emptyIntList(); 10653 vals_ = emptyIntList(); 10654 refs_ = emptyLongList(); 10655 } 10996 10656 private int bitField0_; 10997 10657 public static final int ID_FIELD_NUMBER = 1; … … 11000 10660 * <code>required int64 id = 1;</code> 11001 10661 */ 11002 @Override 11003 public boolean hasId() { 10662 public boolean hasId() { 11004 10663 return ((bitField0_ & 0x00000001) == 0x00000001); 11005 10664 } … … 11007 10666 * <code>required int64 id = 1;</code> 11008 10667 */ 11009 @Override 11010 public long getId() { 10668 public long getId() { 11011 10669 return id_; 11012 10670 } 10671 /** 10672 * <code>required int64 id = 1;</code> 10673 */ 10674 private void setId(long value) { 10675 bitField0_ |= 0x00000001; 10676 id_ = value; 10677 } 10678 /** 10679 * <code>required int64 id = 1;</code> 10680 */ 10681 private void clearId() { 10682 bitField0_ = (bitField0_ & ~0x00000001); 10683 id_ = 0L; 10684 } 11013 10685 11014 10686 public static final int KEYS_FIELD_NUMBER = 2; 11015 private java.util.List<java.lang.Integer> keys_; 11016 /** 10687 private com.google.protobuf.Internal.IntList keys_; 10688 /** 10689 * <pre> 10690 * Parallel arrays. 10691 * </pre> 10692 * 11017 10693 * <code>repeated uint32 keys = 2 [packed = true];</code> 11018 * 11019 * <pre> 11020 * Parallel arrays. 11021 * </pre> 11022 */ 11023 @Override 11024 public java.util.List<java.lang.Integer> 10694 */ 10695 public java.util.List<java.lang.Integer> 11025 10696 getKeysList() { 11026 10697 return keys_; 11027 10698 } 11028 10699 /** 10700 * <pre> 10701 * Parallel arrays. 10702 * </pre> 10703 * 11029 10704 * <code>repeated uint32 keys = 2 [packed = true];</code> 11030 * 10705 */ 10706 public int getKeysCount() { 10707 return keys_.size(); 10708 } 10709 /** 11031 10710 * <pre> 11032 10711 * Parallel arrays. 11033 10712 * </pre> 11034 */ 11035 @Override 11036 public int getKeysCount() { 11037 return keys_.size(); 11038 } 11039 /** 10713 * 11040 10714 * <code>repeated uint32 keys = 2 [packed = true];</code> 11041 * 10715 */ 10716 public int getKeys(int index) { 10717 return keys_.getInt(index); 10718 } 10719 private int keysMemoizedSerializedSize = -1; 10720 private void ensureKeysIsMutable() { 10721 if (!keys_.isModifiable()) { 10722 keys_ = 10723 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 10724 } 10725 } 10726 /** 11042 10727 * <pre> 11043 10728 * Parallel arrays. 11044 10729 * </pre> 11045 */ 11046 @Override 11047 public int getKeys(int index) { 11048 return keys_.get(index); 11049 } 11050 private int keysMemoizedSerializedSize = -1; 10730 * 10731 * <code>repeated uint32 keys = 2 [packed = true];</code> 10732 */ 10733 private void setKeys( 10734 int index, int value) { 10735 ensureKeysIsMutable(); 10736 keys_.setInt(index, value); 10737 } 10738 /** 10739 * <pre> 10740 * Parallel arrays. 10741 * </pre> 10742 * 10743 * <code>repeated uint32 keys = 2 [packed = true];</code> 10744 */ 10745 private void addKeys(int value) { 10746 ensureKeysIsMutable(); 10747 keys_.addInt(value); 10748 } 10749 /** 10750 * <pre> 10751 * Parallel arrays. 10752 * </pre> 10753 * 10754 * <code>repeated uint32 keys = 2 [packed = true];</code> 10755 */ 10756 private void addAllKeys( 10757 java.lang.Iterable<? extends java.lang.Integer> values) { 10758 ensureKeysIsMutable(); 10759 com.google.protobuf.AbstractMessageLite.addAll( 10760 values, keys_); 10761 } 10762 /** 10763 * <pre> 10764 * Parallel arrays. 10765 * </pre> 10766 * 10767 * <code>repeated uint32 keys = 2 [packed = true];</code> 10768 */ 10769 private void clearKeys() { 10770 keys_ = emptyIntList(); 10771 } 11051 10772 11052 10773 public static final int VALS_FIELD_NUMBER = 3; 11053 private java.util.List<java.lang.Integer>vals_;10774 private com.google.protobuf.Internal.IntList vals_; 11054 10775 /** 11055 10776 * <code>repeated uint32 vals = 3 [packed = true];</code> 11056 10777 */ 11057 @Override 11058 public java.util.List<java.lang.Integer> 10778 public java.util.List<java.lang.Integer> 11059 10779 getValsList() { 11060 10780 return vals_; … … 11063 10783 * <code>repeated uint32 vals = 3 [packed = true];</code> 11064 10784 */ 11065 @Override 11066 public int getValsCount() { 10785 public int getValsCount() { 11067 10786 return vals_.size(); 11068 10787 } … … 11070 10789 * <code>repeated uint32 vals = 3 [packed = true];</code> 11071 10790 */ 11072 @Override 11073 public int getVals(int index) { 11074 return vals_.get(index); 10791 public int getVals(int index) { 10792 return vals_.getInt(index); 11075 10793 } 11076 10794 private int valsMemoizedSerializedSize = -1; 10795 private void ensureValsIsMutable() { 10796 if (!vals_.isModifiable()) { 10797 vals_ = 10798 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 10799 } 10800 } 10801 /** 10802 * <code>repeated uint32 vals = 3 [packed = true];</code> 10803 */ 10804 private void setVals( 10805 int index, int value) { 10806 ensureValsIsMutable(); 10807 vals_.setInt(index, value); 10808 } 10809 /** 10810 * <code>repeated uint32 vals = 3 [packed = true];</code> 10811 */ 10812 private void addVals(int value) { 10813 ensureValsIsMutable(); 10814 vals_.addInt(value); 10815 } 10816 /** 10817 * <code>repeated uint32 vals = 3 [packed = true];</code> 10818 */ 10819 private void addAllVals( 10820 java.lang.Iterable<? extends java.lang.Integer> values) { 10821 ensureValsIsMutable(); 10822 com.google.protobuf.AbstractMessageLite.addAll( 10823 values, vals_); 10824 } 10825 /** 10826 * <code>repeated uint32 vals = 3 [packed = true];</code> 10827 */ 10828 private void clearVals() { 10829 vals_ = emptyIntList(); 10830 } 11077 10831 11078 10832 public static final int INFO_FIELD_NUMBER = 4; … … 11081 10835 * <code>optional .OSMPBF.Info info = 4;</code> 11082 10836 */ 11083 @Override 11084 public boolean hasInfo() { 10837 public boolean hasInfo() { 11085 10838 return ((bitField0_ & 0x00000002) == 0x00000002); 11086 10839 } … … 11088 10841 * <code>optional .OSMPBF.Info info = 4;</code> 11089 10842 */ 11090 @Override 11091 public crosby.binary.Osmformat.Info getInfo() { 11092 return info_; 10843 public crosby.binary.Osmformat.Info getInfo() { 10844 return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_; 10845 } 10846 /** 10847 * <code>optional .OSMPBF.Info info = 4;</code> 10848 */ 10849 private void setInfo(crosby.binary.Osmformat.Info value) { 10850 if (value == null) { 10851 throw new NullPointerException(); 10852 } 10853 info_ = value; 10854 bitField0_ |= 0x00000002; 10855 } 10856 /** 10857 * <code>optional .OSMPBF.Info info = 4;</code> 10858 */ 10859 private void setInfo( 10860 crosby.binary.Osmformat.Info.Builder builderForValue) { 10861 info_ = builderForValue.build(); 10862 bitField0_ |= 0x00000002; 10863 } 10864 /** 10865 * <code>optional .OSMPBF.Info info = 4;</code> 10866 */ 10867 private void mergeInfo(crosby.binary.Osmformat.Info value) { 10868 if (info_ != null && 10869 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 10870 info_ = 10871 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 10872 } else { 10873 info_ = value; 10874 } 10875 bitField0_ |= 0x00000002; 10876 } 10877 /** 10878 * <code>optional .OSMPBF.Info info = 4;</code> 10879 */ 10880 private void clearInfo() { info_ = null; 10881 bitField0_ = (bitField0_ & ~0x00000002); 11093 10882 } 11094 10883 11095 10884 public static final int REFS_FIELD_NUMBER = 8; 11096 private java.util.List<java.lang.Long> refs_; 11097 /** 10885 private com.google.protobuf.Internal.LongList refs_; 10886 /** 10887 * <pre> 10888 * DELTA coded 10889 * </pre> 10890 * 11098 10891 * <code>repeated sint64 refs = 8 [packed = true];</code> 11099 * 11100 * <pre> 11101 * DELTA coded 11102 * </pre> 11103 */ 11104 @Override 11105 public java.util.List<java.lang.Long> 10892 */ 10893 public java.util.List<java.lang.Long> 11106 10894 getRefsList() { 11107 10895 return refs_; 11108 10896 } 11109 10897 /** 10898 * <pre> 10899 * DELTA coded 10900 * </pre> 10901 * 11110 10902 * <code>repeated sint64 refs = 8 [packed = true];</code> 11111 * 10903 */ 10904 public int getRefsCount() { 10905 return refs_.size(); 10906 } 10907 /** 11112 10908 * <pre> 11113 10909 * DELTA coded 11114 10910 * </pre> 11115 */ 11116 @Override 11117 public int getRefsCount() { 11118 return refs_.size(); 11119 } 11120 /** 10911 * 11121 10912 * <code>repeated sint64 refs = 8 [packed = true];</code> 11122 * 10913 */ 10914 public long getRefs(int index) { 10915 return refs_.getLong(index); 10916 } 10917 private int refsMemoizedSerializedSize = -1; 10918 private void ensureRefsIsMutable() { 10919 if (!refs_.isModifiable()) { 10920 refs_ = 10921 com.google.protobuf.GeneratedMessageLite.mutableCopy(refs_); 10922 } 10923 } 10924 /** 11123 10925 * <pre> 11124 10926 * DELTA coded 11125 10927 * </pre> 11126 */ 11127 @Override 11128 public long getRefs(int index) { 11129 return refs_.get(index); 11130 } 11131 private int refsMemoizedSerializedSize = -1; 11132 11133 private void initFields() { 11134 id_ = 0L; 11135 keys_ = java.util.Collections.emptyList(); 11136 vals_ = java.util.Collections.emptyList(); 11137 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11138 refs_ = java.util.Collections.emptyList(); 11139 } 11140 private byte memoizedIsInitialized = -1; 11141 @Override 11142 public final boolean isInitialized() { 11143 byte isInitialized = memoizedIsInitialized; 11144 if (isInitialized == 1) return true; 11145 if (isInitialized == 0) return false; 11146 11147 if (!hasId()) { 11148 memoizedIsInitialized = 0; 11149 return false; 11150 } 11151 memoizedIsInitialized = 1; 11152 return true; 11153 } 11154 11155 @Override 11156 public void writeTo(com.google.protobuf.CodedOutputStream output) 10928 * 10929 * <code>repeated sint64 refs = 8 [packed = true];</code> 10930 */ 10931 private void setRefs( 10932 int index, long value) { 10933 ensureRefsIsMutable(); 10934 refs_.setLong(index, value); 10935 } 10936 /** 10937 * <pre> 10938 * DELTA coded 10939 * </pre> 10940 * 10941 * <code>repeated sint64 refs = 8 [packed = true];</code> 10942 */ 10943 private void addRefs(long value) { 10944 ensureRefsIsMutable(); 10945 refs_.addLong(value); 10946 } 10947 /** 10948 * <pre> 10949 * DELTA coded 10950 * </pre> 10951 * 10952 * <code>repeated sint64 refs = 8 [packed = true];</code> 10953 */ 10954 private void addAllRefs( 10955 java.lang.Iterable<? extends java.lang.Long> values) { 10956 ensureRefsIsMutable(); 10957 com.google.protobuf.AbstractMessageLite.addAll( 10958 values, refs_); 10959 } 10960 /** 10961 * <pre> 10962 * DELTA coded 10963 * </pre> 10964 * 10965 * <code>repeated sint64 refs = 8 [packed = true];</code> 10966 */ 10967 private void clearRefs() { 10968 refs_ = emptyLongList(); 10969 } 10970 10971 public void writeTo(com.google.protobuf.CodedOutputStream output) 11157 10972 throws java.io.IOException { 11158 10973 getSerializedSize(); … … 11161 10976 } 11162 10977 if (getKeysList().size() > 0) { 11163 output.write RawVarint32(18);11164 output.write RawVarint32(keysMemoizedSerializedSize);10978 output.writeUInt32NoTag(18); 10979 output.writeUInt32NoTag(keysMemoizedSerializedSize); 11165 10980 } 11166 10981 for (int i = 0; i < keys_.size(); i++) { 11167 output.writeUInt32NoTag(keys_.get (i));10982 output.writeUInt32NoTag(keys_.getInt(i)); 11168 10983 } 11169 10984 if (getValsList().size() > 0) { 11170 output.write RawVarint32(26);11171 output.write RawVarint32(valsMemoizedSerializedSize);10985 output.writeUInt32NoTag(26); 10986 output.writeUInt32NoTag(valsMemoizedSerializedSize); 11172 10987 } 11173 10988 for (int i = 0; i < vals_.size(); i++) { 11174 output.writeUInt32NoTag(vals_.get (i));10989 output.writeUInt32NoTag(vals_.getInt(i)); 11175 10990 } 11176 10991 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11177 output.writeMessage(4, info_);10992 output.writeMessage(4, getInfo()); 11178 10993 } 11179 10994 if (getRefsList().size() > 0) { 11180 output.write RawVarint32(66);11181 output.write RawVarint32(refsMemoizedSerializedSize);10995 output.writeUInt32NoTag(66); 10996 output.writeUInt32NoTag(refsMemoizedSerializedSize); 11182 10997 } 11183 10998 for (int i = 0; i < refs_.size(); i++) { 11184 output.writeSInt64NoTag(refs_.get(i)); 11185 } 11186 output.writeRawBytes(unknownFields); 11187 } 11188 11189 private int memoizedSerializedSize = -1; 11190 @Override 11191 public int getSerializedSize() { 10999 output.writeSInt64NoTag(refs_.getLong(i)); 11000 } 11001 unknownFields.writeTo(output); 11002 } 11003 11004 public int getSerializedSize() { 11192 11005 int size = memoizedSerializedSize; 11193 11006 if (size != -1) return size; … … 11202 11015 for (int i = 0; i < keys_.size(); i++) { 11203 11016 dataSize += com.google.protobuf.CodedOutputStream 11204 .computeUInt32SizeNoTag(keys_.get (i));11017 .computeUInt32SizeNoTag(keys_.getInt(i)); 11205 11018 } 11206 11019 size += dataSize; … … 11216 11029 for (int i = 0; i < vals_.size(); i++) { 11217 11030 dataSize += com.google.protobuf.CodedOutputStream 11218 .computeUInt32SizeNoTag(vals_.get (i));11031 .computeUInt32SizeNoTag(vals_.getInt(i)); 11219 11032 } 11220 11033 size += dataSize; … … 11228 11041 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11229 11042 size += com.google.protobuf.CodedOutputStream 11230 .computeMessageSize(4, info_);11043 .computeMessageSize(4, getInfo()); 11231 11044 } 11232 11045 { … … 11234 11047 for (int i = 0; i < refs_.size(); i++) { 11235 11048 dataSize += com.google.protobuf.CodedOutputStream 11236 .computeSInt64SizeNoTag(refs_.get (i));11049 .computeSInt64SizeNoTag(refs_.getLong(i)); 11237 11050 } 11238 11051 size += dataSize; … … 11244 11057 refsMemoizedSerializedSize = dataSize; 11245 11058 } 11246 size += unknownFields. size();11059 size += unknownFields.getSerializedSize(); 11247 11060 memoizedSerializedSize = size; 11248 11061 return size; 11249 11062 } 11250 11063 11251 private static final long serialVersionUID = 0L; 11252 @java.lang.Override 11253 protected java.lang.Object writeReplace() 11254 throws java.io.ObjectStreamException { 11255 return super.writeReplace(); 11256 } 11257 11064 public static crosby.binary.Osmformat.Way parseFrom( 11065 java.nio.ByteBuffer data) 11066 throws com.google.protobuf.InvalidProtocolBufferException { 11067 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11068 DEFAULT_INSTANCE, data); 11069 } 11070 public static crosby.binary.Osmformat.Way parseFrom( 11071 java.nio.ByteBuffer data, 11072 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11073 throws com.google.protobuf.InvalidProtocolBufferException { 11074 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11075 DEFAULT_INSTANCE, data, extensionRegistry); 11076 } 11258 11077 public static crosby.binary.Osmformat.Way parseFrom( 11259 11078 com.google.protobuf.ByteString data) 11260 11079 throws com.google.protobuf.InvalidProtocolBufferException { 11261 return PARSER.parseFrom(data); 11080 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11081 DEFAULT_INSTANCE, data); 11262 11082 } 11263 11083 public static crosby.binary.Osmformat.Way parseFrom( … … 11265 11085 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11266 11086 throws com.google.protobuf.InvalidProtocolBufferException { 11267 return PARSER.parseFrom(data, extensionRegistry); 11087 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11088 DEFAULT_INSTANCE, data, extensionRegistry); 11268 11089 } 11269 11090 public static crosby.binary.Osmformat.Way parseFrom(byte[] data) 11270 11091 throws com.google.protobuf.InvalidProtocolBufferException { 11271 return PARSER.parseFrom(data); 11092 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11093 DEFAULT_INSTANCE, data); 11272 11094 } 11273 11095 public static crosby.binary.Osmformat.Way parseFrom( … … 11275 11097 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11276 11098 throws com.google.protobuf.InvalidProtocolBufferException { 11277 return PARSER.parseFrom(data, extensionRegistry); 11099 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11100 DEFAULT_INSTANCE, data, extensionRegistry); 11278 11101 } 11279 11102 public static crosby.binary.Osmformat.Way parseFrom(java.io.InputStream input) 11280 11103 throws java.io.IOException { 11281 return PARSER.parseFrom(input); 11104 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11105 DEFAULT_INSTANCE, input); 11282 11106 } 11283 11107 public static crosby.binary.Osmformat.Way parseFrom( … … 11285 11109 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11286 11110 throws java.io.IOException { 11287 return PARSER.parseFrom(input, extensionRegistry); 11111 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11112 DEFAULT_INSTANCE, input, extensionRegistry); 11288 11113 } 11289 11114 public static crosby.binary.Osmformat.Way parseDelimitedFrom(java.io.InputStream input) 11290 11115 throws java.io.IOException { 11291 return PARSER.parseDelimitedFrom(input);11116 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 11292 11117 } 11293 11118 public static crosby.binary.Osmformat.Way parseDelimitedFrom( … … 11295 11120 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11296 11121 throws java.io.IOException { 11297 return PARSER.parseDelimitedFrom(input, extensionRegistry);11122 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 11298 11123 } 11299 11124 public static crosby.binary.Osmformat.Way parseFrom( 11300 11125 com.google.protobuf.CodedInputStream input) 11301 11126 throws java.io.IOException { 11302 return PARSER.parseFrom(input); 11127 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11128 DEFAULT_INSTANCE, input); 11303 11129 } 11304 11130 public static crosby.binary.Osmformat.Way parseFrom( … … 11306 11132 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11307 11133 throws java.io.IOException { 11308 return PARSER.parseFrom(input, extensionRegistry); 11309 } 11310 11311 public static Builder newBuilder() { return Builder.create(); } 11312 @Override 11313 public Builder newBuilderForType() { return newBuilder(); } 11134 return com.google.protobuf.GeneratedMessageLite.parseFrom( 11135 DEFAULT_INSTANCE, input, extensionRegistry); 11136 } 11137 11138 public static Builder newBuilder() { 11139 return DEFAULT_INSTANCE.toBuilder(); 11140 } 11314 11141 public static Builder newBuilder(crosby.binary.Osmformat.Way prototype) { 11315 return newBuilder().mergeFrom(prototype); 11316 } 11317 @Override 11318 public Builder toBuilder() { return newBuilder(this); } 11142 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 11143 } 11319 11144 11320 11145 /** … … 11323 11148 public static final class Builder extends 11324 11149 com.google.protobuf.GeneratedMessageLite.Builder< 11325 crosby.binary.Osmformat.Way, Builder> 11326 implements 11150 crosby.binary.Osmformat.Way, Builder> implements 11327 11151 // @@protoc_insertion_point(builder_implements:OSMPBF.Way) 11328 11152 crosby.binary.Osmformat.WayOrBuilder { 11329 11153 // Construct using crosby.binary.Osmformat.Way.newBuilder() 11330 11154 private Builder() { 11331 maybeForceBuilderInitialization(); 11332 } 11333 11334 private void maybeForceBuilderInitialization() { 11335 } 11336 private static Builder create() { 11337 return new Builder(); 11338 } 11339 11340 @Override 11341 public Builder clear() { 11342 super.clear(); 11343 id_ = 0L; 11344 bitField0_ = (bitField0_ & ~0x00000001); 11345 keys_ = java.util.Collections.emptyList(); 11346 bitField0_ = (bitField0_ & ~0x00000002); 11347 vals_ = java.util.Collections.emptyList(); 11348 bitField0_ = (bitField0_ & ~0x00000004); 11349 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11350 bitField0_ = (bitField0_ & ~0x00000008); 11351 refs_ = java.util.Collections.emptyList(); 11352 bitField0_ = (bitField0_ & ~0x00000010); 11353 return this; 11354 } 11355 11356 @Override 11357 public Builder clone() { 11358 return create().mergeFrom(buildPartial()); 11359 } 11360 11361 @Override 11362 public crosby.binary.Osmformat.Way getDefaultInstanceForType() { 11363 return crosby.binary.Osmformat.Way.getDefaultInstance(); 11364 } 11365 11366 @Override 11367 public crosby.binary.Osmformat.Way build() { 11368 crosby.binary.Osmformat.Way result = buildPartial(); 11369 if (!result.isInitialized()) { 11370 throw newUninitializedMessageException(result); 11371 } 11372 return result; 11373 } 11374 11375 @Override 11376 public crosby.binary.Osmformat.Way buildPartial() { 11377 crosby.binary.Osmformat.Way result = new crosby.binary.Osmformat.Way(this); 11378 int from_bitField0_ = bitField0_; 11379 int to_bitField0_ = 0; 11380 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 11381 to_bitField0_ |= 0x00000001; 11382 } 11383 result.id_ = id_; 11384 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11385 keys_ = java.util.Collections.unmodifiableList(keys_); 11386 bitField0_ = (bitField0_ & ~0x00000002); 11387 } 11388 result.keys_ = keys_; 11389 if (((bitField0_ & 0x00000004) == 0x00000004)) { 11390 vals_ = java.util.Collections.unmodifiableList(vals_); 11391 bitField0_ = (bitField0_ & ~0x00000004); 11392 } 11393 result.vals_ = vals_; 11394 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 11395 to_bitField0_ |= 0x00000002; 11396 } 11397 result.info_ = info_; 11398 if (((bitField0_ & 0x00000010) == 0x00000010)) { 11399 refs_ = java.util.Collections.unmodifiableList(refs_); 11400 bitField0_ = (bitField0_ & ~0x00000010); 11401 } 11402 result.refs_ = refs_; 11403 result.bitField0_ = to_bitField0_; 11404 return result; 11405 } 11406 11407 @Override 11408 public Builder mergeFrom(crosby.binary.Osmformat.Way other) { 11409 if (other == crosby.binary.Osmformat.Way.getDefaultInstance()) return this; 11410 if (other.hasId()) { 11411 setId(other.getId()); 11412 } 11413 if (!other.keys_.isEmpty()) { 11414 if (keys_.isEmpty()) { 11415 keys_ = other.keys_; 11416 bitField0_ = (bitField0_ & ~0x00000002); 11417 } else { 11418 ensureKeysIsMutable(); 11419 keys_.addAll(other.keys_); 11420 } 11421 11422 } 11423 if (!other.vals_.isEmpty()) { 11424 if (vals_.isEmpty()) { 11425 vals_ = other.vals_; 11426 bitField0_ = (bitField0_ & ~0x00000004); 11427 } else { 11428 ensureValsIsMutable(); 11429 vals_.addAll(other.vals_); 11430 } 11431 11432 } 11433 if (other.hasInfo()) { 11434 mergeInfo(other.getInfo()); 11435 } 11436 if (!other.refs_.isEmpty()) { 11437 if (refs_.isEmpty()) { 11438 refs_ = other.refs_; 11439 bitField0_ = (bitField0_ & ~0x00000010); 11440 } else { 11441 ensureRefsIsMutable(); 11442 refs_.addAll(other.refs_); 11443 } 11444 11445 } 11446 setUnknownFields( 11447 getUnknownFields().concat(other.unknownFields)); 11448 return this; 11449 } 11450 11451 @Override 11452 public final boolean isInitialized() { 11453 if (!hasId()) { 11454 11455 return false; 11456 } 11457 return true; 11458 } 11459 11460 @Override 11461 public Builder mergeFrom( 11462 com.google.protobuf.CodedInputStream input, 11463 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 11464 throws java.io.IOException { 11465 crosby.binary.Osmformat.Way parsedMessage = null; 11466 try { 11467 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 11468 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 11469 parsedMessage = (crosby.binary.Osmformat.Way) e.getUnfinishedMessage(); 11470 throw e; 11471 } finally { 11472 if (parsedMessage != null) { 11473 mergeFrom(parsedMessage); 11474 } 11475 } 11476 return this; 11477 } 11478 private int bitField0_; 11479 11480 private long id_ ; 11155 super(DEFAULT_INSTANCE); 11156 } 11157 11158 11481 11159 /** 11482 11160 * <code>required int64 id = 1;</code> 11483 11161 */ 11484 @Override 11485 public boolean hasId() { 11486 return ((bitField0_ & 0x00000001) == 0x00000001); 11162 public boolean hasId() { 11163 return instance.hasId(); 11487 11164 } 11488 11165 /** 11489 11166 * <code>required int64 id = 1;</code> 11490 11167 */ 11491 @Override 11492 public long getId() { 11493 return id_; 11168 public long getId() { 11169 return instance.getId(); 11494 11170 } 11495 11171 /** … … 11497 11173 */ 11498 11174 public Builder setId(long value) { 11499 bitField0_ |= 0x00000001; 11500 id_ = value; 11501 11175 copyOnWrite(); 11176 instance.setId(value); 11502 11177 return this; 11503 11178 } … … 11506 11181 */ 11507 11182 public Builder clearId() { 11508 bitField0_ = (bitField0_ & ~0x00000001); 11509 id_ = 0L; 11510 11511 return this; 11512 } 11513 11514 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 11515 private void ensureKeysIsMutable() { 11516 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 11517 keys_ = new java.util.ArrayList<>(keys_); 11518 bitField0_ |= 0x00000002; 11519 } 11520 } 11521 /** 11183 copyOnWrite(); 11184 instance.clearId(); 11185 return this; 11186 } 11187 11188 /** 11189 * <pre> 11190 * Parallel arrays. 11191 * </pre> 11192 * 11522 11193 * <code>repeated uint32 keys = 2 [packed = true];</code> 11523 * 11194 */ 11195 public java.util.List<java.lang.Integer> 11196 getKeysList() { 11197 return java.util.Collections.unmodifiableList( 11198 instance.getKeysList()); 11199 } 11200 /** 11524 11201 * <pre> 11525 11202 * Parallel arrays. 11526 11203 * </pre> 11527 */ 11528 @Override 11529 public java.util.List<java.lang.Integer> 11530 getKeysList() { 11531 return java.util.Collections.unmodifiableList(keys_); 11532 } 11533 /** 11204 * 11534 11205 * <code>repeated uint32 keys = 2 [packed = true];</code> 11535 * 11206 */ 11207 public int getKeysCount() { 11208 return instance.getKeysCount(); 11209 } 11210 /** 11536 11211 * <pre> 11537 11212 * Parallel arrays. 11538 11213 * </pre> 11539 */ 11540 @Override 11541 public int getKeysCount() { 11542 return keys_.size(); 11543 } 11544 /** 11214 * 11545 11215 * <code>repeated uint32 keys = 2 [packed = true];</code> 11546 * 11216 */ 11217 public int getKeys(int index) { 11218 return instance.getKeys(index); 11219 } 11220 /** 11547 11221 * <pre> 11548 11222 * Parallel arrays. 11549 11223 * </pre> 11550 */ 11551 @Override 11552 public int getKeys(int index) { 11553 return keys_.get(index); 11554 } 11555 /** 11224 * 11556 11225 * <code>repeated uint32 keys = 2 [packed = true];</code> 11557 *11558 * <pre>11559 * Parallel arrays.11560 * </pre>11561 11226 */ 11562 11227 public Builder setKeys( 11563 11228 int index, int value) { 11564 ensureKeysIsMutable(); 11565 keys_.set(index, value); 11566 11567 return this; 11568 } 11569 /** 11229 copyOnWrite(); 11230 instance.setKeys(index, value); 11231 return this; 11232 } 11233 /** 11234 * <pre> 11235 * Parallel arrays. 11236 * </pre> 11237 * 11570 11238 * <code>repeated uint32 keys = 2 [packed = true];</code> 11571 * 11239 */ 11240 public Builder addKeys(int value) { 11241 copyOnWrite(); 11242 instance.addKeys(value); 11243 return this; 11244 } 11245 /** 11572 11246 * <pre> 11573 11247 * Parallel arrays. 11574 11248 * </pre> 11575 */ 11576 public Builder addKeys(int value) { 11577 ensureKeysIsMutable(); 11578 keys_.add(value); 11579 11580 return this; 11581 } 11582 /** 11249 * 11583 11250 * <code>repeated uint32 keys = 2 [packed = true];</code> 11584 *11585 * <pre>11586 * Parallel arrays.11587 * </pre>11588 11251 */ 11589 11252 public Builder addAllKeys( 11590 11253 java.lang.Iterable<? extends java.lang.Integer> values) { 11591 ensureKeysIsMutable(); 11592 com.google.protobuf.AbstractMessageLite.Builder.addAll( 11593 values, keys_); 11594 11595 return this; 11596 } 11597 /** 11254 copyOnWrite(); 11255 instance.addAllKeys(values); 11256 return this; 11257 } 11258 /** 11259 * <pre> 11260 * Parallel arrays. 11261 * </pre> 11262 * 11598 11263 * <code>repeated uint32 keys = 2 [packed = true];</code> 11599 *11600 * <pre>11601 * Parallel arrays.11602 * </pre>11603 11264 */ 11604 11265 public Builder clearKeys() { 11605 keys_ = java.util.Collections.emptyList(); 11606 bitField0_ = (bitField0_ & ~0x00000002); 11607 11608 return this; 11609 } 11610 11611 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 11612 private void ensureValsIsMutable() { 11613 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 11614 vals_ = new java.util.ArrayList<>(vals_); 11615 bitField0_ |= 0x00000004; 11616 } 11617 } 11266 copyOnWrite(); 11267 instance.clearKeys(); 11268 return this; 11269 } 11270 11618 11271 /** 11619 11272 * <code>repeated uint32 vals = 3 [packed = true];</code> 11620 11273 */ 11621 @Override 11622 public java.util.List<java.lang.Integer> 11274 public java.util.List<java.lang.Integer> 11623 11275 getValsList() { 11624 return java.util.Collections.unmodifiableList(vals_); 11276 return java.util.Collections.unmodifiableList( 11277 instance.getValsList()); 11625 11278 } 11626 11279 /** 11627 11280 * <code>repeated uint32 vals = 3 [packed = true];</code> 11628 11281 */ 11629 @Override 11630 public int getValsCount() { 11631 return vals_.size(); 11282 public int getValsCount() { 11283 return instance.getValsCount(); 11632 11284 } 11633 11285 /** 11634 11286 * <code>repeated uint32 vals = 3 [packed = true];</code> 11635 11287 */ 11636 @Override 11637 public int getVals(int index) { 11638 return vals_.get(index); 11288 public int getVals(int index) { 11289 return instance.getVals(index); 11639 11290 } 11640 11291 /** … … 11643 11294 public Builder setVals( 11644 11295 int index, int value) { 11645 ensureValsIsMutable(); 11646 vals_.set(index, value); 11647 11296 copyOnWrite(); 11297 instance.setVals(index, value); 11648 11298 return this; 11649 11299 } … … 11652 11302 */ 11653 11303 public Builder addVals(int value) { 11654 ensureValsIsMutable(); 11655 vals_.add(value); 11656 11304 copyOnWrite(); 11305 instance.addVals(value); 11657 11306 return this; 11658 11307 } … … 11662 11311 public Builder addAllVals( 11663 11312 java.lang.Iterable<? extends java.lang.Integer> values) { 11664 ensureValsIsMutable(); 11665 com.google.protobuf.AbstractMessageLite.Builder.addAll( 11666 values, vals_); 11667 11313 copyOnWrite(); 11314 instance.addAllVals(values); 11668 11315 return this; 11669 11316 } … … 11672 11319 */ 11673 11320 public Builder clearVals() { 11674 vals_ = java.util.Collections.emptyList(); 11675 bitField0_ = (bitField0_ & ~0x00000004); 11676 11677 return this; 11678 } 11679 11680 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11321 copyOnWrite(); 11322 instance.clearVals(); 11323 return this; 11324 } 11325 11681 11326 /** 11682 11327 * <code>optional .OSMPBF.Info info = 4;</code> 11683 11328 */ 11684 @Override 11685 public boolean hasInfo() { 11686 return ((bitField0_ & 0x00000008) == 0x00000008); 11329 public boolean hasInfo() { 11330 return instance.hasInfo(); 11687 11331 } 11688 11332 /** 11689 11333 * <code>optional .OSMPBF.Info info = 4;</code> 11690 11334 */ 11691 @Override 11692 public crosby.binary.Osmformat.Info getInfo() { 11693 return info_; 11335 public crosby.binary.Osmformat.Info getInfo() { 11336 return instance.getInfo(); 11694 11337 } 11695 11338 /** … … 11697 11340 */ 11698 11341 public Builder setInfo(crosby.binary.Osmformat.Info value) { 11699 if (value == null) { 11700 throw new NullPointerException(); 11701 } 11702 info_ = value; 11703 11704 bitField0_ |= 0x00000008; 11705 return this; 11706 } 11342 copyOnWrite(); 11343 instance.setInfo(value); 11344 return this; 11345 } 11707 11346 /** 11708 11347 * <code>optional .OSMPBF.Info info = 4;</code> … … 11710 11349 public Builder setInfo( 11711 11350 crosby.binary.Osmformat.Info.Builder builderForValue) { 11712 info_ = builderForValue.build(); 11713 11714 bitField0_ |= 0x00000008; 11351 copyOnWrite(); 11352 instance.setInfo(builderForValue); 11715 11353 return this; 11716 11354 } … … 11719 11357 */ 11720 11358 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 11721 if (((bitField0_ & 0x00000008) == 0x00000008) && 11722 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 11723 info_ = 11724 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 11725 } else { 11726 info_ = value; 11727 } 11728 11729 bitField0_ |= 0x00000008; 11359 copyOnWrite(); 11360 instance.mergeInfo(value); 11730 11361 return this; 11731 11362 } … … 11733 11364 * <code>optional .OSMPBF.Info info = 4;</code> 11734 11365 */ 11735 public Builder clearInfo() { 11736 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 11737 11738 bitField0_ = (bitField0_ & ~0x00000008); 11739 return this; 11740 } 11741 11742 private java.util.List<java.lang.Long> refs_ = java.util.Collections.emptyList(); 11743 private void ensureRefsIsMutable() { 11744 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 11745 refs_ = new java.util.ArrayList<>(refs_); 11746 bitField0_ |= 0x00000010; 11747 } 11748 } 11749 /** 11366 public Builder clearInfo() { copyOnWrite(); 11367 instance.clearInfo(); 11368 return this; 11369 } 11370 11371 /** 11372 * <pre> 11373 * DELTA coded 11374 * </pre> 11375 * 11750 11376 * <code>repeated sint64 refs = 8 [packed = true];</code> 11751 * 11377 */ 11378 public java.util.List<java.lang.Long> 11379 getRefsList() { 11380 return java.util.Collections.unmodifiableList( 11381 instance.getRefsList()); 11382 } 11383 /** 11752 11384 * <pre> 11753 11385 * DELTA coded 11754 11386 * </pre> 11755 */ 11756 @Override 11757 public java.util.List<java.lang.Long> 11758 getRefsList() { 11759 return java.util.Collections.unmodifiableList(refs_); 11760 } 11761 /** 11387 * 11762 11388 * <code>repeated sint64 refs = 8 [packed = true];</code> 11763 * 11389 */ 11390 public int getRefsCount() { 11391 return instance.getRefsCount(); 11392 } 11393 /** 11764 11394 * <pre> 11765 11395 * DELTA coded 11766 11396 * </pre> 11767 */ 11768 @Override 11769 public int getRefsCount() { 11770 return refs_.size(); 11771 } 11772 /** 11397 * 11773 11398 * <code>repeated sint64 refs = 8 [packed = true];</code> 11774 * 11399 */ 11400 public long getRefs(int index) { 11401 return instance.getRefs(index); 11402 } 11403 /** 11775 11404 * <pre> 11776 11405 * DELTA coded 11777 11406 * </pre> 11778 */ 11779 @Override 11780 public long getRefs(int index) { 11781 return refs_.get(index); 11782 } 11783 /** 11407 * 11784 11408 * <code>repeated sint64 refs = 8 [packed = true];</code> 11785 *11786 * <pre>11787 * DELTA coded11788 * </pre>11789 11409 */ 11790 11410 public Builder setRefs( 11791 11411 int index, long value) { 11792 ensureRefsIsMutable(); 11793 refs_.set(index, value); 11794 11795 return this; 11796 } 11797 /** 11412 copyOnWrite(); 11413 instance.setRefs(index, value); 11414 return this; 11415 } 11416 /** 11417 * <pre> 11418 * DELTA coded 11419 * </pre> 11420 * 11798 11421 * <code>repeated sint64 refs = 8 [packed = true];</code> 11799 * 11422 */ 11423 public Builder addRefs(long value) { 11424 copyOnWrite(); 11425 instance.addRefs(value); 11426 return this; 11427 } 11428 /** 11800 11429 * <pre> 11801 11430 * DELTA coded 11802 11431 * </pre> 11803 */ 11804 public Builder addRefs(long value) { 11805 ensureRefsIsMutable(); 11806 refs_.add(value); 11807 11808 return this; 11809 } 11810 /** 11432 * 11811 11433 * <code>repeated sint64 refs = 8 [packed = true];</code> 11812 *11813 * <pre>11814 * DELTA coded11815 * </pre>11816 11434 */ 11817 11435 public Builder addAllRefs( 11818 11436 java.lang.Iterable<? extends java.lang.Long> values) { 11819 ensureRefsIsMutable(); 11820 com.google.protobuf.AbstractMessageLite.Builder.addAll( 11821 values, refs_); 11822 11823 return this; 11824 } 11825 /** 11437 copyOnWrite(); 11438 instance.addAllRefs(values); 11439 return this; 11440 } 11441 /** 11442 * <pre> 11443 * DELTA coded 11444 * </pre> 11445 * 11826 11446 * <code>repeated sint64 refs = 8 [packed = true];</code> 11827 *11828 * <pre>11829 * DELTA coded11830 * </pre>11831 11447 */ 11832 11448 public Builder clearRefs() { 11833 refs_ = java.util.Collections.emptyList(); 11834 bitField0_ = (bitField0_ & ~0x00000010); 11835 11449 copyOnWrite(); 11450 instance.clearRefs(); 11836 11451 return this; 11837 11452 } … … 11839 11454 // @@protoc_insertion_point(builder_scope:OSMPBF.Way) 11840 11455 } 11841 11456 private byte memoizedIsInitialized = -1; 11457 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 11458 protected final java.lang.Object dynamicMethod( 11459 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 11460 java.lang.Object arg0, java.lang.Object arg1) { 11461 switch (method) { 11462 case NEW_MUTABLE_INSTANCE: { 11463 return new crosby.binary.Osmformat.Way(); 11464 } 11465 case IS_INITIALIZED: { 11466 byte isInitialized = memoizedIsInitialized; 11467 if (isInitialized == 1) return DEFAULT_INSTANCE; 11468 if (isInitialized == 0) return null; 11469 11470 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 11471 if (!hasId()) { 11472 if (shouldMemoize) { 11473 memoizedIsInitialized = 0; 11474 } 11475 return null; 11476 } 11477 if (shouldMemoize) memoizedIsInitialized = 1; 11478 return DEFAULT_INSTANCE; 11479 11480 } 11481 case MAKE_IMMUTABLE: { 11482 keys_.makeImmutable(); 11483 vals_.makeImmutable(); 11484 refs_.makeImmutable(); 11485 return null; 11486 } 11487 case NEW_BUILDER: { 11488 return new Builder(); 11489 } 11490 case VISIT: { 11491 Visitor visitor = (Visitor) arg0; 11492 crosby.binary.Osmformat.Way other = (crosby.binary.Osmformat.Way) arg1; 11493 id_ = visitor.visitLong( 11494 hasId(), id_, 11495 other.hasId(), other.id_); 11496 keys_= visitor.visitIntList(keys_, other.keys_); 11497 vals_= visitor.visitIntList(vals_, other.vals_); 11498 info_ = visitor.visitMessage(info_, other.info_); 11499 refs_= visitor.visitLongList(refs_, other.refs_); 11500 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 11501 .INSTANCE) { 11502 bitField0_ |= other.bitField0_; 11503 } 11504 return this; 11505 } 11506 case MERGE_FROM_STREAM: { 11507 com.google.protobuf.CodedInputStream input = 11508 (com.google.protobuf.CodedInputStream) arg0; 11509 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 11510 (com.google.protobuf.ExtensionRegistryLite) arg1; 11511 try { 11512 boolean done = false; 11513 while (!done) { 11514 int tag = input.readTag(); 11515 switch (tag) { 11516 case 0: 11517 done = true; 11518 break; 11519 default: { 11520 if (!parseUnknownField(tag, input)) { 11521 done = true; 11522 } 11523 break; 11524 } 11525 case 8: { 11526 bitField0_ |= 0x00000001; 11527 id_ = input.readInt64(); 11528 break; 11529 } 11530 case 16: { 11531 if (!keys_.isModifiable()) { 11532 keys_ = 11533 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 11534 } 11535 keys_.addInt(input.readUInt32()); 11536 break; 11537 } 11538 case 18: { 11539 int length = input.readRawVarint32(); 11540 int limit = input.pushLimit(length); 11541 if (!keys_.isModifiable() && input.getBytesUntilLimit() > 0) { 11542 keys_ = 11543 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 11544 } 11545 while (input.getBytesUntilLimit() > 0) { 11546 keys_.addInt(input.readUInt32()); 11547 } 11548 input.popLimit(limit); 11549 break; 11550 } 11551 case 24: { 11552 if (!vals_.isModifiable()) { 11553 vals_ = 11554 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 11555 } 11556 vals_.addInt(input.readUInt32()); 11557 break; 11558 } 11559 case 26: { 11560 int length = input.readRawVarint32(); 11561 int limit = input.pushLimit(length); 11562 if (!vals_.isModifiable() && input.getBytesUntilLimit() > 0) { 11563 vals_ = 11564 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 11565 } 11566 while (input.getBytesUntilLimit() > 0) { 11567 vals_.addInt(input.readUInt32()); 11568 } 11569 input.popLimit(limit); 11570 break; 11571 } 11572 case 34: { 11573 crosby.binary.Osmformat.Info.Builder subBuilder = null; 11574 if (((bitField0_ & 0x00000002) == 0x00000002)) { 11575 subBuilder = info_.toBuilder(); 11576 } 11577 info_ = input.readMessage(crosby.binary.Osmformat.Info.parser(), extensionRegistry); 11578 if (subBuilder != null) { 11579 subBuilder.mergeFrom(info_); 11580 info_ = subBuilder.buildPartial(); 11581 } 11582 bitField0_ |= 0x00000002; 11583 break; 11584 } 11585 case 64: { 11586 if (!refs_.isModifiable()) { 11587 refs_ = 11588 com.google.protobuf.GeneratedMessageLite.mutableCopy(refs_); 11589 } 11590 refs_.addLong(input.readSInt64()); 11591 break; 11592 } 11593 case 66: { 11594 int length = input.readRawVarint32(); 11595 int limit = input.pushLimit(length); 11596 if (!refs_.isModifiable() && input.getBytesUntilLimit() > 0) { 11597 refs_ = 11598 com.google.protobuf.GeneratedMessageLite.mutableCopy(refs_); 11599 } 11600 while (input.getBytesUntilLimit() > 0) { 11601 refs_.addLong(input.readSInt64()); 11602 } 11603 input.popLimit(limit); 11604 break; 11605 } 11606 } 11607 } 11608 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 11609 throw new RuntimeException(e.setUnfinishedMessage(this)); 11610 } catch (java.io.IOException e) { 11611 throw new RuntimeException( 11612 new com.google.protobuf.InvalidProtocolBufferException( 11613 e.getMessage()).setUnfinishedMessage(this)); 11614 } finally { 11615 } 11616 } 11617 // fall through 11618 case GET_DEFAULT_INSTANCE: { 11619 return DEFAULT_INSTANCE; 11620 } 11621 case GET_PARSER: { 11622 if (PARSER == null) { synchronized (crosby.binary.Osmformat.Way.class) { 11623 if (PARSER == null) { 11624 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 11625 } 11626 } 11627 } 11628 return PARSER; 11629 } 11630 } 11631 throw new UnsupportedOperationException(); 11632 } 11633 11634 11635 // @@protoc_insertion_point(class_scope:OSMPBF.Way) 11636 private static final crosby.binary.Osmformat.Way DEFAULT_INSTANCE; 11842 11637 static { 11843 defaultInstance = new Way(true); 11844 defaultInstance.initFields(); 11845 } 11846 11847 // @@protoc_insertion_point(class_scope:OSMPBF.Way) 11638 DEFAULT_INSTANCE = new Way(); 11639 DEFAULT_INSTANCE.makeImmutable(); 11640 } 11641 11642 public static crosby.binary.Osmformat.Way getDefaultInstance() { 11643 return DEFAULT_INSTANCE; 11644 } 11645 11646 private static volatile com.google.protobuf.Parser<Way> PARSER; 11647 11648 public static com.google.protobuf.Parser<Way> parser() { 11649 return DEFAULT_INSTANCE.getParserForType(); 11650 } 11848 11651 } 11849 11652 … … 11862 11665 11863 11666 /** 11667 * <pre> 11668 * Parallel arrays. 11669 * </pre> 11670 * 11864 11671 * <code>repeated uint32 keys = 2 [packed = true];</code> 11865 * 11672 */ 11673 java.util.List<java.lang.Integer> getKeysList(); 11674 /** 11866 11675 * <pre> 11867 11676 * Parallel arrays. 11868 11677 * </pre> 11869 */ 11870 java.util.List<java.lang.Integer> getKeysList(); 11871 /** 11678 * 11872 11679 * <code>repeated uint32 keys = 2 [packed = true];</code> 11873 * 11680 */ 11681 int getKeysCount(); 11682 /** 11874 11683 * <pre> 11875 11684 * Parallel arrays. 11876 11685 * </pre> 11877 */ 11878 int getKeysCount(); 11879 /** 11686 * 11880 11687 * <code>repeated uint32 keys = 2 [packed = true];</code> 11881 *11882 * <pre>11883 * Parallel arrays.11884 * </pre>11885 11688 */ 11886 11689 int getKeys(int index); … … 11909 11712 11910 11713 /** 11714 * <pre> 11715 * Parallel arrays 11716 * </pre> 11717 * 11911 11718 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11912 * 11719 */ 11720 java.util.List<java.lang.Integer> getRolesSidList(); 11721 /** 11913 11722 * <pre> 11914 11723 * Parallel arrays 11915 11724 * </pre> 11916 */ 11917 java.util.List<java.lang.Integer> getRolesSidList(); 11918 /** 11725 * 11919 11726 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11920 * 11727 */ 11728 int getRolesSidCount(); 11729 /** 11921 11730 * <pre> 11922 11731 * Parallel arrays 11923 11732 * </pre> 11924 */ 11925 int getRolesSidCount(); 11926 /** 11733 * 11927 11734 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 11928 *11929 * <pre>11930 * Parallel arrays11931 * </pre>11932 11735 */ 11933 11736 int getRolesSid(int index); 11934 11737 11935 11738 /** 11739 * <pre> 11740 * DELTA encoded 11741 * </pre> 11742 * 11936 11743 * <code>repeated sint64 memids = 9 [packed = true];</code> 11937 * 11744 */ 11745 java.util.List<java.lang.Long> getMemidsList(); 11746 /** 11938 11747 * <pre> 11939 11748 * DELTA encoded 11940 11749 * </pre> 11941 */ 11942 java.util.List<java.lang.Long> getMemidsList(); 11943 /** 11750 * 11944 11751 * <code>repeated sint64 memids = 9 [packed = true];</code> 11945 * 11752 */ 11753 int getMemidsCount(); 11754 /** 11946 11755 * <pre> 11947 11756 * DELTA encoded 11948 11757 * </pre> 11949 */ 11950 int getMemidsCount(); 11951 /** 11758 * 11952 11759 * <code>repeated sint64 memids = 9 [packed = true];</code> 11953 *11954 * <pre>11955 * DELTA encoded11956 * </pre>11957 11760 */ 11958 11761 long getMemids(int index); … … 11974 11777 * Protobuf type {@code OSMPBF.Relation} 11975 11778 */ 11976 public static final class Relation extends 11977 com.google.protobuf.GeneratedMessageLite implements 11779 public static final class Relation extends 11780 com.google.protobuf.GeneratedMessageLite< 11781 Relation, Relation.Builder> implements 11978 11782 // @@protoc_insertion_point(message_implements:OSMPBF.Relation) 11979 11783 RelationOrBuilder { 11980 // Use Relation.newBuilder() to construct. 11981 private Relation(com.google.protobuf.GeneratedMessageLite.Builder builder) { 11982 super(builder); 11983 this.unknownFields = builder.getUnknownFields(); 11984 } 11985 private Relation(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} 11986 11987 private static final Relation defaultInstance; 11988 public static Relation getDefaultInstance() { 11989 return defaultInstance; 11990 } 11991 11992 @Override 11993 public Relation getDefaultInstanceForType() { 11994 return defaultInstance; 11995 } 11996 11997 private final com.google.protobuf.ByteString unknownFields; 11998 private Relation( 11999 com.google.protobuf.CodedInputStream input, 12000 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12001 throws com.google.protobuf.InvalidProtocolBufferException { 12002 initFields(); 12003 int mutable_bitField0_ = 0; 12004 com.google.protobuf.ByteString.Output unknownFieldsOutput = 12005 com.google.protobuf.ByteString.newOutput(); 12006 com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = 12007 com.google.protobuf.CodedOutputStream.newInstance( 12008 unknownFieldsOutput); 12009 try { 12010 boolean done = false; 12011 while (!done) { 12012 int tag = input.readTag(); 12013 switch (tag) { 12014 case 0: 12015 done = true; 12016 break; 12017 default: { 12018 if (!parseUnknownField(input, unknownFieldsCodedOutput, 12019 extensionRegistry, tag)) { 12020 done = true; 12021 } 12022 break; 12023 } 12024 case 8: { 12025 bitField0_ |= 0x00000001; 12026 id_ = input.readInt64(); 12027 break; 12028 } 12029 case 16: { 12030 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 12031 keys_ = new java.util.ArrayList<>(); 12032 mutable_bitField0_ |= 0x00000002; 12033 } 12034 keys_.add(input.readUInt32()); 12035 break; 12036 } 12037 case 18: { 12038 int length = input.readRawVarint32(); 12039 int limit = input.pushLimit(length); 12040 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { 12041 keys_ = new java.util.ArrayList<>(); 12042 mutable_bitField0_ |= 0x00000002; 12043 } 12044 while (input.getBytesUntilLimit() > 0) { 12045 keys_.add(input.readUInt32()); 12046 } 12047 input.popLimit(limit); 12048 break; 12049 } 12050 case 24: { 12051 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 12052 vals_ = new java.util.ArrayList<>(); 12053 mutable_bitField0_ |= 0x00000004; 12054 } 12055 vals_.add(input.readUInt32()); 12056 break; 12057 } 12058 case 26: { 12059 int length = input.readRawVarint32(); 12060 int limit = input.pushLimit(length); 12061 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { 12062 vals_ = new java.util.ArrayList<>(); 12063 mutable_bitField0_ |= 0x00000004; 12064 } 12065 while (input.getBytesUntilLimit() > 0) { 12066 vals_.add(input.readUInt32()); 12067 } 12068 input.popLimit(limit); 12069 break; 12070 } 12071 case 34: { 12072 crosby.binary.Osmformat.Info.Builder subBuilder = null; 12073 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12074 subBuilder = info_.toBuilder(); 12075 } 12076 info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry); 12077 if (subBuilder != null) { 12078 subBuilder.mergeFrom(info_); 12079 info_ = subBuilder.buildPartial(); 12080 } 12081 bitField0_ |= 0x00000002; 12082 break; 12083 } 12084 case 64: { 12085 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 12086 rolesSid_ = new java.util.ArrayList<>(); 12087 mutable_bitField0_ |= 0x00000010; 12088 } 12089 rolesSid_.add(input.readInt32()); 12090 break; 12091 } 12092 case 66: { 12093 int length = input.readRawVarint32(); 12094 int limit = input.pushLimit(length); 12095 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { 12096 rolesSid_ = new java.util.ArrayList<>(); 12097 mutable_bitField0_ |= 0x00000010; 12098 } 12099 while (input.getBytesUntilLimit() > 0) { 12100 rolesSid_.add(input.readInt32()); 12101 } 12102 input.popLimit(limit); 12103 break; 12104 } 12105 case 72: { 12106 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 12107 memids_ = new java.util.ArrayList<>(); 12108 mutable_bitField0_ |= 0x00000020; 12109 } 12110 memids_.add(input.readSInt64()); 12111 break; 12112 } 12113 case 74: { 12114 int length = input.readRawVarint32(); 12115 int limit = input.pushLimit(length); 12116 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { 12117 memids_ = new java.util.ArrayList<>(); 12118 mutable_bitField0_ |= 0x00000020; 12119 } 12120 while (input.getBytesUntilLimit() > 0) { 12121 memids_.add(input.readSInt64()); 12122 } 12123 input.popLimit(limit); 12124 break; 12125 } 12126 case 80: { 12127 int rawValue = input.readEnum(); 12128 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.valueOf(rawValue); 12129 if (value == null) { 12130 unknownFieldsCodedOutput.writeRawVarint32(tag); 12131 unknownFieldsCodedOutput.writeRawVarint32(rawValue); 12132 } else { 12133 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 12134 types_ = new java.util.ArrayList<>(); 12135 mutable_bitField0_ |= 0x00000040; 12136 } 12137 types_.add(value); 12138 } 12139 break; 12140 } 12141 case 82: { 12142 int length = input.readRawVarint32(); 12143 int oldLimit = input.pushLimit(length); 12144 while(input.getBytesUntilLimit() > 0) { 12145 int rawValue = input.readEnum(); 12146 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.valueOf(rawValue); 12147 if (value == null) { 12148 unknownFieldsCodedOutput.writeRawVarint32(tag); 12149 unknownFieldsCodedOutput.writeRawVarint32(rawValue); 12150 } else { 12151 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 12152 types_ = new java.util.ArrayList<>(); 12153 mutable_bitField0_ |= 0x00000040; 12154 } 12155 types_.add(value); 12156 } 12157 } 12158 input.popLimit(oldLimit); 12159 break; 12160 } 12161 } 12162 } 12163 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 12164 throw e.setUnfinishedMessage(this); 12165 } catch (java.io.IOException e) { 12166 throw new com.google.protobuf.InvalidProtocolBufferException( 12167 e.getMessage()).setUnfinishedMessage(this); 12168 } finally { 12169 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 12170 keys_ = java.util.Collections.unmodifiableList(keys_); 12171 } 12172 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 12173 vals_ = java.util.Collections.unmodifiableList(vals_); 12174 } 12175 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 12176 rolesSid_ = java.util.Collections.unmodifiableList(rolesSid_); 12177 } 12178 if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 12179 memids_ = java.util.Collections.unmodifiableList(memids_); 12180 } 12181 if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 12182 types_ = java.util.Collections.unmodifiableList(types_); 12183 } 12184 try { 12185 unknownFieldsCodedOutput.flush(); 12186 } catch (java.io.IOException e) { 12187 // Should not happen 12188 } finally { 12189 unknownFields = unknownFieldsOutput.toByteString(); 12190 } 12191 makeExtensionsImmutable(); 12192 } 12193 } 12194 public static com.google.protobuf.Parser<Relation> PARSER = 12195 new com.google.protobuf.AbstractParser<Relation>() { 12196 @Override 12197 public Relation parsePartialFrom( 12198 com.google.protobuf.CodedInputStream input, 12199 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12200 throws com.google.protobuf.InvalidProtocolBufferException { 12201 return new Relation(input, extensionRegistry); 12202 } 12203 }; 12204 12205 @java.lang.Override 12206 public com.google.protobuf.Parser<Relation> getParserForType() { 12207 return PARSER; 12208 } 12209 11784 private Relation() { 11785 keys_ = emptyIntList(); 11786 vals_ = emptyIntList(); 11787 rolesSid_ = emptyIntList(); 11788 memids_ = emptyLongList(); 11789 types_ = emptyIntList(); 11790 } 12210 11791 /** 12211 11792 * Protobuf enum {@code OSMPBF.Relation.MemberType} … … 12216 11797 * <code>NODE = 0;</code> 12217 11798 */ 12218 NODE(0 , 0),11799 NODE(0), 12219 11800 /** 12220 11801 * <code>WAY = 1;</code> 12221 11802 */ 12222 WAY(1 , 1),11803 WAY(1), 12223 11804 /** 12224 11805 * <code>RELATION = 2;</code> 12225 11806 */ 12226 RELATION(2 , 2),11807 RELATION(2), 12227 11808 ; 12228 11809 … … 12241 11822 12242 11823 12243 @Override 12244 public final int getNumber() { return value; } 12245 11824 public final int getNumber() { 11825 return value; 11826 } 11827 11828 /** 11829 * @deprecated Use {@link #forNumber(int)} instead. 11830 */ 11831 @java.lang.Deprecated 12246 11832 public static MemberType valueOf(int value) { 11833 return forNumber(value); 11834 } 11835 11836 public static MemberType forNumber(int value) { 12247 11837 switch (value) { 12248 11838 case 0: return NODE; … … 12257 11847 return internalValueMap; 12258 11848 } 12259 private static com.google.protobuf.Internal.EnumLiteMap<MemberType>12260 internalValueMap =11849 private static final com.google.protobuf.Internal.EnumLiteMap< 11850 MemberType> internalValueMap = 12261 11851 new com.google.protobuf.Internal.EnumLiteMap<MemberType>() { 12262 @Override 12263 public MemberType findValueByNumber(int number) { 12264 return MemberType.valueOf(number); 11852 public MemberType findValueByNumber(int number) { 11853 return MemberType.forNumber(number); 12265 11854 } 12266 11855 }; … … 12268 11857 private final int value; 12269 11858 12270 private MemberType(int index, intvalue) {11859 private MemberType(int value) { 12271 11860 this.value = value; 12272 11861 } … … 12281 11870 * <code>required int64 id = 1;</code> 12282 11871 */ 12283 @Override 12284 public boolean hasId() { 11872 public boolean hasId() { 12285 11873 return ((bitField0_ & 0x00000001) == 0x00000001); 12286 11874 } … … 12288 11876 * <code>required int64 id = 1;</code> 12289 11877 */ 12290 @Override 12291 public long getId() { 11878 public long getId() { 12292 11879 return id_; 12293 11880 } 11881 /** 11882 * <code>required int64 id = 1;</code> 11883 */ 11884 private void setId(long value) { 11885 bitField0_ |= 0x00000001; 11886 id_ = value; 11887 } 11888 /** 11889 * <code>required int64 id = 1;</code> 11890 */ 11891 private void clearId() { 11892 bitField0_ = (bitField0_ & ~0x00000001); 11893 id_ = 0L; 11894 } 12294 11895 12295 11896 public static final int KEYS_FIELD_NUMBER = 2; 12296 private java.util.List<java.lang.Integer> keys_; 12297 /** 11897 private com.google.protobuf.Internal.IntList keys_; 11898 /** 11899 * <pre> 11900 * Parallel arrays. 11901 * </pre> 11902 * 12298 11903 * <code>repeated uint32 keys = 2 [packed = true];</code> 12299 * 12300 * <pre> 12301 * Parallel arrays. 12302 * </pre> 12303 */ 12304 @Override 12305 public java.util.List<java.lang.Integer> 11904 */ 11905 public java.util.List<java.lang.Integer> 12306 11906 getKeysList() { 12307 11907 return keys_; 12308 11908 } 12309 11909 /** 11910 * <pre> 11911 * Parallel arrays. 11912 * </pre> 11913 * 12310 11914 * <code>repeated uint32 keys = 2 [packed = true];</code> 12311 * 11915 */ 11916 public int getKeysCount() { 11917 return keys_.size(); 11918 } 11919 /** 12312 11920 * <pre> 12313 11921 * Parallel arrays. 12314 11922 * </pre> 12315 */ 12316 @Override 12317 public int getKeysCount() { 12318 return keys_.size(); 12319 } 12320 /** 11923 * 12321 11924 * <code>repeated uint32 keys = 2 [packed = true];</code> 12322 * 11925 */ 11926 public int getKeys(int index) { 11927 return keys_.getInt(index); 11928 } 11929 private int keysMemoizedSerializedSize = -1; 11930 private void ensureKeysIsMutable() { 11931 if (!keys_.isModifiable()) { 11932 keys_ = 11933 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 11934 } 11935 } 11936 /** 12323 11937 * <pre> 12324 11938 * Parallel arrays. 12325 11939 * </pre> 12326 */ 12327 @Override 12328 public int getKeys(int index) { 12329 return keys_.get(index); 12330 } 12331 private int keysMemoizedSerializedSize = -1; 11940 * 11941 * <code>repeated uint32 keys = 2 [packed = true];</code> 11942 */ 11943 private void setKeys( 11944 int index, int value) { 11945 ensureKeysIsMutable(); 11946 keys_.setInt(index, value); 11947 } 11948 /** 11949 * <pre> 11950 * Parallel arrays. 11951 * </pre> 11952 * 11953 * <code>repeated uint32 keys = 2 [packed = true];</code> 11954 */ 11955 private void addKeys(int value) { 11956 ensureKeysIsMutable(); 11957 keys_.addInt(value); 11958 } 11959 /** 11960 * <pre> 11961 * Parallel arrays. 11962 * </pre> 11963 * 11964 * <code>repeated uint32 keys = 2 [packed = true];</code> 11965 */ 11966 private void addAllKeys( 11967 java.lang.Iterable<? extends java.lang.Integer> values) { 11968 ensureKeysIsMutable(); 11969 com.google.protobuf.AbstractMessageLite.addAll( 11970 values, keys_); 11971 } 11972 /** 11973 * <pre> 11974 * Parallel arrays. 11975 * </pre> 11976 * 11977 * <code>repeated uint32 keys = 2 [packed = true];</code> 11978 */ 11979 private void clearKeys() { 11980 keys_ = emptyIntList(); 11981 } 12332 11982 12333 11983 public static final int VALS_FIELD_NUMBER = 3; 12334 private java.util.List<java.lang.Integer>vals_;11984 private com.google.protobuf.Internal.IntList vals_; 12335 11985 /** 12336 11986 * <code>repeated uint32 vals = 3 [packed = true];</code> 12337 11987 */ 12338 @Override 12339 public java.util.List<java.lang.Integer> 11988 public java.util.List<java.lang.Integer> 12340 11989 getValsList() { 12341 11990 return vals_; … … 12344 11993 * <code>repeated uint32 vals = 3 [packed = true];</code> 12345 11994 */ 12346 @Override 12347 public int getValsCount() { 11995 public int getValsCount() { 12348 11996 return vals_.size(); 12349 11997 } … … 12351 11999 * <code>repeated uint32 vals = 3 [packed = true];</code> 12352 12000 */ 12353 @Override 12354 public int getVals(int index) { 12355 return vals_.get(index); 12001 public int getVals(int index) { 12002 return vals_.getInt(index); 12356 12003 } 12357 12004 private int valsMemoizedSerializedSize = -1; 12005 private void ensureValsIsMutable() { 12006 if (!vals_.isModifiable()) { 12007 vals_ = 12008 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 12009 } 12010 } 12011 /** 12012 * <code>repeated uint32 vals = 3 [packed = true];</code> 12013 */ 12014 private void setVals( 12015 int index, int value) { 12016 ensureValsIsMutable(); 12017 vals_.setInt(index, value); 12018 } 12019 /** 12020 * <code>repeated uint32 vals = 3 [packed = true];</code> 12021 */ 12022 private void addVals(int value) { 12023 ensureValsIsMutable(); 12024 vals_.addInt(value); 12025 } 12026 /** 12027 * <code>repeated uint32 vals = 3 [packed = true];</code> 12028 */ 12029 private void addAllVals( 12030 java.lang.Iterable<? extends java.lang.Integer> values) { 12031 ensureValsIsMutable(); 12032 com.google.protobuf.AbstractMessageLite.addAll( 12033 values, vals_); 12034 } 12035 /** 12036 * <code>repeated uint32 vals = 3 [packed = true];</code> 12037 */ 12038 private void clearVals() { 12039 vals_ = emptyIntList(); 12040 } 12358 12041 12359 12042 public static final int INFO_FIELD_NUMBER = 4; … … 12362 12045 * <code>optional .OSMPBF.Info info = 4;</code> 12363 12046 */ 12364 @Override 12365 public boolean hasInfo() { 12047 public boolean hasInfo() { 12366 12048 return ((bitField0_ & 0x00000002) == 0x00000002); 12367 12049 } … … 12369 12051 * <code>optional .OSMPBF.Info info = 4;</code> 12370 12052 */ 12371 @Override 12372 public crosby.binary.Osmformat.Info getInfo() { 12373 return info_; 12053 public crosby.binary.Osmformat.Info getInfo() { 12054 return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_; 12055 } 12056 /** 12057 * <code>optional .OSMPBF.Info info = 4;</code> 12058 */ 12059 private void setInfo(crosby.binary.Osmformat.Info value) { 12060 if (value == null) { 12061 throw new NullPointerException(); 12062 } 12063 info_ = value; 12064 bitField0_ |= 0x00000002; 12065 } 12066 /** 12067 * <code>optional .OSMPBF.Info info = 4;</code> 12068 */ 12069 private void setInfo( 12070 crosby.binary.Osmformat.Info.Builder builderForValue) { 12071 info_ = builderForValue.build(); 12072 bitField0_ |= 0x00000002; 12073 } 12074 /** 12075 * <code>optional .OSMPBF.Info info = 4;</code> 12076 */ 12077 private void mergeInfo(crosby.binary.Osmformat.Info value) { 12078 if (info_ != null && 12079 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 12080 info_ = 12081 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 12082 } else { 12083 info_ = value; 12084 } 12085 bitField0_ |= 0x00000002; 12086 } 12087 /** 12088 * <code>optional .OSMPBF.Info info = 4;</code> 12089 */ 12090 private void clearInfo() { info_ = null; 12091 bitField0_ = (bitField0_ & ~0x00000002); 12374 12092 } 12375 12093 12376 12094 public static final int ROLES_SID_FIELD_NUMBER = 8; 12377 private java.util.List<java.lang.Integer> rolesSid_; 12378 /** 12095 private com.google.protobuf.Internal.IntList rolesSid_; 12096 /** 12097 * <pre> 12098 * Parallel arrays 12099 * </pre> 12100 * 12379 12101 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12380 * 12381 * <pre> 12382 * Parallel arrays 12383 * </pre> 12384 */ 12385 @Override 12386 public java.util.List<java.lang.Integer> 12102 */ 12103 public java.util.List<java.lang.Integer> 12387 12104 getRolesSidList() { 12388 12105 return rolesSid_; 12389 12106 } 12390 12107 /** 12108 * <pre> 12109 * Parallel arrays 12110 * </pre> 12111 * 12391 12112 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12392 * 12113 */ 12114 public int getRolesSidCount() { 12115 return rolesSid_.size(); 12116 } 12117 /** 12393 12118 * <pre> 12394 12119 * Parallel arrays 12395 12120 * </pre> 12396 */ 12397 @Override 12398 public int getRolesSidCount() { 12399 return rolesSid_.size(); 12400 } 12401 /** 12121 * 12402 12122 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12403 * 12123 */ 12124 public int getRolesSid(int index) { 12125 return rolesSid_.getInt(index); 12126 } 12127 private int rolesSidMemoizedSerializedSize = -1; 12128 private void ensureRolesSidIsMutable() { 12129 if (!rolesSid_.isModifiable()) { 12130 rolesSid_ = 12131 com.google.protobuf.GeneratedMessageLite.mutableCopy(rolesSid_); 12132 } 12133 } 12134 /** 12404 12135 * <pre> 12405 12136 * Parallel arrays 12406 12137 * </pre> 12407 */ 12408 @Override 12409 public int getRolesSid(int index) { 12410 return rolesSid_.get(index); 12411 } 12412 private int rolesSidMemoizedSerializedSize = -1; 12138 * 12139 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12140 */ 12141 private void setRolesSid( 12142 int index, int value) { 12143 ensureRolesSidIsMutable(); 12144 rolesSid_.setInt(index, value); 12145 } 12146 /** 12147 * <pre> 12148 * Parallel arrays 12149 * </pre> 12150 * 12151 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12152 */ 12153 private void addRolesSid(int value) { 12154 ensureRolesSidIsMutable(); 12155 rolesSid_.addInt(value); 12156 } 12157 /** 12158 * <pre> 12159 * Parallel arrays 12160 * </pre> 12161 * 12162 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12163 */ 12164 private void addAllRolesSid( 12165 java.lang.Iterable<? extends java.lang.Integer> values) { 12166 ensureRolesSidIsMutable(); 12167 com.google.protobuf.AbstractMessageLite.addAll( 12168 values, rolesSid_); 12169 } 12170 /** 12171 * <pre> 12172 * Parallel arrays 12173 * </pre> 12174 * 12175 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 12176 */ 12177 private void clearRolesSid() { 12178 rolesSid_ = emptyIntList(); 12179 } 12413 12180 12414 12181 public static final int MEMIDS_FIELD_NUMBER = 9; 12415 private java.util.List<java.lang.Long> memids_; 12416 /** 12182 private com.google.protobuf.Internal.LongList memids_; 12183 /** 12184 * <pre> 12185 * DELTA encoded 12186 * </pre> 12187 * 12417 12188 * <code>repeated sint64 memids = 9 [packed = true];</code> 12418 * 12419 * <pre> 12420 * DELTA encoded 12421 * </pre> 12422 */ 12423 @Override 12424 public java.util.List<java.lang.Long> 12189 */ 12190 public java.util.List<java.lang.Long> 12425 12191 getMemidsList() { 12426 12192 return memids_; 12427 12193 } 12428 12194 /** 12195 * <pre> 12196 * DELTA encoded 12197 * </pre> 12198 * 12429 12199 * <code>repeated sint64 memids = 9 [packed = true];</code> 12430 * 12200 */ 12201 public int getMemidsCount() { 12202 return memids_.size(); 12203 } 12204 /** 12431 12205 * <pre> 12432 12206 * DELTA encoded 12433 12207 * </pre> 12434 */ 12435 @Override 12436 public int getMemidsCount() { 12437 return memids_.size(); 12438 } 12439 /** 12208 * 12440 12209 * <code>repeated sint64 memids = 9 [packed = true];</code> 12441 * 12210 */ 12211 public long getMemids(int index) { 12212 return memids_.getLong(index); 12213 } 12214 private int memidsMemoizedSerializedSize = -1; 12215 private void ensureMemidsIsMutable() { 12216 if (!memids_.isModifiable()) { 12217 memids_ = 12218 com.google.protobuf.GeneratedMessageLite.mutableCopy(memids_); 12219 } 12220 } 12221 /** 12442 12222 * <pre> 12443 12223 * DELTA encoded 12444 12224 * </pre> 12445 */ 12446 @Override 12447 public long getMemids(int index) { 12448 return memids_.get(index); 12449 } 12450 private int memidsMemoizedSerializedSize = -1; 12225 * 12226 * <code>repeated sint64 memids = 9 [packed = true];</code> 12227 */ 12228 private void setMemids( 12229 int index, long value) { 12230 ensureMemidsIsMutable(); 12231 memids_.setLong(index, value); 12232 } 12233 /** 12234 * <pre> 12235 * DELTA encoded 12236 * </pre> 12237 * 12238 * <code>repeated sint64 memids = 9 [packed = true];</code> 12239 */ 12240 private void addMemids(long value) { 12241 ensureMemidsIsMutable(); 12242 memids_.addLong(value); 12243 } 12244 /** 12245 * <pre> 12246 * DELTA encoded 12247 * </pre> 12248 * 12249 * <code>repeated sint64 memids = 9 [packed = true];</code> 12250 */ 12251 private void addAllMemids( 12252 java.lang.Iterable<? extends java.lang.Long> values) { 12253 ensureMemidsIsMutable(); 12254 com.google.protobuf.AbstractMessageLite.addAll( 12255 values, memids_); 12256 } 12257 /** 12258 * <pre> 12259 * DELTA encoded 12260 * </pre> 12261 * 12262 * <code>repeated sint64 memids = 9 [packed = true];</code> 12263 */ 12264 private void clearMemids() { 12265 memids_ = emptyLongList(); 12266 } 12451 12267 12452 12268 public static final int TYPES_FIELD_NUMBER = 10; 12453 private java.util.List<crosby.binary.Osmformat.Relation.MemberType> types_; 12269 private com.google.protobuf.Internal.IntList types_; 12270 private static final com.google.protobuf.Internal.ListAdapter.Converter< 12271 java.lang.Integer, crosby.binary.Osmformat.Relation.MemberType> types_converter_ = 12272 new com.google.protobuf.Internal.ListAdapter.Converter< 12273 java.lang.Integer, crosby.binary.Osmformat.Relation.MemberType>() { 12274 public crosby.binary.Osmformat.Relation.MemberType convert(java.lang.Integer from) { 12275 crosby.binary.Osmformat.Relation.MemberType result = crosby.binary.Osmformat.Relation.MemberType.forNumber(from); 12276 return result == null ? crosby.binary.Osmformat.Relation.MemberType.NODE : result; 12277 } 12278 }; 12454 12279 /** 12455 12280 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12456 12281 */ 12457 @Override12458 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() { 12459 return types_;12282 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() { 12283 return new com.google.protobuf.Internal.ListAdapter< 12284 java.lang.Integer, crosby.binary.Osmformat.Relation.MemberType>(types_, types_converter_); 12460 12285 } 12461 12286 /** 12462 12287 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12463 12288 */ 12464 @Override 12465 public int getTypesCount() { 12289 public int getTypesCount() { 12466 12290 return types_.size(); 12467 12291 } … … 12469 12293 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12470 12294 */ 12471 @Override 12472 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) { 12473 return types_.get(index); 12295 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) { 12296 return types_converter_.convert(types_.getInt(index)); 12474 12297 } 12475 12298 private int typesMemoizedSerializedSize; 12476 12477 private void initFields() { 12478 id_ = 0L; 12479 keys_ = java.util.Collections.emptyList(); 12480 vals_ = java.util.Collections.emptyList(); 12481 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 12482 rolesSid_ = java.util.Collections.emptyList(); 12483 memids_ = java.util.Collections.emptyList(); 12484 types_ = java.util.Collections.emptyList(); 12485 } 12486 private byte memoizedIsInitialized = -1; 12487 @Override 12488 public final boolean isInitialized() { 12489 byte isInitialized = memoizedIsInitialized; 12490 if (isInitialized == 1) return true; 12491 if (isInitialized == 0) return false; 12492 12493 if (!hasId()) { 12494 memoizedIsInitialized = 0; 12495 return false; 12496 } 12497 memoizedIsInitialized = 1; 12498 return true; 12499 } 12500 12501 @Override 12502 public void writeTo(com.google.protobuf.CodedOutputStream output) 12299 private void ensureTypesIsMutable() { 12300 if (!types_.isModifiable()) { 12301 types_ = 12302 com.google.protobuf.GeneratedMessageLite.mutableCopy(types_); 12303 } 12304 } 12305 /** 12306 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12307 */ 12308 private void setTypes( 12309 int index, crosby.binary.Osmformat.Relation.MemberType value) { 12310 if (value == null) { 12311 throw new NullPointerException(); 12312 } 12313 ensureTypesIsMutable(); 12314 types_.setInt(index, value.getNumber()); 12315 } 12316 /** 12317 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12318 */ 12319 private void addTypes(crosby.binary.Osmformat.Relation.MemberType value) { 12320 if (value == null) { 12321 throw new NullPointerException(); 12322 } 12323 ensureTypesIsMutable(); 12324 types_.addInt(value.getNumber()); 12325 } 12326 /** 12327 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12328 */ 12329 private void addAllTypes( 12330 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation.MemberType> values) { 12331 ensureTypesIsMutable(); 12332 for (crosby.binary.Osmformat.Relation.MemberType value : values) { 12333 types_.addInt(value.getNumber()); 12334 } 12335 } 12336 /** 12337 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 12338 */ 12339 private void clearTypes() { 12340 types_ = emptyIntList(); 12341 } 12342 12343 public void writeTo(com.google.protobuf.CodedOutputStream output) 12503 12344 throws java.io.IOException { 12504 12345 getSerializedSize(); … … 12507 12348 } 12508 12349 if (getKeysList().size() > 0) { 12509 output.write RawVarint32(18);12510 output.write RawVarint32(keysMemoizedSerializedSize);12350 output.writeUInt32NoTag(18); 12351 output.writeUInt32NoTag(keysMemoizedSerializedSize); 12511 12352 } 12512 12353 for (int i = 0; i < keys_.size(); i++) { 12513 output.writeUInt32NoTag(keys_.get (i));12354 output.writeUInt32NoTag(keys_.getInt(i)); 12514 12355 } 12515 12356 if (getValsList().size() > 0) { 12516 output.write RawVarint32(26);12517 output.write RawVarint32(valsMemoizedSerializedSize);12357 output.writeUInt32NoTag(26); 12358 output.writeUInt32NoTag(valsMemoizedSerializedSize); 12518 12359 } 12519 12360 for (int i = 0; i < vals_.size(); i++) { 12520 output.writeUInt32NoTag(vals_.get (i));12361 output.writeUInt32NoTag(vals_.getInt(i)); 12521 12362 } 12522 12363 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12523 output.writeMessage(4, info_);12364 output.writeMessage(4, getInfo()); 12524 12365 } 12525 12366 if (getRolesSidList().size() > 0) { 12526 output.write RawVarint32(66);12527 output.write RawVarint32(rolesSidMemoizedSerializedSize);12367 output.writeUInt32NoTag(66); 12368 output.writeUInt32NoTag(rolesSidMemoizedSerializedSize); 12528 12369 } 12529 12370 for (int i = 0; i < rolesSid_.size(); i++) { 12530 output.writeInt32NoTag(rolesSid_.get (i));12371 output.writeInt32NoTag(rolesSid_.getInt(i)); 12531 12372 } 12532 12373 if (getMemidsList().size() > 0) { 12533 output.write RawVarint32(74);12534 output.write RawVarint32(memidsMemoizedSerializedSize);12374 output.writeUInt32NoTag(74); 12375 output.writeUInt32NoTag(memidsMemoizedSerializedSize); 12535 12376 } 12536 12377 for (int i = 0; i < memids_.size(); i++) { 12537 output.writeSInt64NoTag(memids_.get (i));12378 output.writeSInt64NoTag(memids_.getLong(i)); 12538 12379 } 12539 12380 if (getTypesList().size() > 0) { 12540 output.write RawVarint32(82);12541 output.write RawVarint32(typesMemoizedSerializedSize);12381 output.writeUInt32NoTag(82); 12382 output.writeUInt32NoTag(typesMemoizedSerializedSize); 12542 12383 } 12543 12384 for (int i = 0; i < types_.size(); i++) { 12544 output.writeEnumNoTag(types_.get(i).getNumber()); 12545 } 12546 output.writeRawBytes(unknownFields); 12547 } 12548 12549 private int memoizedSerializedSize = -1; 12550 @Override 12551 public int getSerializedSize() { 12385 output.writeEnumNoTag(types_.getInt(i)); 12386 } 12387 unknownFields.writeTo(output); 12388 } 12389 12390 public int getSerializedSize() { 12552 12391 int size = memoizedSerializedSize; 12553 12392 if (size != -1) return size; … … 12562 12401 for (int i = 0; i < keys_.size(); i++) { 12563 12402 dataSize += com.google.protobuf.CodedOutputStream 12564 .computeUInt32SizeNoTag(keys_.get (i));12403 .computeUInt32SizeNoTag(keys_.getInt(i)); 12565 12404 } 12566 12405 size += dataSize; … … 12576 12415 for (int i = 0; i < vals_.size(); i++) { 12577 12416 dataSize += com.google.protobuf.CodedOutputStream 12578 .computeUInt32SizeNoTag(vals_.get (i));12417 .computeUInt32SizeNoTag(vals_.getInt(i)); 12579 12418 } 12580 12419 size += dataSize; … … 12588 12427 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12589 12428 size += com.google.protobuf.CodedOutputStream 12590 .computeMessageSize(4, info_);12429 .computeMessageSize(4, getInfo()); 12591 12430 } 12592 12431 { … … 12594 12433 for (int i = 0; i < rolesSid_.size(); i++) { 12595 12434 dataSize += com.google.protobuf.CodedOutputStream 12596 .computeInt32SizeNoTag(rolesSid_.get (i));12435 .computeInt32SizeNoTag(rolesSid_.getInt(i)); 12597 12436 } 12598 12437 size += dataSize; … … 12608 12447 for (int i = 0; i < memids_.size(); i++) { 12609 12448 dataSize += com.google.protobuf.CodedOutputStream 12610 .computeSInt64SizeNoTag(memids_.get (i));12449 .computeSInt64SizeNoTag(memids_.getLong(i)); 12611 12450 } 12612 12451 size += dataSize; … … 12622 12461 for (int i = 0; i < types_.size(); i++) { 12623 12462 dataSize += com.google.protobuf.CodedOutputStream 12624 .computeEnumSizeNoTag(types_.get (i).getNumber());12463 .computeEnumSizeNoTag(types_.getInt(i)); 12625 12464 } 12626 12465 size += dataSize; 12627 12466 if (!getTypesList().isEmpty()) { size += 1; 12628 12467 size += com.google.protobuf.CodedOutputStream 12629 .compute RawVarint32Size(dataSize);12468 .computeUInt32SizeNoTag(dataSize); 12630 12469 }typesMemoizedSerializedSize = dataSize; 12631 12470 } 12632 size += unknownFields. size();12471 size += unknownFields.getSerializedSize(); 12633 12472 memoizedSerializedSize = size; 12634 12473 return size; 12635 12474 } 12636 12475 12637 private static final long serialVersionUID = 0L; 12638 @java.lang.Override 12639 protected java.lang.Object writeReplace() 12640 throws java.io.ObjectStreamException { 12641 return super.writeReplace(); 12642 } 12643 12476 public static crosby.binary.Osmformat.Relation parseFrom( 12477 java.nio.ByteBuffer data) 12478 throws com.google.protobuf.InvalidProtocolBufferException { 12479 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12480 DEFAULT_INSTANCE, data); 12481 } 12482 public static crosby.binary.Osmformat.Relation parseFrom( 12483 java.nio.ByteBuffer data, 12484 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12485 throws com.google.protobuf.InvalidProtocolBufferException { 12486 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12487 DEFAULT_INSTANCE, data, extensionRegistry); 12488 } 12644 12489 public static crosby.binary.Osmformat.Relation parseFrom( 12645 12490 com.google.protobuf.ByteString data) 12646 12491 throws com.google.protobuf.InvalidProtocolBufferException { 12647 return PARSER.parseFrom(data); 12492 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12493 DEFAULT_INSTANCE, data); 12648 12494 } 12649 12495 public static crosby.binary.Osmformat.Relation parseFrom( … … 12651 12497 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12652 12498 throws com.google.protobuf.InvalidProtocolBufferException { 12653 return PARSER.parseFrom(data, extensionRegistry); 12499 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12500 DEFAULT_INSTANCE, data, extensionRegistry); 12654 12501 } 12655 12502 public static crosby.binary.Osmformat.Relation parseFrom(byte[] data) 12656 12503 throws com.google.protobuf.InvalidProtocolBufferException { 12657 return PARSER.parseFrom(data); 12504 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12505 DEFAULT_INSTANCE, data); 12658 12506 } 12659 12507 public static crosby.binary.Osmformat.Relation parseFrom( … … 12661 12509 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12662 12510 throws com.google.protobuf.InvalidProtocolBufferException { 12663 return PARSER.parseFrom(data, extensionRegistry); 12511 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12512 DEFAULT_INSTANCE, data, extensionRegistry); 12664 12513 } 12665 12514 public static crosby.binary.Osmformat.Relation parseFrom(java.io.InputStream input) 12666 12515 throws java.io.IOException { 12667 return PARSER.parseFrom(input); 12516 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12517 DEFAULT_INSTANCE, input); 12668 12518 } 12669 12519 public static crosby.binary.Osmformat.Relation parseFrom( … … 12671 12521 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12672 12522 throws java.io.IOException { 12673 return PARSER.parseFrom(input, extensionRegistry); 12523 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12524 DEFAULT_INSTANCE, input, extensionRegistry); 12674 12525 } 12675 12526 public static crosby.binary.Osmformat.Relation parseDelimitedFrom(java.io.InputStream input) 12676 12527 throws java.io.IOException { 12677 return PARSER.parseDelimitedFrom(input);12528 return parseDelimitedFrom(DEFAULT_INSTANCE, input); 12678 12529 } 12679 12530 public static crosby.binary.Osmformat.Relation parseDelimitedFrom( … … 12681 12532 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12682 12533 throws java.io.IOException { 12683 return PARSER.parseDelimitedFrom(input, extensionRegistry);12534 return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); 12684 12535 } 12685 12536 public static crosby.binary.Osmformat.Relation parseFrom( 12686 12537 com.google.protobuf.CodedInputStream input) 12687 12538 throws java.io.IOException { 12688 return PARSER.parseFrom(input); 12539 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12540 DEFAULT_INSTANCE, input); 12689 12541 } 12690 12542 public static crosby.binary.Osmformat.Relation parseFrom( … … 12692 12544 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12693 12545 throws java.io.IOException { 12694 return PARSER.parseFrom(input, extensionRegistry); 12695 } 12696 12697 public static Builder newBuilder() { return Builder.create(); } 12698 @Override 12699 public Builder newBuilderForType() { return newBuilder(); } 12546 return com.google.protobuf.GeneratedMessageLite.parseFrom( 12547 DEFAULT_INSTANCE, input, extensionRegistry); 12548 } 12549 12550 public static Builder newBuilder() { 12551 return DEFAULT_INSTANCE.toBuilder(); 12552 } 12700 12553 public static Builder newBuilder(crosby.binary.Osmformat.Relation prototype) { 12701 return newBuilder().mergeFrom(prototype); 12702 } 12703 @Override 12704 public Builder toBuilder() { return newBuilder(this); } 12554 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 12555 } 12705 12556 12706 12557 /** … … 12709 12560 public static final class Builder extends 12710 12561 com.google.protobuf.GeneratedMessageLite.Builder< 12711 crosby.binary.Osmformat.Relation, Builder> 12712 implements 12562 crosby.binary.Osmformat.Relation, Builder> implements 12713 12563 // @@protoc_insertion_point(builder_implements:OSMPBF.Relation) 12714 12564 crosby.binary.Osmformat.RelationOrBuilder { 12715 12565 // Construct using crosby.binary.Osmformat.Relation.newBuilder() 12716 12566 private Builder() { 12717 maybeForceBuilderInitialization(); 12718 } 12719 12720 private void maybeForceBuilderInitialization() { 12721 } 12722 private static Builder create() { 12723 return new Builder(); 12724 } 12725 12726 @Override 12727 public Builder clear() { 12728 super.clear(); 12729 id_ = 0L; 12730 bitField0_ = (bitField0_ & ~0x00000001); 12731 keys_ = java.util.Collections.emptyList(); 12732 bitField0_ = (bitField0_ & ~0x00000002); 12733 vals_ = java.util.Collections.emptyList(); 12734 bitField0_ = (bitField0_ & ~0x00000004); 12735 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 12736 bitField0_ = (bitField0_ & ~0x00000008); 12737 rolesSid_ = java.util.Collections.emptyList(); 12738 bitField0_ = (bitField0_ & ~0x00000010); 12739 memids_ = java.util.Collections.emptyList(); 12740 bitField0_ = (bitField0_ & ~0x00000020); 12741 types_ = java.util.Collections.emptyList(); 12742 bitField0_ = (bitField0_ & ~0x00000040); 12743 return this; 12744 } 12745 12746 @Override 12747 public Builder clone() { 12748 return create().mergeFrom(buildPartial()); 12749 } 12750 12751 @Override 12752 public crosby.binary.Osmformat.Relation getDefaultInstanceForType() { 12753 return crosby.binary.Osmformat.Relation.getDefaultInstance(); 12754 } 12755 12756 @Override 12757 public crosby.binary.Osmformat.Relation build() { 12758 crosby.binary.Osmformat.Relation result = buildPartial(); 12759 if (!result.isInitialized()) { 12760 throw newUninitializedMessageException(result); 12761 } 12762 return result; 12763 } 12764 12765 @Override 12766 public crosby.binary.Osmformat.Relation buildPartial() { 12767 crosby.binary.Osmformat.Relation result = new crosby.binary.Osmformat.Relation(this); 12768 int from_bitField0_ = bitField0_; 12769 int to_bitField0_ = 0; 12770 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 12771 to_bitField0_ |= 0x00000001; 12772 } 12773 result.id_ = id_; 12774 if (((bitField0_ & 0x00000002) == 0x00000002)) { 12775 keys_ = java.util.Collections.unmodifiableList(keys_); 12776 bitField0_ = (bitField0_ & ~0x00000002); 12777 } 12778 result.keys_ = keys_; 12779 if (((bitField0_ & 0x00000004) == 0x00000004)) { 12780 vals_ = java.util.Collections.unmodifiableList(vals_); 12781 bitField0_ = (bitField0_ & ~0x00000004); 12782 } 12783 result.vals_ = vals_; 12784 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 12785 to_bitField0_ |= 0x00000002; 12786 } 12787 result.info_ = info_; 12788 if (((bitField0_ & 0x00000010) == 0x00000010)) { 12789 rolesSid_ = java.util.Collections.unmodifiableList(rolesSid_); 12790 bitField0_ = (bitField0_ & ~0x00000010); 12791 } 12792 result.rolesSid_ = rolesSid_; 12793 if (((bitField0_ & 0x00000020) == 0x00000020)) { 12794 memids_ = java.util.Collections.unmodifiableList(memids_); 12795 bitField0_ = (bitField0_ & ~0x00000020); 12796 } 12797 result.memids_ = memids_; 12798 if (((bitField0_ & 0x00000040) == 0x00000040)) { 12799 types_ = java.util.Collections.unmodifiableList(types_); 12800 bitField0_ = (bitField0_ & ~0x00000040); 12801 } 12802 result.types_ = types_; 12803 result.bitField0_ = to_bitField0_; 12804 return result; 12805 } 12806 12807 @Override 12808 public Builder mergeFrom(crosby.binary.Osmformat.Relation other) { 12809 if (other == crosby.binary.Osmformat.Relation.getDefaultInstance()) return this; 12810 if (other.hasId()) { 12811 setId(other.getId()); 12812 } 12813 if (!other.keys_.isEmpty()) { 12814 if (keys_.isEmpty()) { 12815 keys_ = other.keys_; 12816 bitField0_ = (bitField0_ & ~0x00000002); 12817 } else { 12818 ensureKeysIsMutable(); 12819 keys_.addAll(other.keys_); 12820 } 12821 12822 } 12823 if (!other.vals_.isEmpty()) { 12824 if (vals_.isEmpty()) { 12825 vals_ = other.vals_; 12826 bitField0_ = (bitField0_ & ~0x00000004); 12827 } else { 12828 ensureValsIsMutable(); 12829 vals_.addAll(other.vals_); 12830 } 12831 12832 } 12833 if (other.hasInfo()) { 12834 mergeInfo(other.getInfo()); 12835 } 12836 if (!other.rolesSid_.isEmpty()) { 12837 if (rolesSid_.isEmpty()) { 12838 rolesSid_ = other.rolesSid_; 12839 bitField0_ = (bitField0_ & ~0x00000010); 12840 } else { 12841 ensureRolesSidIsMutable(); 12842 rolesSid_.addAll(other.rolesSid_); 12843 } 12844 12845 } 12846 if (!other.memids_.isEmpty()) { 12847 if (memids_.isEmpty()) { 12848 memids_ = other.memids_; 12849 bitField0_ = (bitField0_ & ~0x00000020); 12850 } else { 12851 ensureMemidsIsMutable(); 12852 memids_.addAll(other.memids_); 12853 } 12854 12855 } 12856 if (!other.types_.isEmpty()) { 12857 if (types_.isEmpty()) { 12858 types_ = other.types_; 12859 bitField0_ = (bitField0_ & ~0x00000040); 12860 } else { 12861 ensureTypesIsMutable(); 12862 types_.addAll(other.types_); 12863 } 12864 12865 } 12866 setUnknownFields( 12867 getUnknownFields().concat(other.unknownFields)); 12868 return this; 12869 } 12870 12871 @Override 12872 public final boolean isInitialized() { 12873 if (!hasId()) { 12874 12875 return false; 12876 } 12877 return true; 12878 } 12879 12880 @Override 12881 public Builder mergeFrom( 12882 com.google.protobuf.CodedInputStream input, 12883 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 12884 throws java.io.IOException { 12885 crosby.binary.Osmformat.Relation parsedMessage = null; 12886 try { 12887 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 12888 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 12889 parsedMessage = (crosby.binary.Osmformat.Relation) e.getUnfinishedMessage(); 12890 throw e; 12891 } finally { 12892 if (parsedMessage != null) { 12893 mergeFrom(parsedMessage); 12894 } 12895 } 12896 return this; 12897 } 12898 private int bitField0_; 12899 12900 private long id_ ; 12567 super(DEFAULT_INSTANCE); 12568 } 12569 12570 12901 12571 /** 12902 12572 * <code>required int64 id = 1;</code> 12903 12573 */ 12904 @Override 12905 public boolean hasId() { 12906 return ((bitField0_ & 0x00000001) == 0x00000001); 12574 public boolean hasId() { 12575 return instance.hasId(); 12907 12576 } 12908 12577 /** 12909 12578 * <code>required int64 id = 1;</code> 12910 12579 */ 12911 @Override 12912 public long getId() { 12913 return id_; 12580 public long getId() { 12581 return instance.getId(); 12914 12582 } 12915 12583 /** … … 12917 12585 */ 12918 12586 public Builder setId(long value) { 12919 bitField0_ |= 0x00000001; 12920 id_ = value; 12921 12587 copyOnWrite(); 12588 instance.setId(value); 12922 12589 return this; 12923 12590 } … … 12926 12593 */ 12927 12594 public Builder clearId() { 12928 bitField0_ = (bitField0_ & ~0x00000001); 12929 id_ = 0L; 12930 12931 return this; 12932 } 12933 12934 private java.util.List<java.lang.Integer> keys_ = java.util.Collections.emptyList(); 12935 private void ensureKeysIsMutable() { 12936 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 12937 keys_ = new java.util.ArrayList<>(keys_); 12938 bitField0_ |= 0x00000002; 12939 } 12940 } 12941 /** 12595 copyOnWrite(); 12596 instance.clearId(); 12597 return this; 12598 } 12599 12600 /** 12601 * <pre> 12602 * Parallel arrays. 12603 * </pre> 12604 * 12942 12605 * <code>repeated uint32 keys = 2 [packed = true];</code> 12943 * 12606 */ 12607 public java.util.List<java.lang.Integer> 12608 getKeysList() { 12609 return java.util.Collections.unmodifiableList( 12610 instance.getKeysList()); 12611 } 12612 /** 12944 12613 * <pre> 12945 12614 * Parallel arrays. 12946 12615 * </pre> 12947 */ 12948 @Override 12949 public java.util.List<java.lang.Integer> 12950 getKeysList() { 12951 return java.util.Collections.unmodifiableList(keys_); 12952 } 12953 /** 12616 * 12954 12617 * <code>repeated uint32 keys = 2 [packed = true];</code> 12955 * 12618 */ 12619 public int getKeysCount() { 12620 return instance.getKeysCount(); 12621 } 12622 /** 12956 12623 * <pre> 12957 12624 * Parallel arrays. 12958 12625 * </pre> 12959 */ 12960 @Override 12961 public int getKeysCount() { 12962 return keys_.size(); 12963 } 12964 /** 12626 * 12965 12627 * <code>repeated uint32 keys = 2 [packed = true];</code> 12966 * 12628 */ 12629 public int getKeys(int index) { 12630 return instance.getKeys(index); 12631 } 12632 /** 12967 12633 * <pre> 12968 12634 * Parallel arrays. 12969 12635 * </pre> 12970 */ 12971 @Override 12972 public int getKeys(int index) { 12973 return keys_.get(index); 12974 } 12975 /** 12636 * 12976 12637 * <code>repeated uint32 keys = 2 [packed = true];</code> 12977 *12978 * <pre>12979 * Parallel arrays.12980 * </pre>12981 12638 */ 12982 12639 public Builder setKeys( 12983 12640 int index, int value) { 12984 ensureKeysIsMutable(); 12985 keys_.set(index, value); 12986 12987 return this; 12988 } 12989 /** 12641 copyOnWrite(); 12642 instance.setKeys(index, value); 12643 return this; 12644 } 12645 /** 12646 * <pre> 12647 * Parallel arrays. 12648 * </pre> 12649 * 12990 12650 * <code>repeated uint32 keys = 2 [packed = true];</code> 12991 * 12651 */ 12652 public Builder addKeys(int value) { 12653 copyOnWrite(); 12654 instance.addKeys(value); 12655 return this; 12656 } 12657 /** 12992 12658 * <pre> 12993 12659 * Parallel arrays. 12994 12660 * </pre> 12995 */ 12996 public Builder addKeys(int value) { 12997 ensureKeysIsMutable(); 12998 keys_.add(value); 12999 13000 return this; 13001 } 13002 /** 12661 * 13003 12662 * <code>repeated uint32 keys = 2 [packed = true];</code> 13004 *13005 * <pre>13006 * Parallel arrays.13007 * </pre>13008 12663 */ 13009 12664 public Builder addAllKeys( 13010 12665 java.lang.Iterable<? extends java.lang.Integer> values) { 13011 ensureKeysIsMutable(); 13012 com.google.protobuf.AbstractMessageLite.Builder.addAll( 13013 values, keys_); 13014 13015 return this; 13016 } 13017 /** 12666 copyOnWrite(); 12667 instance.addAllKeys(values); 12668 return this; 12669 } 12670 /** 12671 * <pre> 12672 * Parallel arrays. 12673 * </pre> 12674 * 13018 12675 * <code>repeated uint32 keys = 2 [packed = true];</code> 13019 *13020 * <pre>13021 * Parallel arrays.13022 * </pre>13023 12676 */ 13024 12677 public Builder clearKeys() { 13025 keys_ = java.util.Collections.emptyList(); 13026 bitField0_ = (bitField0_ & ~0x00000002); 13027 13028 return this; 13029 } 13030 13031 private java.util.List<java.lang.Integer> vals_ = java.util.Collections.emptyList(); 13032 private void ensureValsIsMutable() { 13033 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 13034 vals_ = new java.util.ArrayList<>(vals_); 13035 bitField0_ |= 0x00000004; 13036 } 13037 } 12678 copyOnWrite(); 12679 instance.clearKeys(); 12680 return this; 12681 } 12682 13038 12683 /** 13039 12684 * <code>repeated uint32 vals = 3 [packed = true];</code> 13040 12685 */ 13041 @Override 13042 public java.util.List<java.lang.Integer> 12686 public java.util.List<java.lang.Integer> 13043 12687 getValsList() { 13044 return java.util.Collections.unmodifiableList(vals_); 12688 return java.util.Collections.unmodifiableList( 12689 instance.getValsList()); 13045 12690 } 13046 12691 /** 13047 12692 * <code>repeated uint32 vals = 3 [packed = true];</code> 13048 12693 */ 13049 @Override 13050 public int getValsCount() { 13051 return vals_.size(); 12694 public int getValsCount() { 12695 return instance.getValsCount(); 13052 12696 } 13053 12697 /** 13054 12698 * <code>repeated uint32 vals = 3 [packed = true];</code> 13055 12699 */ 13056 @Override 13057 public int getVals(int index) { 13058 return vals_.get(index); 12700 public int getVals(int index) { 12701 return instance.getVals(index); 13059 12702 } 13060 12703 /** … … 13063 12706 public Builder setVals( 13064 12707 int index, int value) { 13065 ensureValsIsMutable(); 13066 vals_.set(index, value); 13067 12708 copyOnWrite(); 12709 instance.setVals(index, value); 13068 12710 return this; 13069 12711 } … … 13072 12714 */ 13073 12715 public Builder addVals(int value) { 13074 ensureValsIsMutable(); 13075 vals_.add(value); 13076 12716 copyOnWrite(); 12717 instance.addVals(value); 13077 12718 return this; 13078 12719 } … … 13082 12723 public Builder addAllVals( 13083 12724 java.lang.Iterable<? extends java.lang.Integer> values) { 13084 ensureValsIsMutable(); 13085 com.google.protobuf.AbstractMessageLite.Builder.addAll( 13086 values, vals_); 13087 12725 copyOnWrite(); 12726 instance.addAllVals(values); 13088 12727 return this; 13089 12728 } … … 13092 12731 */ 13093 12732 public Builder clearVals() { 13094 vals_ = java.util.Collections.emptyList(); 13095 bitField0_ = (bitField0_ & ~0x00000004); 13096 13097 return this; 13098 } 13099 13100 private crosby.binary.Osmformat.Info info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 12733 copyOnWrite(); 12734 instance.clearVals(); 12735 return this; 12736 } 12737 13101 12738 /** 13102 12739 * <code>optional .OSMPBF.Info info = 4;</code> 13103 12740 */ 13104 @Override 13105 public boolean hasInfo() { 13106 return ((bitField0_ & 0x00000008) == 0x00000008); 12741 public boolean hasInfo() { 12742 return instance.hasInfo(); 13107 12743 } 13108 12744 /** 13109 12745 * <code>optional .OSMPBF.Info info = 4;</code> 13110 12746 */ 13111 @Override 13112 public crosby.binary.Osmformat.Info getInfo() { 13113 return info_; 12747 public crosby.binary.Osmformat.Info getInfo() { 12748 return instance.getInfo(); 13114 12749 } 13115 12750 /** … … 13117 12752 */ 13118 12753 public Builder setInfo(crosby.binary.Osmformat.Info value) { 13119 if (value == null) { 13120 throw new NullPointerException(); 13121 } 13122 info_ = value; 13123 13124 bitField0_ |= 0x00000008; 13125 return this; 13126 } 12754 copyOnWrite(); 12755 instance.setInfo(value); 12756 return this; 12757 } 13127 12758 /** 13128 12759 * <code>optional .OSMPBF.Info info = 4;</code> … … 13130 12761 public Builder setInfo( 13131 12762 crosby.binary.Osmformat.Info.Builder builderForValue) { 13132 info_ = builderForValue.build(); 13133 13134 bitField0_ |= 0x00000008; 12763 copyOnWrite(); 12764 instance.setInfo(builderForValue); 13135 12765 return this; 13136 12766 } … … 13139 12769 */ 13140 12770 public Builder mergeInfo(crosby.binary.Osmformat.Info value) { 13141 if (((bitField0_ & 0x00000008) == 0x00000008) && 13142 info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) { 13143 info_ = 13144 crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial(); 13145 } else { 13146 info_ = value; 13147 } 13148 13149 bitField0_ |= 0x00000008; 12771 copyOnWrite(); 12772 instance.mergeInfo(value); 13150 12773 return this; 13151 12774 } … … 13153 12776 * <code>optional .OSMPBF.Info info = 4;</code> 13154 12777 */ 13155 public Builder clearInfo() { 13156 info_ = crosby.binary.Osmformat.Info.getDefaultInstance(); 13157 13158 bitField0_ = (bitField0_ & ~0x00000008); 13159 return this; 13160 } 13161 13162 private java.util.List<java.lang.Integer> rolesSid_ = java.util.Collections.emptyList(); 13163 private void ensureRolesSidIsMutable() { 13164 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 13165 rolesSid_ = new java.util.ArrayList<>(rolesSid_); 13166 bitField0_ |= 0x00000010; 13167 } 13168 } 13169 /** 12778 public Builder clearInfo() { copyOnWrite(); 12779 instance.clearInfo(); 12780 return this; 12781 } 12782 12783 /** 12784 * <pre> 12785 * Parallel arrays 12786 * </pre> 12787 * 13170 12788 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13171 * 12789 */ 12790 public java.util.List<java.lang.Integer> 12791 getRolesSidList() { 12792 return java.util.Collections.unmodifiableList( 12793 instance.getRolesSidList()); 12794 } 12795 /** 13172 12796 * <pre> 13173 12797 * Parallel arrays 13174 12798 * </pre> 13175 */ 13176 @Override 13177 public java.util.List<java.lang.Integer> 13178 getRolesSidList() { 13179 return java.util.Collections.unmodifiableList(rolesSid_); 13180 } 13181 /** 12799 * 13182 12800 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13183 * 12801 */ 12802 public int getRolesSidCount() { 12803 return instance.getRolesSidCount(); 12804 } 12805 /** 13184 12806 * <pre> 13185 12807 * Parallel arrays 13186 12808 * </pre> 13187 */ 13188 @Override 13189 public int getRolesSidCount() { 13190 return rolesSid_.size(); 13191 } 13192 /** 12809 * 13193 12810 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13194 * 12811 */ 12812 public int getRolesSid(int index) { 12813 return instance.getRolesSid(index); 12814 } 12815 /** 13195 12816 * <pre> 13196 12817 * Parallel arrays 13197 12818 * </pre> 13198 */ 13199 @Override 13200 public int getRolesSid(int index) { 13201 return rolesSid_.get(index); 13202 } 13203 /** 12819 * 13204 12820 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13205 *13206 * <pre>13207 * Parallel arrays13208 * </pre>13209 12821 */ 13210 12822 public Builder setRolesSid( 13211 12823 int index, int value) { 13212 ensureRolesSidIsMutable(); 13213 rolesSid_.set(index, value); 13214 13215 return this; 13216 } 13217 /** 12824 copyOnWrite(); 12825 instance.setRolesSid(index, value); 12826 return this; 12827 } 12828 /** 12829 * <pre> 12830 * Parallel arrays 12831 * </pre> 12832 * 13218 12833 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13219 * 12834 */ 12835 public Builder addRolesSid(int value) { 12836 copyOnWrite(); 12837 instance.addRolesSid(value); 12838 return this; 12839 } 12840 /** 13220 12841 * <pre> 13221 12842 * Parallel arrays 13222 12843 * </pre> 13223 */ 13224 public Builder addRolesSid(int value) { 13225 ensureRolesSidIsMutable(); 13226 rolesSid_.add(value); 13227 13228 return this; 13229 } 13230 /** 12844 * 13231 12845 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13232 *13233 * <pre>13234 * Parallel arrays13235 * </pre>13236 12846 */ 13237 12847 public Builder addAllRolesSid( 13238 12848 java.lang.Iterable<? extends java.lang.Integer> values) { 13239 ensureRolesSidIsMutable(); 13240 com.google.protobuf.AbstractMessageLite.Builder.addAll( 13241 values, rolesSid_); 13242 13243 return this; 13244 } 13245 /** 12849 copyOnWrite(); 12850 instance.addAllRolesSid(values); 12851 return this; 12852 } 12853 /** 12854 * <pre> 12855 * Parallel arrays 12856 * </pre> 12857 * 13246 12858 * <code>repeated int32 roles_sid = 8 [packed = true];</code> 13247 *13248 * <pre>13249 * Parallel arrays13250 * </pre>13251 12859 */ 13252 12860 public Builder clearRolesSid() { 13253 rolesSid_ = java.util.Collections.emptyList(); 13254 bitField0_ = (bitField0_ & ~0x00000010); 13255 13256 return this; 13257 } 13258 13259 private java.util.List<java.lang.Long> memids_ = java.util.Collections.emptyList(); 13260 private void ensureMemidsIsMutable() { 13261 if (!((bitField0_ & 0x00000020) == 0x00000020)) { 13262 memids_ = new java.util.ArrayList<>(memids_); 13263 bitField0_ |= 0x00000020; 13264 } 13265 } 13266 /** 12861 copyOnWrite(); 12862 instance.clearRolesSid(); 12863 return this; 12864 } 12865 12866 /** 12867 * <pre> 12868 * DELTA encoded 12869 * </pre> 12870 * 13267 12871 * <code>repeated sint64 memids = 9 [packed = true];</code> 13268 * 12872 */ 12873 public java.util.List<java.lang.Long> 12874 getMemidsList() { 12875 return java.util.Collections.unmodifiableList( 12876 instance.getMemidsList()); 12877 } 12878 /** 13269 12879 * <pre> 13270 12880 * DELTA encoded 13271 12881 * </pre> 13272 */ 13273 @Override 13274 public java.util.List<java.lang.Long> 13275 getMemidsList() { 13276 return java.util.Collections.unmodifiableList(memids_); 13277 } 13278 /** 12882 * 13279 12883 * <code>repeated sint64 memids = 9 [packed = true];</code> 13280 * 12884 */ 12885 public int getMemidsCount() { 12886 return instance.getMemidsCount(); 12887 } 12888 /** 13281 12889 * <pre> 13282 12890 * DELTA encoded 13283 12891 * </pre> 13284 */ 13285 @Override 13286 public int getMemidsCount() { 13287 return memids_.size(); 13288 } 13289 /** 12892 * 13290 12893 * <code>repeated sint64 memids = 9 [packed = true];</code> 13291 * 12894 */ 12895 public long getMemids(int index) { 12896 return instance.getMemids(index); 12897 } 12898 /** 13292 12899 * <pre> 13293 12900 * DELTA encoded 13294 12901 * </pre> 13295 */ 13296 @Override 13297 public long getMemids(int index) { 13298 return memids_.get(index); 13299 } 13300 /** 12902 * 13301 12903 * <code>repeated sint64 memids = 9 [packed = true];</code> 13302 *13303 * <pre>13304 * DELTA encoded13305 * </pre>13306 12904 */ 13307 12905 public Builder setMemids( 13308 12906 int index, long value) { 13309 ensureMemidsIsMutable(); 13310 memids_.set(index, value); 13311 13312 return this; 13313 } 13314 /** 12907 copyOnWrite(); 12908 instance.setMemids(index, value); 12909 return this; 12910 } 12911 /** 12912 * <pre> 12913 * DELTA encoded 12914 * </pre> 12915 * 13315 12916 * <code>repeated sint64 memids = 9 [packed = true];</code> 13316 * 12917 */ 12918 public Builder addMemids(long value) { 12919 copyOnWrite(); 12920 instance.addMemids(value); 12921 return this; 12922 } 12923 /** 13317 12924 * <pre> 13318 12925 * DELTA encoded 13319 12926 * </pre> 13320 */ 13321 public Builder addMemids(long value) { 13322 ensureMemidsIsMutable(); 13323 memids_.add(value); 13324 13325 return this; 13326 } 13327 /** 12927 * 13328 12928 * <code>repeated sint64 memids = 9 [packed = true];</code> 13329 *13330 * <pre>13331 * DELTA encoded13332 * </pre>13333 12929 */ 13334 12930 public Builder addAllMemids( 13335 12931 java.lang.Iterable<? extends java.lang.Long> values) { 13336 ensureMemidsIsMutable(); 13337 com.google.protobuf.AbstractMessageLite.Builder.addAll( 13338 values, memids_); 13339 13340 return this; 13341 } 13342 /** 12932 copyOnWrite(); 12933 instance.addAllMemids(values); 12934 return this; 12935 } 12936 /** 12937 * <pre> 12938 * DELTA encoded 12939 * </pre> 12940 * 13343 12941 * <code>repeated sint64 memids = 9 [packed = true];</code> 13344 *13345 * <pre>13346 * DELTA encoded13347 * </pre>13348 12942 */ 13349 12943 public Builder clearMemids() { 13350 memids_ = java.util.Collections.emptyList(); 13351 bitField0_ = (bitField0_ & ~0x00000020); 13352 13353 return this; 13354 } 13355 13356 private java.util.List<crosby.binary.Osmformat.Relation.MemberType> types_ = 13357 java.util.Collections.emptyList(); 13358 private void ensureTypesIsMutable() { 13359 if (!((bitField0_ & 0x00000040) == 0x00000040)) { 13360 types_ = new java.util.ArrayList<>(types_); 13361 bitField0_ |= 0x00000040; 13362 } 13363 } 12944 copyOnWrite(); 12945 instance.clearMemids(); 12946 return this; 12947 } 12948 13364 12949 /** 13365 12950 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 13366 12951 */ 13367 @Override 13368 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() { 13369 return java.util.Collections.unmodifiableList(types_); 12952 public java.util.List<crosby.binary.Osmformat.Relation.MemberType> getTypesList() { 12953 return instance.getTypesList(); 13370 12954 } 13371 12955 /** 13372 12956 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 13373 12957 */ 13374 @Override 13375 public int getTypesCount() { 13376 return types_.size(); 12958 public int getTypesCount() { 12959 return instance.getTypesCount(); 13377 12960 } 13378 12961 /** 13379 12962 * <code>repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];</code> 13380 12963 */ 13381 @Override 13382 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) { 13383 return types_.get(index); 12964 public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) { 12965 return instance.getTypes(index); 13384 12966 } 13385 12967 /** … … 13388 12970 public Builder setTypes( 13389 12971 int index, crosby.binary.Osmformat.Relation.MemberType value) { 13390 if (value == null) { 13391 throw new NullPointerException(); 13392 } 13393 ensureTypesIsMutable(); 13394 types_.set(index, value); 13395 12972 copyOnWrite(); 12973 instance.setTypes(index, value); 13396 12974 return this; 13397 12975 } … … 13400 12978 */ 13401 12979 public Builder addTypes(crosby.binary.Osmformat.Relation.MemberType value) { 13402 if (value == null) { 13403 throw new NullPointerException(); 13404 } 13405 ensureTypesIsMutable(); 13406 types_.add(value); 13407 12980 copyOnWrite(); 12981 instance.addTypes(value); 13408 12982 return this; 13409 12983 } … … 13413 12987 public Builder addAllTypes( 13414 12988 java.lang.Iterable<? extends crosby.binary.Osmformat.Relation.MemberType> values) { 13415 ensureTypesIsMutable(); 13416 com.google.protobuf.AbstractMessageLite.Builder.addAll( 13417 values, types_); 13418 13419 return this; 12989 copyOnWrite(); 12990 instance.addAllTypes(values); return this; 13420 12991 } 13421 12992 /** … … 13423 12994 */ 13424 12995 public Builder clearTypes() { 13425 types_ = java.util.Collections.emptyList(); 13426 bitField0_ = (bitField0_ & ~0x00000040); 13427 12996 copyOnWrite(); 12997 instance.clearTypes(); 13428 12998 return this; 13429 12999 } … … 13431 13001 // @@protoc_insertion_point(builder_scope:OSMPBF.Relation) 13432 13002 } 13433 13003 private byte memoizedIsInitialized = -1; 13004 @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) 13005 protected final java.lang.Object dynamicMethod( 13006 com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, 13007 java.lang.Object arg0, java.lang.Object arg1) { 13008 switch (method) { 13009 case NEW_MUTABLE_INSTANCE: { 13010 return new crosby.binary.Osmformat.Relation(); 13011 } 13012 case IS_INITIALIZED: { 13013 byte isInitialized = memoizedIsInitialized; 13014 if (isInitialized == 1) return DEFAULT_INSTANCE; 13015 if (isInitialized == 0) return null; 13016 13017 boolean shouldMemoize = ((Boolean) arg0).booleanValue(); 13018 if (!hasId()) { 13019 if (shouldMemoize) { 13020 memoizedIsInitialized = 0; 13021 } 13022 return null; 13023 } 13024 if (shouldMemoize) memoizedIsInitialized = 1; 13025 return DEFAULT_INSTANCE; 13026 13027 } 13028 case MAKE_IMMUTABLE: { 13029 keys_.makeImmutable(); 13030 vals_.makeImmutable(); 13031 rolesSid_.makeImmutable(); 13032 memids_.makeImmutable(); 13033 types_.makeImmutable(); 13034 return null; 13035 } 13036 case NEW_BUILDER: { 13037 return new Builder(); 13038 } 13039 case VISIT: { 13040 Visitor visitor = (Visitor) arg0; 13041 crosby.binary.Osmformat.Relation other = (crosby.binary.Osmformat.Relation) arg1; 13042 id_ = visitor.visitLong( 13043 hasId(), id_, 13044 other.hasId(), other.id_); 13045 keys_= visitor.visitIntList(keys_, other.keys_); 13046 vals_= visitor.visitIntList(vals_, other.vals_); 13047 info_ = visitor.visitMessage(info_, other.info_); 13048 rolesSid_= visitor.visitIntList(rolesSid_, other.rolesSid_); 13049 memids_= visitor.visitLongList(memids_, other.memids_); 13050 types_= visitor.visitIntList(types_, other.types_); 13051 if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor 13052 .INSTANCE) { 13053 bitField0_ |= other.bitField0_; 13054 } 13055 return this; 13056 } 13057 case MERGE_FROM_STREAM: { 13058 com.google.protobuf.CodedInputStream input = 13059 (com.google.protobuf.CodedInputStream) arg0; 13060 com.google.protobuf.ExtensionRegistryLite extensionRegistry = 13061 (com.google.protobuf.ExtensionRegistryLite) arg1; 13062 try { 13063 boolean done = false; 13064 while (!done) { 13065 int tag = input.readTag(); 13066 switch (tag) { 13067 case 0: 13068 done = true; 13069 break; 13070 default: { 13071 if (!parseUnknownField(tag, input)) { 13072 done = true; 13073 } 13074 break; 13075 } 13076 case 8: { 13077 bitField0_ |= 0x00000001; 13078 id_ = input.readInt64(); 13079 break; 13080 } 13081 case 16: { 13082 if (!keys_.isModifiable()) { 13083 keys_ = 13084 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 13085 } 13086 keys_.addInt(input.readUInt32()); 13087 break; 13088 } 13089 case 18: { 13090 int length = input.readRawVarint32(); 13091 int limit = input.pushLimit(length); 13092 if (!keys_.isModifiable() && input.getBytesUntilLimit() > 0) { 13093 keys_ = 13094 com.google.protobuf.GeneratedMessageLite.mutableCopy(keys_); 13095 } 13096 while (input.getBytesUntilLimit() > 0) { 13097 keys_.addInt(input.readUInt32()); 13098 } 13099 input.popLimit(limit); 13100 break; 13101 } 13102 case 24: { 13103 if (!vals_.isModifiable()) { 13104 vals_ = 13105 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 13106 } 13107 vals_.addInt(input.readUInt32()); 13108 break; 13109 } 13110 case 26: { 13111 int length = input.readRawVarint32(); 13112 int limit = input.pushLimit(length); 13113 if (!vals_.isModifiable() && input.getBytesUntilLimit() > 0) { 13114 vals_ = 13115 com.google.protobuf.GeneratedMessageLite.mutableCopy(vals_); 13116 } 13117 while (input.getBytesUntilLimit() > 0) { 13118 vals_.addInt(input.readUInt32()); 13119 } 13120 input.popLimit(limit); 13121 break; 13122 } 13123 case 34: { 13124 crosby.binary.Osmformat.Info.Builder subBuilder = null; 13125 if (((bitField0_ & 0x00000002) == 0x00000002)) { 13126 subBuilder = info_.toBuilder(); 13127 } 13128 info_ = input.readMessage(crosby.binary.Osmformat.Info.parser(), extensionRegistry); 13129 if (subBuilder != null) { 13130 subBuilder.mergeFrom(info_); 13131 info_ = subBuilder.buildPartial(); 13132 } 13133 bitField0_ |= 0x00000002; 13134 break; 13135 } 13136 case 64: { 13137 if (!rolesSid_.isModifiable()) { 13138 rolesSid_ = 13139 com.google.protobuf.GeneratedMessageLite.mutableCopy(rolesSid_); 13140 } 13141 rolesSid_.addInt(input.readInt32()); 13142 break; 13143 } 13144 case 66: { 13145 int length = input.readRawVarint32(); 13146 int limit = input.pushLimit(length); 13147 if (!rolesSid_.isModifiable() && input.getBytesUntilLimit() > 0) { 13148 rolesSid_ = 13149 com.google.protobuf.GeneratedMessageLite.mutableCopy(rolesSid_); 13150 } 13151 while (input.getBytesUntilLimit() > 0) { 13152 rolesSid_.addInt(input.readInt32()); 13153 } 13154 input.popLimit(limit); 13155 break; 13156 } 13157 case 72: { 13158 if (!memids_.isModifiable()) { 13159 memids_ = 13160 com.google.protobuf.GeneratedMessageLite.mutableCopy(memids_); 13161 } 13162 memids_.addLong(input.readSInt64()); 13163 break; 13164 } 13165 case 74: { 13166 int length = input.readRawVarint32(); 13167 int limit = input.pushLimit(length); 13168 if (!memids_.isModifiable() && input.getBytesUntilLimit() > 0) { 13169 memids_ = 13170 com.google.protobuf.GeneratedMessageLite.mutableCopy(memids_); 13171 } 13172 while (input.getBytesUntilLimit() > 0) { 13173 memids_.addLong(input.readSInt64()); 13174 } 13175 input.popLimit(limit); 13176 break; 13177 } 13178 case 80: { 13179 if (!types_.isModifiable()) { 13180 types_ = 13181 com.google.protobuf.GeneratedMessageLite.mutableCopy(types_); 13182 } 13183 int rawValue = input.readEnum(); 13184 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.forNumber(rawValue); 13185 if (value == null) { 13186 super.mergeVarintField(10, rawValue); 13187 } else { 13188 types_.addInt(rawValue); 13189 } 13190 break; 13191 } 13192 case 82: { 13193 if (!types_.isModifiable()) { 13194 types_ = 13195 com.google.protobuf.GeneratedMessageLite.mutableCopy(types_); 13196 } 13197 int length = input.readRawVarint32(); 13198 int oldLimit = input.pushLimit(length); 13199 while(input.getBytesUntilLimit() > 0) { 13200 int rawValue = input.readEnum(); 13201 crosby.binary.Osmformat.Relation.MemberType value = crosby.binary.Osmformat.Relation.MemberType.forNumber(rawValue); 13202 if (value == null) { 13203 super.mergeVarintField(10, rawValue); 13204 } else { 13205 types_.addInt(rawValue); 13206 } 13207 } 13208 input.popLimit(oldLimit); 13209 break; 13210 } 13211 } 13212 } 13213 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 13214 throw new RuntimeException(e.setUnfinishedMessage(this)); 13215 } catch (java.io.IOException e) { 13216 throw new RuntimeException( 13217 new com.google.protobuf.InvalidProtocolBufferException( 13218 e.getMessage()).setUnfinishedMessage(this)); 13219 } finally { 13220 } 13221 } 13222 // fall through 13223 case GET_DEFAULT_INSTANCE: { 13224 return DEFAULT_INSTANCE; 13225 } 13226 case GET_PARSER: { 13227 if (PARSER == null) { synchronized (crosby.binary.Osmformat.Relation.class) { 13228 if (PARSER == null) { 13229 PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); 13230 } 13231 } 13232 } 13233 return PARSER; 13234 } 13235 } 13236 throw new UnsupportedOperationException(); 13237 } 13238 13239 13240 // @@protoc_insertion_point(class_scope:OSMPBF.Relation) 13241 private static final crosby.binary.Osmformat.Relation DEFAULT_INSTANCE; 13434 13242 static { 13435 defaultInstance = new Relation(true); 13436 defaultInstance.initFields(); 13437 } 13438 13439 // @@protoc_insertion_point(class_scope:OSMPBF.Relation) 13243 DEFAULT_INSTANCE = new Relation(); 13244 DEFAULT_INSTANCE.makeImmutable(); 13245 } 13246 13247 public static crosby.binary.Osmformat.Relation getDefaultInstance() { 13248 return DEFAULT_INSTANCE; 13249 } 13250 13251 private static volatile com.google.protobuf.Parser<Relation> PARSER; 13252 13253 public static com.google.protobuf.Parser<Relation> parser() { 13254 return DEFAULT_INSTANCE.getParserForType(); 13255 } 13440 13256 } 13441 13257
Note:
See TracChangeset
for help on using the changeset viewer.