001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// NO CHECKED-IN PROTOBUF GENCODE 003// source: java/dev/enola/thing/thing.proto 004// Protobuf Java Version: 4.32.0 005 006package dev.enola.thing.proto; 007 008/** 009 * Protobuf type {@code dev.enola.thing.TextThings} 010 */ 011@com.google.protobuf.Generated 012public final class TextThings extends 013 com.google.protobuf.GeneratedMessage implements 014 // @@protoc_insertion_point(message_implements:dev.enola.thing.TextThings) 015 TextThingsOrBuilder { 016private static final long serialVersionUID = 0L; 017 static { 018 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( 019 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, 020 /* major= */ 4, 021 /* minor= */ 32, 022 /* patch= */ 0, 023 /* suffix= */ "", 024 TextThings.class.getName()); 025 } 026 // Use TextThings.newBuilder() to construct. 027 private TextThings(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 028 super(builder); 029 } 030 private TextThings() { 031 imports_ = 032 com.google.protobuf.LazyStringArrayList.emptyList(); 033 } 034 035 public static final com.google.protobuf.Descriptors.Descriptor 036 getDescriptor() { 037 return dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_TextThings_descriptor; 038 } 039 040 @SuppressWarnings({"rawtypes"}) 041 @java.lang.Override 042 protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 043 int number) { 044 switch (number) { 045 case 3: 046 return internalGetPrefixes(); 047 case 4: 048 return internalGetThings(); 049 default: 050 throw new RuntimeException( 051 "Invalid map field number: " + number); 052 } 053 } 054 @java.lang.Override 055 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 056 internalGetFieldAccessorTable() { 057 return dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_TextThings_fieldAccessorTable 058 .ensureFieldAccessorsInitialized( 059 dev.enola.thing.proto.TextThings.class, dev.enola.thing.proto.TextThings.Builder.class); 060 } 061 062 public static final int IMPORTS_FIELD_NUMBER = 2; 063 @SuppressWarnings("serial") 064 private com.google.protobuf.LazyStringArrayList imports_ = 065 com.google.protobuf.LazyStringArrayList.emptyList(); 066 /** 067 * <code>repeated string imports = 2;</code> 068 * @return A list containing the imports. 069 */ 070 public com.google.protobuf.ProtocolStringList 071 getImportsList() { 072 return imports_; 073 } 074 /** 075 * <code>repeated string imports = 2;</code> 076 * @return The count of imports. 077 */ 078 public int getImportsCount() { 079 return imports_.size(); 080 } 081 /** 082 * <code>repeated string imports = 2;</code> 083 * @param index The index of the element to return. 084 * @return The imports at the given index. 085 */ 086 public java.lang.String getImports(int index) { 087 return imports_.get(index); 088 } 089 /** 090 * <code>repeated string imports = 2;</code> 091 * @param index The index of the value to return. 092 * @return The bytes of the imports at the given index. 093 */ 094 public com.google.protobuf.ByteString 095 getImportsBytes(int index) { 096 return imports_.getByteString(index); 097 } 098 099 public static final int PREFIXES_FIELD_NUMBER = 3; 100 private static final class PrefixesDefaultEntryHolder { 101 static final com.google.protobuf.MapEntry< 102 java.lang.String, java.lang.String> defaultEntry = 103 com.google.protobuf.MapEntry 104 .<java.lang.String, java.lang.String>newDefaultInstance( 105 dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_TextThings_PrefixesEntry_descriptor, 106 com.google.protobuf.WireFormat.FieldType.STRING, 107 "", 108 com.google.protobuf.WireFormat.FieldType.STRING, 109 ""); 110 } 111 @SuppressWarnings("serial") 112 private com.google.protobuf.MapField< 113 java.lang.String, java.lang.String> prefixes_; 114 private com.google.protobuf.MapField<java.lang.String, java.lang.String> 115 internalGetPrefixes() { 116 if (prefixes_ == null) { 117 return com.google.protobuf.MapField.emptyMapField( 118 PrefixesDefaultEntryHolder.defaultEntry); 119 } 120 return prefixes_; 121 } 122 public int getPrefixesCount() { 123 return internalGetPrefixes().getMap().size(); 124 } 125 /** 126 * <code>map<string, string> prefixes = 3;</code> 127 */ 128 @java.lang.Override 129 public boolean containsPrefixes( 130 java.lang.String key) { 131 if (key == null) { throw new NullPointerException("map key"); } 132 return internalGetPrefixes().getMap().containsKey(key); 133 } 134 /** 135 * Use {@link #getPrefixesMap()} instead. 136 */ 137 @java.lang.Override 138 @java.lang.Deprecated 139 public java.util.Map<java.lang.String, java.lang.String> getPrefixes() { 140 return getPrefixesMap(); 141 } 142 /** 143 * <code>map<string, string> prefixes = 3;</code> 144 */ 145 @java.lang.Override 146 public java.util.Map<java.lang.String, java.lang.String> getPrefixesMap() { 147 return internalGetPrefixes().getMap(); 148 } 149 /** 150 * <code>map<string, string> prefixes = 3;</code> 151 */ 152 @java.lang.Override 153 public /* nullable */ 154java.lang.String getPrefixesOrDefault( 155 java.lang.String key, 156 /* nullable */ 157java.lang.String defaultValue) { 158 if (key == null) { throw new NullPointerException("map key"); } 159 java.util.Map<java.lang.String, java.lang.String> map = 160 internalGetPrefixes().getMap(); 161 return map.containsKey(key) ? map.get(key) : defaultValue; 162 } 163 /** 164 * <code>map<string, string> prefixes = 3;</code> 165 */ 166 @java.lang.Override 167 public java.lang.String getPrefixesOrThrow( 168 java.lang.String key) { 169 if (key == null) { throw new NullPointerException("map key"); } 170 java.util.Map<java.lang.String, java.lang.String> map = 171 internalGetPrefixes().getMap(); 172 if (!map.containsKey(key)) { 173 throw new java.lang.IllegalArgumentException(); 174 } 175 return map.get(key); 176 } 177 178 public static final int THINGS_FIELD_NUMBER = 4; 179 private static final class ThingsDefaultEntryHolder { 180 static final com.google.protobuf.MapEntry< 181 java.lang.String, dev.enola.thing.proto.TextThing> defaultEntry = 182 com.google.protobuf.MapEntry 183 .<java.lang.String, dev.enola.thing.proto.TextThing>newDefaultInstance( 184 dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_TextThings_ThingsEntry_descriptor, 185 com.google.protobuf.WireFormat.FieldType.STRING, 186 "", 187 com.google.protobuf.WireFormat.FieldType.MESSAGE, 188 dev.enola.thing.proto.TextThing.getDefaultInstance()); 189 } 190 @SuppressWarnings("serial") 191 private com.google.protobuf.MapField< 192 java.lang.String, dev.enola.thing.proto.TextThing> things_; 193 private com.google.protobuf.MapField<java.lang.String, dev.enola.thing.proto.TextThing> 194 internalGetThings() { 195 if (things_ == null) { 196 return com.google.protobuf.MapField.emptyMapField( 197 ThingsDefaultEntryHolder.defaultEntry); 198 } 199 return things_; 200 } 201 public int getThingsCount() { 202 return internalGetThings().getMap().size(); 203 } 204 /** 205 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 206 */ 207 @java.lang.Override 208 public boolean containsThings( 209 java.lang.String key) { 210 if (key == null) { throw new NullPointerException("map key"); } 211 return internalGetThings().getMap().containsKey(key); 212 } 213 /** 214 * Use {@link #getThingsMap()} instead. 215 */ 216 @java.lang.Override 217 @java.lang.Deprecated 218 public java.util.Map<java.lang.String, dev.enola.thing.proto.TextThing> getThings() { 219 return getThingsMap(); 220 } 221 /** 222 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 223 */ 224 @java.lang.Override 225 public java.util.Map<java.lang.String, dev.enola.thing.proto.TextThing> getThingsMap() { 226 return internalGetThings().getMap(); 227 } 228 /** 229 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 230 */ 231 @java.lang.Override 232 public /* nullable */ 233dev.enola.thing.proto.TextThing getThingsOrDefault( 234 java.lang.String key, 235 /* nullable */ 236dev.enola.thing.proto.TextThing defaultValue) { 237 if (key == null) { throw new NullPointerException("map key"); } 238 java.util.Map<java.lang.String, dev.enola.thing.proto.TextThing> map = 239 internalGetThings().getMap(); 240 return map.containsKey(key) ? map.get(key) : defaultValue; 241 } 242 /** 243 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 244 */ 245 @java.lang.Override 246 public dev.enola.thing.proto.TextThing getThingsOrThrow( 247 java.lang.String key) { 248 if (key == null) { throw new NullPointerException("map key"); } 249 java.util.Map<java.lang.String, dev.enola.thing.proto.TextThing> map = 250 internalGetThings().getMap(); 251 if (!map.containsKey(key)) { 252 throw new java.lang.IllegalArgumentException(); 253 } 254 return map.get(key); 255 } 256 257 private byte memoizedIsInitialized = -1; 258 @java.lang.Override 259 public final boolean isInitialized() { 260 byte isInitialized = memoizedIsInitialized; 261 if (isInitialized == 1) return true; 262 if (isInitialized == 0) return false; 263 264 memoizedIsInitialized = 1; 265 return true; 266 } 267 268 @java.lang.Override 269 public void writeTo(com.google.protobuf.CodedOutputStream output) 270 throws java.io.IOException { 271 for (int i = 0; i < imports_.size(); i++) { 272 com.google.protobuf.GeneratedMessage.writeString(output, 2, imports_.getRaw(i)); 273 } 274 com.google.protobuf.GeneratedMessage 275 .serializeStringMapTo( 276 output, 277 internalGetPrefixes(), 278 PrefixesDefaultEntryHolder.defaultEntry, 279 3); 280 com.google.protobuf.GeneratedMessage 281 .serializeStringMapTo( 282 output, 283 internalGetThings(), 284 ThingsDefaultEntryHolder.defaultEntry, 285 4); 286 getUnknownFields().writeTo(output); 287 } 288 289 @java.lang.Override 290 public int getSerializedSize() { 291 int size = memoizedSize; 292 if (size != -1) return size; 293 294 size = 0; 295 { 296 int dataSize = 0; 297 for (int i = 0; i < imports_.size(); i++) { 298 dataSize += computeStringSizeNoTag(imports_.getRaw(i)); 299 } 300 size += dataSize; 301 size += 1 * getImportsList().size(); 302 } 303 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry 304 : internalGetPrefixes().getMap().entrySet()) { 305 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> 306 prefixes__ = PrefixesDefaultEntryHolder.defaultEntry.newBuilderForType() 307 .setKey(entry.getKey()) 308 .setValue(entry.getValue()) 309 .build(); 310 size += com.google.protobuf.CodedOutputStream 311 .computeMessageSize(3, prefixes__); 312 } 313 for (java.util.Map.Entry<java.lang.String, dev.enola.thing.proto.TextThing> entry 314 : internalGetThings().getMap().entrySet()) { 315 com.google.protobuf.MapEntry<java.lang.String, dev.enola.thing.proto.TextThing> 316 things__ = ThingsDefaultEntryHolder.defaultEntry.newBuilderForType() 317 .setKey(entry.getKey()) 318 .setValue(entry.getValue()) 319 .build(); 320 size += com.google.protobuf.CodedOutputStream 321 .computeMessageSize(4, things__); 322 } 323 size += getUnknownFields().getSerializedSize(); 324 memoizedSize = size; 325 return size; 326 } 327 328 @java.lang.Override 329 public boolean equals(final java.lang.Object obj) { 330 if (obj == this) { 331 return true; 332 } 333 if (!(obj instanceof dev.enola.thing.proto.TextThings)) { 334 return super.equals(obj); 335 } 336 dev.enola.thing.proto.TextThings other = (dev.enola.thing.proto.TextThings) obj; 337 338 if (!getImportsList() 339 .equals(other.getImportsList())) return false; 340 if (!internalGetPrefixes().equals( 341 other.internalGetPrefixes())) return false; 342 if (!internalGetThings().equals( 343 other.internalGetThings())) return false; 344 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 345 return true; 346 } 347 348 @java.lang.Override 349 public int hashCode() { 350 if (memoizedHashCode != 0) { 351 return memoizedHashCode; 352 } 353 int hash = 41; 354 hash = (19 * hash) + getDescriptor().hashCode(); 355 if (getImportsCount() > 0) { 356 hash = (37 * hash) + IMPORTS_FIELD_NUMBER; 357 hash = (53 * hash) + getImportsList().hashCode(); 358 } 359 if (!internalGetPrefixes().getMap().isEmpty()) { 360 hash = (37 * hash) + PREFIXES_FIELD_NUMBER; 361 hash = (53 * hash) + internalGetPrefixes().hashCode(); 362 } 363 if (!internalGetThings().getMap().isEmpty()) { 364 hash = (37 * hash) + THINGS_FIELD_NUMBER; 365 hash = (53 * hash) + internalGetThings().hashCode(); 366 } 367 hash = (29 * hash) + getUnknownFields().hashCode(); 368 memoizedHashCode = hash; 369 return hash; 370 } 371 372 public static dev.enola.thing.proto.TextThings parseFrom( 373 java.nio.ByteBuffer data) 374 throws com.google.protobuf.InvalidProtocolBufferException { 375 return PARSER.parseFrom(data); 376 } 377 public static dev.enola.thing.proto.TextThings parseFrom( 378 java.nio.ByteBuffer data, 379 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 380 throws com.google.protobuf.InvalidProtocolBufferException { 381 return PARSER.parseFrom(data, extensionRegistry); 382 } 383 public static dev.enola.thing.proto.TextThings parseFrom( 384 com.google.protobuf.ByteString data) 385 throws com.google.protobuf.InvalidProtocolBufferException { 386 return PARSER.parseFrom(data); 387 } 388 public static dev.enola.thing.proto.TextThings parseFrom( 389 com.google.protobuf.ByteString data, 390 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 391 throws com.google.protobuf.InvalidProtocolBufferException { 392 return PARSER.parseFrom(data, extensionRegistry); 393 } 394 public static dev.enola.thing.proto.TextThings parseFrom(byte[] data) 395 throws com.google.protobuf.InvalidProtocolBufferException { 396 return PARSER.parseFrom(data); 397 } 398 public static dev.enola.thing.proto.TextThings parseFrom( 399 byte[] data, 400 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 401 throws com.google.protobuf.InvalidProtocolBufferException { 402 return PARSER.parseFrom(data, extensionRegistry); 403 } 404 public static dev.enola.thing.proto.TextThings parseFrom(java.io.InputStream input) 405 throws java.io.IOException { 406 return com.google.protobuf.GeneratedMessage 407 .parseWithIOException(PARSER, input); 408 } 409 public static dev.enola.thing.proto.TextThings parseFrom( 410 java.io.InputStream input, 411 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 412 throws java.io.IOException { 413 return com.google.protobuf.GeneratedMessage 414 .parseWithIOException(PARSER, input, extensionRegistry); 415 } 416 417 public static dev.enola.thing.proto.TextThings parseDelimitedFrom(java.io.InputStream input) 418 throws java.io.IOException { 419 return com.google.protobuf.GeneratedMessage 420 .parseDelimitedWithIOException(PARSER, input); 421 } 422 423 public static dev.enola.thing.proto.TextThings parseDelimitedFrom( 424 java.io.InputStream input, 425 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 426 throws java.io.IOException { 427 return com.google.protobuf.GeneratedMessage 428 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 429 } 430 public static dev.enola.thing.proto.TextThings parseFrom( 431 com.google.protobuf.CodedInputStream input) 432 throws java.io.IOException { 433 return com.google.protobuf.GeneratedMessage 434 .parseWithIOException(PARSER, input); 435 } 436 public static dev.enola.thing.proto.TextThings parseFrom( 437 com.google.protobuf.CodedInputStream input, 438 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 439 throws java.io.IOException { 440 return com.google.protobuf.GeneratedMessage 441 .parseWithIOException(PARSER, input, extensionRegistry); 442 } 443 444 @java.lang.Override 445 public Builder newBuilderForType() { return newBuilder(); } 446 public static Builder newBuilder() { 447 return DEFAULT_INSTANCE.toBuilder(); 448 } 449 public static Builder newBuilder(dev.enola.thing.proto.TextThings prototype) { 450 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 451 } 452 @java.lang.Override 453 public Builder toBuilder() { 454 return this == DEFAULT_INSTANCE 455 ? new Builder() : new Builder().mergeFrom(this); 456 } 457 458 @java.lang.Override 459 protected Builder newBuilderForType( 460 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 461 Builder builder = new Builder(parent); 462 return builder; 463 } 464 /** 465 * Protobuf type {@code dev.enola.thing.TextThings} 466 */ 467 public static final class Builder extends 468 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 469 // @@protoc_insertion_point(builder_implements:dev.enola.thing.TextThings) 470 dev.enola.thing.proto.TextThingsOrBuilder { 471 public static final com.google.protobuf.Descriptors.Descriptor 472 getDescriptor() { 473 return dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_TextThings_descriptor; 474 } 475 476 @SuppressWarnings({"rawtypes"}) 477 protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 478 int number) { 479 switch (number) { 480 case 3: 481 return internalGetPrefixes(); 482 case 4: 483 return internalGetThings(); 484 default: 485 throw new RuntimeException( 486 "Invalid map field number: " + number); 487 } 488 } 489 @SuppressWarnings({"rawtypes"}) 490 protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( 491 int number) { 492 switch (number) { 493 case 3: 494 return internalGetMutablePrefixes(); 495 case 4: 496 return internalGetMutableThings(); 497 default: 498 throw new RuntimeException( 499 "Invalid map field number: " + number); 500 } 501 } 502 @java.lang.Override 503 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 504 internalGetFieldAccessorTable() { 505 return dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_TextThings_fieldAccessorTable 506 .ensureFieldAccessorsInitialized( 507 dev.enola.thing.proto.TextThings.class, dev.enola.thing.proto.TextThings.Builder.class); 508 } 509 510 // Construct using dev.enola.thing.proto.TextThings.newBuilder() 511 private Builder() { 512 513 } 514 515 private Builder( 516 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 517 super(parent); 518 519 } 520 @java.lang.Override 521 public Builder clear() { 522 super.clear(); 523 bitField0_ = 0; 524 imports_ = 525 com.google.protobuf.LazyStringArrayList.emptyList(); 526 internalGetMutablePrefixes().clear(); 527 internalGetMutableThings().clear(); 528 return this; 529 } 530 531 @java.lang.Override 532 public com.google.protobuf.Descriptors.Descriptor 533 getDescriptorForType() { 534 return dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_TextThings_descriptor; 535 } 536 537 @java.lang.Override 538 public dev.enola.thing.proto.TextThings getDefaultInstanceForType() { 539 return dev.enola.thing.proto.TextThings.getDefaultInstance(); 540 } 541 542 @java.lang.Override 543 public dev.enola.thing.proto.TextThings build() { 544 dev.enola.thing.proto.TextThings result = buildPartial(); 545 if (!result.isInitialized()) { 546 throw newUninitializedMessageException(result); 547 } 548 return result; 549 } 550 551 @java.lang.Override 552 public dev.enola.thing.proto.TextThings buildPartial() { 553 dev.enola.thing.proto.TextThings result = new dev.enola.thing.proto.TextThings(this); 554 if (bitField0_ != 0) { buildPartial0(result); } 555 onBuilt(); 556 return result; 557 } 558 559 private void buildPartial0(dev.enola.thing.proto.TextThings result) { 560 int from_bitField0_ = bitField0_; 561 if (((from_bitField0_ & 0x00000001) != 0)) { 562 imports_.makeImmutable(); 563 result.imports_ = imports_; 564 } 565 if (((from_bitField0_ & 0x00000002) != 0)) { 566 result.prefixes_ = internalGetPrefixes(); 567 result.prefixes_.makeImmutable(); 568 } 569 if (((from_bitField0_ & 0x00000004) != 0)) { 570 result.things_ = internalGetThings().build(ThingsDefaultEntryHolder.defaultEntry); 571 } 572 } 573 574 @java.lang.Override 575 public Builder mergeFrom(com.google.protobuf.Message other) { 576 if (other instanceof dev.enola.thing.proto.TextThings) { 577 return mergeFrom((dev.enola.thing.proto.TextThings)other); 578 } else { 579 super.mergeFrom(other); 580 return this; 581 } 582 } 583 584 public Builder mergeFrom(dev.enola.thing.proto.TextThings other) { 585 if (other == dev.enola.thing.proto.TextThings.getDefaultInstance()) return this; 586 if (!other.imports_.isEmpty()) { 587 if (imports_.isEmpty()) { 588 imports_ = other.imports_; 589 bitField0_ |= 0x00000001; 590 } else { 591 ensureImportsIsMutable(); 592 imports_.addAll(other.imports_); 593 } 594 onChanged(); 595 } 596 internalGetMutablePrefixes().mergeFrom( 597 other.internalGetPrefixes()); 598 bitField0_ |= 0x00000002; 599 internalGetMutableThings().mergeFrom( 600 other.internalGetThings()); 601 bitField0_ |= 0x00000004; 602 this.mergeUnknownFields(other.getUnknownFields()); 603 onChanged(); 604 return this; 605 } 606 607 @java.lang.Override 608 public final boolean isInitialized() { 609 return true; 610 } 611 612 @java.lang.Override 613 public Builder mergeFrom( 614 com.google.protobuf.CodedInputStream input, 615 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 616 throws java.io.IOException { 617 if (extensionRegistry == null) { 618 throw new java.lang.NullPointerException(); 619 } 620 try { 621 boolean done = false; 622 while (!done) { 623 int tag = input.readTag(); 624 switch (tag) { 625 case 0: 626 done = true; 627 break; 628 case 18: { 629 java.lang.String s = input.readStringRequireUtf8(); 630 ensureImportsIsMutable(); 631 imports_.add(s); 632 break; 633 } // case 18 634 case 26: { 635 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> 636 prefixes__ = input.readMessage( 637 PrefixesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); 638 internalGetMutablePrefixes().getMutableMap().put( 639 prefixes__.getKey(), prefixes__.getValue()); 640 bitField0_ |= 0x00000002; 641 break; 642 } // case 26 643 case 34: { 644 com.google.protobuf.MapEntry<java.lang.String, dev.enola.thing.proto.TextThing> 645 things__ = input.readMessage( 646 ThingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); 647 internalGetMutableThings().ensureBuilderMap().put( 648 things__.getKey(), things__.getValue()); 649 bitField0_ |= 0x00000004; 650 break; 651 } // case 34 652 default: { 653 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 654 done = true; // was an endgroup tag 655 } 656 break; 657 } // default: 658 } // switch (tag) 659 } // while (!done) 660 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 661 throw e.unwrapIOException(); 662 } finally { 663 onChanged(); 664 } // finally 665 return this; 666 } 667 private int bitField0_; 668 669 private com.google.protobuf.LazyStringArrayList imports_ = 670 com.google.protobuf.LazyStringArrayList.emptyList(); 671 private void ensureImportsIsMutable() { 672 if (!imports_.isModifiable()) { 673 imports_ = new com.google.protobuf.LazyStringArrayList(imports_); 674 } 675 bitField0_ |= 0x00000001; 676 } 677 /** 678 * <code>repeated string imports = 2;</code> 679 * @return A list containing the imports. 680 */ 681 public com.google.protobuf.ProtocolStringList 682 getImportsList() { 683 imports_.makeImmutable(); 684 return imports_; 685 } 686 /** 687 * <code>repeated string imports = 2;</code> 688 * @return The count of imports. 689 */ 690 public int getImportsCount() { 691 return imports_.size(); 692 } 693 /** 694 * <code>repeated string imports = 2;</code> 695 * @param index The index of the element to return. 696 * @return The imports at the given index. 697 */ 698 public java.lang.String getImports(int index) { 699 return imports_.get(index); 700 } 701 /** 702 * <code>repeated string imports = 2;</code> 703 * @param index The index of the value to return. 704 * @return The bytes of the imports at the given index. 705 */ 706 public com.google.protobuf.ByteString 707 getImportsBytes(int index) { 708 return imports_.getByteString(index); 709 } 710 /** 711 * <code>repeated string imports = 2;</code> 712 * @param index The index to set the value at. 713 * @param value The imports to set. 714 * @return This builder for chaining. 715 */ 716 public Builder setImports( 717 int index, java.lang.String value) { 718 if (value == null) { throw new NullPointerException(); } 719 ensureImportsIsMutable(); 720 imports_.set(index, value); 721 bitField0_ |= 0x00000001; 722 onChanged(); 723 return this; 724 } 725 /** 726 * <code>repeated string imports = 2;</code> 727 * @param value The imports to add. 728 * @return This builder for chaining. 729 */ 730 public Builder addImports( 731 java.lang.String value) { 732 if (value == null) { throw new NullPointerException(); } 733 ensureImportsIsMutable(); 734 imports_.add(value); 735 bitField0_ |= 0x00000001; 736 onChanged(); 737 return this; 738 } 739 /** 740 * <code>repeated string imports = 2;</code> 741 * @param values The imports to add. 742 * @return This builder for chaining. 743 */ 744 public Builder addAllImports( 745 java.lang.Iterable<java.lang.String> values) { 746 ensureImportsIsMutable(); 747 com.google.protobuf.AbstractMessageLite.Builder.addAll( 748 values, imports_); 749 bitField0_ |= 0x00000001; 750 onChanged(); 751 return this; 752 } 753 /** 754 * <code>repeated string imports = 2;</code> 755 * @return This builder for chaining. 756 */ 757 public Builder clearImports() { 758 imports_ = 759 com.google.protobuf.LazyStringArrayList.emptyList(); 760 bitField0_ = (bitField0_ & ~0x00000001);; 761 onChanged(); 762 return this; 763 } 764 /** 765 * <code>repeated string imports = 2;</code> 766 * @param value The bytes of the imports to add. 767 * @return This builder for chaining. 768 */ 769 public Builder addImportsBytes( 770 com.google.protobuf.ByteString value) { 771 if (value == null) { throw new NullPointerException(); } 772 checkByteStringIsUtf8(value); 773 ensureImportsIsMutable(); 774 imports_.add(value); 775 bitField0_ |= 0x00000001; 776 onChanged(); 777 return this; 778 } 779 780 private com.google.protobuf.MapField< 781 java.lang.String, java.lang.String> prefixes_; 782 private com.google.protobuf.MapField<java.lang.String, java.lang.String> 783 internalGetPrefixes() { 784 if (prefixes_ == null) { 785 return com.google.protobuf.MapField.emptyMapField( 786 PrefixesDefaultEntryHolder.defaultEntry); 787 } 788 return prefixes_; 789 } 790 private com.google.protobuf.MapField<java.lang.String, java.lang.String> 791 internalGetMutablePrefixes() { 792 if (prefixes_ == null) { 793 prefixes_ = com.google.protobuf.MapField.newMapField( 794 PrefixesDefaultEntryHolder.defaultEntry); 795 } 796 if (!prefixes_.isMutable()) { 797 prefixes_ = prefixes_.copy(); 798 } 799 bitField0_ |= 0x00000002; 800 onChanged(); 801 return prefixes_; 802 } 803 public int getPrefixesCount() { 804 return internalGetPrefixes().getMap().size(); 805 } 806 /** 807 * <code>map<string, string> prefixes = 3;</code> 808 */ 809 @java.lang.Override 810 public boolean containsPrefixes( 811 java.lang.String key) { 812 if (key == null) { throw new NullPointerException("map key"); } 813 return internalGetPrefixes().getMap().containsKey(key); 814 } 815 /** 816 * Use {@link #getPrefixesMap()} instead. 817 */ 818 @java.lang.Override 819 @java.lang.Deprecated 820 public java.util.Map<java.lang.String, java.lang.String> getPrefixes() { 821 return getPrefixesMap(); 822 } 823 /** 824 * <code>map<string, string> prefixes = 3;</code> 825 */ 826 @java.lang.Override 827 public java.util.Map<java.lang.String, java.lang.String> getPrefixesMap() { 828 return internalGetPrefixes().getMap(); 829 } 830 /** 831 * <code>map<string, string> prefixes = 3;</code> 832 */ 833 @java.lang.Override 834 public /* nullable */ 835java.lang.String getPrefixesOrDefault( 836 java.lang.String key, 837 /* nullable */ 838java.lang.String defaultValue) { 839 if (key == null) { throw new NullPointerException("map key"); } 840 java.util.Map<java.lang.String, java.lang.String> map = 841 internalGetPrefixes().getMap(); 842 return map.containsKey(key) ? map.get(key) : defaultValue; 843 } 844 /** 845 * <code>map<string, string> prefixes = 3;</code> 846 */ 847 @java.lang.Override 848 public java.lang.String getPrefixesOrThrow( 849 java.lang.String key) { 850 if (key == null) { throw new NullPointerException("map key"); } 851 java.util.Map<java.lang.String, java.lang.String> map = 852 internalGetPrefixes().getMap(); 853 if (!map.containsKey(key)) { 854 throw new java.lang.IllegalArgumentException(); 855 } 856 return map.get(key); 857 } 858 public Builder clearPrefixes() { 859 bitField0_ = (bitField0_ & ~0x00000002); 860 internalGetMutablePrefixes().getMutableMap() 861 .clear(); 862 return this; 863 } 864 /** 865 * <code>map<string, string> prefixes = 3;</code> 866 */ 867 public Builder removePrefixes( 868 java.lang.String key) { 869 if (key == null) { throw new NullPointerException("map key"); } 870 internalGetMutablePrefixes().getMutableMap() 871 .remove(key); 872 return this; 873 } 874 /** 875 * Use alternate mutation accessors instead. 876 */ 877 @java.lang.Deprecated 878 public java.util.Map<java.lang.String, java.lang.String> 879 getMutablePrefixes() { 880 bitField0_ |= 0x00000002; 881 return internalGetMutablePrefixes().getMutableMap(); 882 } 883 /** 884 * <code>map<string, string> prefixes = 3;</code> 885 */ 886 public Builder putPrefixes( 887 java.lang.String key, 888 java.lang.String value) { 889 if (key == null) { throw new NullPointerException("map key"); } 890 if (value == null) { throw new NullPointerException("map value"); } 891 internalGetMutablePrefixes().getMutableMap() 892 .put(key, value); 893 bitField0_ |= 0x00000002; 894 return this; 895 } 896 /** 897 * <code>map<string, string> prefixes = 3;</code> 898 */ 899 public Builder putAllPrefixes( 900 java.util.Map<java.lang.String, java.lang.String> values) { 901 internalGetMutablePrefixes().getMutableMap() 902 .putAll(values); 903 bitField0_ |= 0x00000002; 904 return this; 905 } 906 907 private static final class ThingsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, dev.enola.thing.proto.TextThingOrBuilder, dev.enola.thing.proto.TextThing> { 908 @java.lang.Override 909 public dev.enola.thing.proto.TextThing build(dev.enola.thing.proto.TextThingOrBuilder val) { 910 if (val instanceof dev.enola.thing.proto.TextThing) { return (dev.enola.thing.proto.TextThing) val; } 911 return ((dev.enola.thing.proto.TextThing.Builder) val).build(); 912 } 913 914 @java.lang.Override 915 public com.google.protobuf.MapEntry<java.lang.String, dev.enola.thing.proto.TextThing> defaultEntry() { 916 return ThingsDefaultEntryHolder.defaultEntry; 917 } 918 }; 919 private static final ThingsConverter thingsConverter = new ThingsConverter(); 920 921 private com.google.protobuf.MapFieldBuilder< 922 java.lang.String, dev.enola.thing.proto.TextThingOrBuilder, dev.enola.thing.proto.TextThing, dev.enola.thing.proto.TextThing.Builder> things_; 923 private com.google.protobuf.MapFieldBuilder<java.lang.String, dev.enola.thing.proto.TextThingOrBuilder, dev.enola.thing.proto.TextThing, dev.enola.thing.proto.TextThing.Builder> 924 internalGetThings() { 925 if (things_ == null) { 926 return new com.google.protobuf.MapFieldBuilder<>(thingsConverter); 927 } 928 return things_; 929 } 930 private com.google.protobuf.MapFieldBuilder<java.lang.String, dev.enola.thing.proto.TextThingOrBuilder, dev.enola.thing.proto.TextThing, dev.enola.thing.proto.TextThing.Builder> 931 internalGetMutableThings() { 932 if (things_ == null) { 933 things_ = new com.google.protobuf.MapFieldBuilder<>(thingsConverter); 934 } 935 bitField0_ |= 0x00000004; 936 onChanged(); 937 return things_; 938 } 939 public int getThingsCount() { 940 return internalGetThings().ensureBuilderMap().size(); 941 } 942 /** 943 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 944 */ 945 @java.lang.Override 946 public boolean containsThings( 947 java.lang.String key) { 948 if (key == null) { throw new NullPointerException("map key"); } 949 return internalGetThings().ensureBuilderMap().containsKey(key); 950 } 951 /** 952 * Use {@link #getThingsMap()} instead. 953 */ 954 @java.lang.Override 955 @java.lang.Deprecated 956 public java.util.Map<java.lang.String, dev.enola.thing.proto.TextThing> getThings() { 957 return getThingsMap(); 958 } 959 /** 960 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 961 */ 962 @java.lang.Override 963 public java.util.Map<java.lang.String, dev.enola.thing.proto.TextThing> getThingsMap() { 964 return internalGetThings().getImmutableMap(); 965 } 966 /** 967 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 968 */ 969 @java.lang.Override 970 public /* nullable */ 971dev.enola.thing.proto.TextThing getThingsOrDefault( 972 java.lang.String key, 973 /* nullable */ 974dev.enola.thing.proto.TextThing defaultValue) { 975 if (key == null) { throw new NullPointerException("map key"); } 976 java.util.Map<java.lang.String, dev.enola.thing.proto.TextThingOrBuilder> map = internalGetMutableThings().ensureBuilderMap(); 977 return map.containsKey(key) ? thingsConverter.build(map.get(key)) : defaultValue; 978 } 979 /** 980 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 981 */ 982 @java.lang.Override 983 public dev.enola.thing.proto.TextThing getThingsOrThrow( 984 java.lang.String key) { 985 if (key == null) { throw new NullPointerException("map key"); } 986 java.util.Map<java.lang.String, dev.enola.thing.proto.TextThingOrBuilder> map = internalGetMutableThings().ensureBuilderMap(); 987 if (!map.containsKey(key)) { 988 throw new java.lang.IllegalArgumentException(); 989 } 990 return thingsConverter.build(map.get(key)); 991 } 992 public Builder clearThings() { 993 bitField0_ = (bitField0_ & ~0x00000004); 994 internalGetMutableThings().clear(); 995 return this; 996 } 997 /** 998 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 999 */ 1000 public Builder removeThings( 1001 java.lang.String key) { 1002 if (key == null) { throw new NullPointerException("map key"); } 1003 internalGetMutableThings().ensureBuilderMap() 1004 .remove(key); 1005 return this; 1006 } 1007 /** 1008 * Use alternate mutation accessors instead. 1009 */ 1010 @java.lang.Deprecated 1011 public java.util.Map<java.lang.String, dev.enola.thing.proto.TextThing> 1012 getMutableThings() { 1013 bitField0_ |= 0x00000004; 1014 return internalGetMutableThings().ensureMessageMap(); 1015 } 1016 /** 1017 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 1018 */ 1019 public Builder putThings( 1020 java.lang.String key, 1021 dev.enola.thing.proto.TextThing value) { 1022 if (key == null) { throw new NullPointerException("map key"); } 1023 if (value == null) { throw new NullPointerException("map value"); } 1024 internalGetMutableThings().ensureBuilderMap() 1025 .put(key, value); 1026 bitField0_ |= 0x00000004; 1027 return this; 1028 } 1029 /** 1030 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 1031 */ 1032 public Builder putAllThings( 1033 java.util.Map<java.lang.String, dev.enola.thing.proto.TextThing> values) { 1034 for (java.util.Map.Entry<java.lang.String, dev.enola.thing.proto.TextThing> e : values.entrySet()) { 1035 if (e.getKey() == null || e.getValue() == null) { 1036 throw new NullPointerException(); 1037 } 1038 } 1039 internalGetMutableThings().ensureBuilderMap() 1040 .putAll(values); 1041 bitField0_ |= 0x00000004; 1042 return this; 1043 } 1044 /** 1045 * <code>map<string, .dev.enola.thing.TextThing> things = 4;</code> 1046 */ 1047 public dev.enola.thing.proto.TextThing.Builder putThingsBuilderIfAbsent( 1048 java.lang.String key) { 1049 java.util.Map<java.lang.String, dev.enola.thing.proto.TextThingOrBuilder> builderMap = internalGetMutableThings().ensureBuilderMap(); 1050 dev.enola.thing.proto.TextThingOrBuilder entry = builderMap.get(key); 1051 if (entry == null) { 1052 entry = dev.enola.thing.proto.TextThing.newBuilder(); 1053 builderMap.put(key, entry); 1054 } 1055 if (entry instanceof dev.enola.thing.proto.TextThing) { 1056 entry = ((dev.enola.thing.proto.TextThing) entry).toBuilder(); 1057 builderMap.put(key, entry); 1058 } 1059 return (dev.enola.thing.proto.TextThing.Builder) entry; 1060 } 1061 1062 // @@protoc_insertion_point(builder_scope:dev.enola.thing.TextThings) 1063 } 1064 1065 // @@protoc_insertion_point(class_scope:dev.enola.thing.TextThings) 1066 private static final dev.enola.thing.proto.TextThings DEFAULT_INSTANCE; 1067 static { 1068 DEFAULT_INSTANCE = new dev.enola.thing.proto.TextThings(); 1069 } 1070 1071 public static dev.enola.thing.proto.TextThings getDefaultInstance() { 1072 return DEFAULT_INSTANCE; 1073 } 1074 1075 private static final com.google.protobuf.Parser<TextThings> 1076 PARSER = new com.google.protobuf.AbstractParser<TextThings>() { 1077 @java.lang.Override 1078 public TextThings parsePartialFrom( 1079 com.google.protobuf.CodedInputStream input, 1080 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1081 throws com.google.protobuf.InvalidProtocolBufferException { 1082 Builder builder = newBuilder(); 1083 try { 1084 builder.mergeFrom(input, extensionRegistry); 1085 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1086 throw e.setUnfinishedMessage(builder.buildPartial()); 1087 } catch (com.google.protobuf.UninitializedMessageException e) { 1088 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1089 } catch (java.io.IOException e) { 1090 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1091 .setUnfinishedMessage(builder.buildPartial()); 1092 } 1093 return builder.buildPartial(); 1094 } 1095 }; 1096 1097 public static com.google.protobuf.Parser<TextThings> parser() { 1098 return PARSER; 1099 } 1100 1101 @java.lang.Override 1102 public com.google.protobuf.Parser<TextThings> getParserForType() { 1103 return PARSER; 1104 } 1105 1106 @java.lang.Override 1107 public dev.enola.thing.proto.TextThings getDefaultInstanceForType() { 1108 return DEFAULT_INSTANCE; 1109 } 1110 1111} 1112