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.ThingMetadata} 010 */ 011@com.google.protobuf.Generated 012public final class ThingMetadata extends 013 com.google.protobuf.GeneratedMessage implements 014 // @@protoc_insertion_point(message_implements:dev.enola.thing.ThingMetadata) 015 ThingMetadataOrBuilder { 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 ThingMetadata.class.getName()); 025 } 026 // Use ThingMetadata.newBuilder() to construct. 027 private ThingMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 028 super(builder); 029 } 030 private ThingMetadata() { 031 id_ = ""; 032 label_ = ""; 033 descriptionHtml_ = ""; 034 imageHtml_ = ""; 035 } 036 037 public static final com.google.protobuf.Descriptors.Descriptor 038 getDescriptor() { 039 return dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_ThingMetadata_descriptor; 040 } 041 042 @java.lang.Override 043 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 044 internalGetFieldAccessorTable() { 045 return dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_ThingMetadata_fieldAccessorTable 046 .ensureFieldAccessorsInitialized( 047 dev.enola.thing.proto.ThingMetadata.class, dev.enola.thing.proto.ThingMetadata.Builder.class); 048 } 049 050 public static final int ID_FIELD_NUMBER = 1; 051 @SuppressWarnings("serial") 052 private volatile java.lang.Object id_ = ""; 053 /** 054 * <code>string id = 1;</code> 055 * @return The id. 056 */ 057 @java.lang.Override 058 public java.lang.String getId() { 059 java.lang.Object ref = id_; 060 if (ref instanceof java.lang.String) { 061 return (java.lang.String) ref; 062 } else { 063 com.google.protobuf.ByteString bs = 064 (com.google.protobuf.ByteString) ref; 065 java.lang.String s = bs.toStringUtf8(); 066 id_ = s; 067 return s; 068 } 069 } 070 /** 071 * <code>string id = 1;</code> 072 * @return The bytes for id. 073 */ 074 @java.lang.Override 075 public com.google.protobuf.ByteString 076 getIdBytes() { 077 java.lang.Object ref = id_; 078 if (ref instanceof java.lang.String) { 079 com.google.protobuf.ByteString b = 080 com.google.protobuf.ByteString.copyFromUtf8( 081 (java.lang.String) ref); 082 id_ = b; 083 return b; 084 } else { 085 return (com.google.protobuf.ByteString) ref; 086 } 087 } 088 089 public static final int LABEL_FIELD_NUMBER = 2; 090 @SuppressWarnings("serial") 091 private volatile java.lang.Object label_ = ""; 092 /** 093 * <code>string label = 2;</code> 094 * @return The label. 095 */ 096 @java.lang.Override 097 public java.lang.String getLabel() { 098 java.lang.Object ref = label_; 099 if (ref instanceof java.lang.String) { 100 return (java.lang.String) ref; 101 } else { 102 com.google.protobuf.ByteString bs = 103 (com.google.protobuf.ByteString) ref; 104 java.lang.String s = bs.toStringUtf8(); 105 label_ = s; 106 return s; 107 } 108 } 109 /** 110 * <code>string label = 2;</code> 111 * @return The bytes for label. 112 */ 113 @java.lang.Override 114 public com.google.protobuf.ByteString 115 getLabelBytes() { 116 java.lang.Object ref = label_; 117 if (ref instanceof java.lang.String) { 118 com.google.protobuf.ByteString b = 119 com.google.protobuf.ByteString.copyFromUtf8( 120 (java.lang.String) ref); 121 label_ = b; 122 return b; 123 } else { 124 return (com.google.protobuf.ByteString) ref; 125 } 126 } 127 128 public static final int DESCRIPTION_HTML_FIELD_NUMBER = 3; 129 @SuppressWarnings("serial") 130 private volatile java.lang.Object descriptionHtml_ = ""; 131 /** 132 * <code>string description_html = 3;</code> 133 * @return The descriptionHtml. 134 */ 135 @java.lang.Override 136 public java.lang.String getDescriptionHtml() { 137 java.lang.Object ref = descriptionHtml_; 138 if (ref instanceof java.lang.String) { 139 return (java.lang.String) ref; 140 } else { 141 com.google.protobuf.ByteString bs = 142 (com.google.protobuf.ByteString) ref; 143 java.lang.String s = bs.toStringUtf8(); 144 descriptionHtml_ = s; 145 return s; 146 } 147 } 148 /** 149 * <code>string description_html = 3;</code> 150 * @return The bytes for descriptionHtml. 151 */ 152 @java.lang.Override 153 public com.google.protobuf.ByteString 154 getDescriptionHtmlBytes() { 155 java.lang.Object ref = descriptionHtml_; 156 if (ref instanceof java.lang.String) { 157 com.google.protobuf.ByteString b = 158 com.google.protobuf.ByteString.copyFromUtf8( 159 (java.lang.String) ref); 160 descriptionHtml_ = b; 161 return b; 162 } else { 163 return (com.google.protobuf.ByteString) ref; 164 } 165 } 166 167 public static final int IMAGE_HTML_FIELD_NUMBER = 4; 168 @SuppressWarnings("serial") 169 private volatile java.lang.Object imageHtml_ = ""; 170 /** 171 * <code>string image_html = 4;</code> 172 * @return The imageHtml. 173 */ 174 @java.lang.Override 175 public java.lang.String getImageHtml() { 176 java.lang.Object ref = imageHtml_; 177 if (ref instanceof java.lang.String) { 178 return (java.lang.String) ref; 179 } else { 180 com.google.protobuf.ByteString bs = 181 (com.google.protobuf.ByteString) ref; 182 java.lang.String s = bs.toStringUtf8(); 183 imageHtml_ = s; 184 return s; 185 } 186 } 187 /** 188 * <code>string image_html = 4;</code> 189 * @return The bytes for imageHtml. 190 */ 191 @java.lang.Override 192 public com.google.protobuf.ByteString 193 getImageHtmlBytes() { 194 java.lang.Object ref = imageHtml_; 195 if (ref instanceof java.lang.String) { 196 com.google.protobuf.ByteString b = 197 com.google.protobuf.ByteString.copyFromUtf8( 198 (java.lang.String) ref); 199 imageHtml_ = b; 200 return b; 201 } else { 202 return (com.google.protobuf.ByteString) ref; 203 } 204 } 205 206 private byte memoizedIsInitialized = -1; 207 @java.lang.Override 208 public final boolean isInitialized() { 209 byte isInitialized = memoizedIsInitialized; 210 if (isInitialized == 1) return true; 211 if (isInitialized == 0) return false; 212 213 memoizedIsInitialized = 1; 214 return true; 215 } 216 217 @java.lang.Override 218 public void writeTo(com.google.protobuf.CodedOutputStream output) 219 throws java.io.IOException { 220 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { 221 com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); 222 } 223 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { 224 com.google.protobuf.GeneratedMessage.writeString(output, 2, label_); 225 } 226 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(descriptionHtml_)) { 227 com.google.protobuf.GeneratedMessage.writeString(output, 3, descriptionHtml_); 228 } 229 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(imageHtml_)) { 230 com.google.protobuf.GeneratedMessage.writeString(output, 4, imageHtml_); 231 } 232 getUnknownFields().writeTo(output); 233 } 234 235 @java.lang.Override 236 public int getSerializedSize() { 237 int size = memoizedSize; 238 if (size != -1) return size; 239 240 size = 0; 241 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { 242 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); 243 } 244 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { 245 size += com.google.protobuf.GeneratedMessage.computeStringSize(2, label_); 246 } 247 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(descriptionHtml_)) { 248 size += com.google.protobuf.GeneratedMessage.computeStringSize(3, descriptionHtml_); 249 } 250 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(imageHtml_)) { 251 size += com.google.protobuf.GeneratedMessage.computeStringSize(4, imageHtml_); 252 } 253 size += getUnknownFields().getSerializedSize(); 254 memoizedSize = size; 255 return size; 256 } 257 258 @java.lang.Override 259 public boolean equals(final java.lang.Object obj) { 260 if (obj == this) { 261 return true; 262 } 263 if (!(obj instanceof dev.enola.thing.proto.ThingMetadata)) { 264 return super.equals(obj); 265 } 266 dev.enola.thing.proto.ThingMetadata other = (dev.enola.thing.proto.ThingMetadata) obj; 267 268 if (!getId() 269 .equals(other.getId())) return false; 270 if (!getLabel() 271 .equals(other.getLabel())) return false; 272 if (!getDescriptionHtml() 273 .equals(other.getDescriptionHtml())) return false; 274 if (!getImageHtml() 275 .equals(other.getImageHtml())) return false; 276 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 277 return true; 278 } 279 280 @java.lang.Override 281 public int hashCode() { 282 if (memoizedHashCode != 0) { 283 return memoizedHashCode; 284 } 285 int hash = 41; 286 hash = (19 * hash) + getDescriptor().hashCode(); 287 hash = (37 * hash) + ID_FIELD_NUMBER; 288 hash = (53 * hash) + getId().hashCode(); 289 hash = (37 * hash) + LABEL_FIELD_NUMBER; 290 hash = (53 * hash) + getLabel().hashCode(); 291 hash = (37 * hash) + DESCRIPTION_HTML_FIELD_NUMBER; 292 hash = (53 * hash) + getDescriptionHtml().hashCode(); 293 hash = (37 * hash) + IMAGE_HTML_FIELD_NUMBER; 294 hash = (53 * hash) + getImageHtml().hashCode(); 295 hash = (29 * hash) + getUnknownFields().hashCode(); 296 memoizedHashCode = hash; 297 return hash; 298 } 299 300 public static dev.enola.thing.proto.ThingMetadata parseFrom( 301 java.nio.ByteBuffer data) 302 throws com.google.protobuf.InvalidProtocolBufferException { 303 return PARSER.parseFrom(data); 304 } 305 public static dev.enola.thing.proto.ThingMetadata parseFrom( 306 java.nio.ByteBuffer data, 307 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 308 throws com.google.protobuf.InvalidProtocolBufferException { 309 return PARSER.parseFrom(data, extensionRegistry); 310 } 311 public static dev.enola.thing.proto.ThingMetadata parseFrom( 312 com.google.protobuf.ByteString data) 313 throws com.google.protobuf.InvalidProtocolBufferException { 314 return PARSER.parseFrom(data); 315 } 316 public static dev.enola.thing.proto.ThingMetadata parseFrom( 317 com.google.protobuf.ByteString data, 318 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 319 throws com.google.protobuf.InvalidProtocolBufferException { 320 return PARSER.parseFrom(data, extensionRegistry); 321 } 322 public static dev.enola.thing.proto.ThingMetadata parseFrom(byte[] data) 323 throws com.google.protobuf.InvalidProtocolBufferException { 324 return PARSER.parseFrom(data); 325 } 326 public static dev.enola.thing.proto.ThingMetadata parseFrom( 327 byte[] data, 328 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 329 throws com.google.protobuf.InvalidProtocolBufferException { 330 return PARSER.parseFrom(data, extensionRegistry); 331 } 332 public static dev.enola.thing.proto.ThingMetadata parseFrom(java.io.InputStream input) 333 throws java.io.IOException { 334 return com.google.protobuf.GeneratedMessage 335 .parseWithIOException(PARSER, input); 336 } 337 public static dev.enola.thing.proto.ThingMetadata parseFrom( 338 java.io.InputStream input, 339 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 340 throws java.io.IOException { 341 return com.google.protobuf.GeneratedMessage 342 .parseWithIOException(PARSER, input, extensionRegistry); 343 } 344 345 public static dev.enola.thing.proto.ThingMetadata parseDelimitedFrom(java.io.InputStream input) 346 throws java.io.IOException { 347 return com.google.protobuf.GeneratedMessage 348 .parseDelimitedWithIOException(PARSER, input); 349 } 350 351 public static dev.enola.thing.proto.ThingMetadata parseDelimitedFrom( 352 java.io.InputStream input, 353 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 354 throws java.io.IOException { 355 return com.google.protobuf.GeneratedMessage 356 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 357 } 358 public static dev.enola.thing.proto.ThingMetadata parseFrom( 359 com.google.protobuf.CodedInputStream input) 360 throws java.io.IOException { 361 return com.google.protobuf.GeneratedMessage 362 .parseWithIOException(PARSER, input); 363 } 364 public static dev.enola.thing.proto.ThingMetadata parseFrom( 365 com.google.protobuf.CodedInputStream input, 366 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 367 throws java.io.IOException { 368 return com.google.protobuf.GeneratedMessage 369 .parseWithIOException(PARSER, input, extensionRegistry); 370 } 371 372 @java.lang.Override 373 public Builder newBuilderForType() { return newBuilder(); } 374 public static Builder newBuilder() { 375 return DEFAULT_INSTANCE.toBuilder(); 376 } 377 public static Builder newBuilder(dev.enola.thing.proto.ThingMetadata prototype) { 378 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 379 } 380 @java.lang.Override 381 public Builder toBuilder() { 382 return this == DEFAULT_INSTANCE 383 ? new Builder() : new Builder().mergeFrom(this); 384 } 385 386 @java.lang.Override 387 protected Builder newBuilderForType( 388 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 389 Builder builder = new Builder(parent); 390 return builder; 391 } 392 /** 393 * Protobuf type {@code dev.enola.thing.ThingMetadata} 394 */ 395 public static final class Builder extends 396 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 397 // @@protoc_insertion_point(builder_implements:dev.enola.thing.ThingMetadata) 398 dev.enola.thing.proto.ThingMetadataOrBuilder { 399 public static final com.google.protobuf.Descriptors.Descriptor 400 getDescriptor() { 401 return dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_ThingMetadata_descriptor; 402 } 403 404 @java.lang.Override 405 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 406 internalGetFieldAccessorTable() { 407 return dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_ThingMetadata_fieldAccessorTable 408 .ensureFieldAccessorsInitialized( 409 dev.enola.thing.proto.ThingMetadata.class, dev.enola.thing.proto.ThingMetadata.Builder.class); 410 } 411 412 // Construct using dev.enola.thing.proto.ThingMetadata.newBuilder() 413 private Builder() { 414 415 } 416 417 private Builder( 418 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 419 super(parent); 420 421 } 422 @java.lang.Override 423 public Builder clear() { 424 super.clear(); 425 bitField0_ = 0; 426 id_ = ""; 427 label_ = ""; 428 descriptionHtml_ = ""; 429 imageHtml_ = ""; 430 return this; 431 } 432 433 @java.lang.Override 434 public com.google.protobuf.Descriptors.Descriptor 435 getDescriptorForType() { 436 return dev.enola.thing.proto.ThingOuterClass.internal_static_dev_enola_thing_ThingMetadata_descriptor; 437 } 438 439 @java.lang.Override 440 public dev.enola.thing.proto.ThingMetadata getDefaultInstanceForType() { 441 return dev.enola.thing.proto.ThingMetadata.getDefaultInstance(); 442 } 443 444 @java.lang.Override 445 public dev.enola.thing.proto.ThingMetadata build() { 446 dev.enola.thing.proto.ThingMetadata result = buildPartial(); 447 if (!result.isInitialized()) { 448 throw newUninitializedMessageException(result); 449 } 450 return result; 451 } 452 453 @java.lang.Override 454 public dev.enola.thing.proto.ThingMetadata buildPartial() { 455 dev.enola.thing.proto.ThingMetadata result = new dev.enola.thing.proto.ThingMetadata(this); 456 if (bitField0_ != 0) { buildPartial0(result); } 457 onBuilt(); 458 return result; 459 } 460 461 private void buildPartial0(dev.enola.thing.proto.ThingMetadata result) { 462 int from_bitField0_ = bitField0_; 463 if (((from_bitField0_ & 0x00000001) != 0)) { 464 result.id_ = id_; 465 } 466 if (((from_bitField0_ & 0x00000002) != 0)) { 467 result.label_ = label_; 468 } 469 if (((from_bitField0_ & 0x00000004) != 0)) { 470 result.descriptionHtml_ = descriptionHtml_; 471 } 472 if (((from_bitField0_ & 0x00000008) != 0)) { 473 result.imageHtml_ = imageHtml_; 474 } 475 } 476 477 @java.lang.Override 478 public Builder mergeFrom(com.google.protobuf.Message other) { 479 if (other instanceof dev.enola.thing.proto.ThingMetadata) { 480 return mergeFrom((dev.enola.thing.proto.ThingMetadata)other); 481 } else { 482 super.mergeFrom(other); 483 return this; 484 } 485 } 486 487 public Builder mergeFrom(dev.enola.thing.proto.ThingMetadata other) { 488 if (other == dev.enola.thing.proto.ThingMetadata.getDefaultInstance()) return this; 489 if (!other.getId().isEmpty()) { 490 id_ = other.id_; 491 bitField0_ |= 0x00000001; 492 onChanged(); 493 } 494 if (!other.getLabel().isEmpty()) { 495 label_ = other.label_; 496 bitField0_ |= 0x00000002; 497 onChanged(); 498 } 499 if (!other.getDescriptionHtml().isEmpty()) { 500 descriptionHtml_ = other.descriptionHtml_; 501 bitField0_ |= 0x00000004; 502 onChanged(); 503 } 504 if (!other.getImageHtml().isEmpty()) { 505 imageHtml_ = other.imageHtml_; 506 bitField0_ |= 0x00000008; 507 onChanged(); 508 } 509 this.mergeUnknownFields(other.getUnknownFields()); 510 onChanged(); 511 return this; 512 } 513 514 @java.lang.Override 515 public final boolean isInitialized() { 516 return true; 517 } 518 519 @java.lang.Override 520 public Builder mergeFrom( 521 com.google.protobuf.CodedInputStream input, 522 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 523 throws java.io.IOException { 524 if (extensionRegistry == null) { 525 throw new java.lang.NullPointerException(); 526 } 527 try { 528 boolean done = false; 529 while (!done) { 530 int tag = input.readTag(); 531 switch (tag) { 532 case 0: 533 done = true; 534 break; 535 case 10: { 536 id_ = input.readStringRequireUtf8(); 537 bitField0_ |= 0x00000001; 538 break; 539 } // case 10 540 case 18: { 541 label_ = input.readStringRequireUtf8(); 542 bitField0_ |= 0x00000002; 543 break; 544 } // case 18 545 case 26: { 546 descriptionHtml_ = input.readStringRequireUtf8(); 547 bitField0_ |= 0x00000004; 548 break; 549 } // case 26 550 case 34: { 551 imageHtml_ = input.readStringRequireUtf8(); 552 bitField0_ |= 0x00000008; 553 break; 554 } // case 34 555 default: { 556 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 557 done = true; // was an endgroup tag 558 } 559 break; 560 } // default: 561 } // switch (tag) 562 } // while (!done) 563 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 564 throw e.unwrapIOException(); 565 } finally { 566 onChanged(); 567 } // finally 568 return this; 569 } 570 private int bitField0_; 571 572 private java.lang.Object id_ = ""; 573 /** 574 * <code>string id = 1;</code> 575 * @return The id. 576 */ 577 public java.lang.String getId() { 578 java.lang.Object ref = id_; 579 if (!(ref instanceof java.lang.String)) { 580 com.google.protobuf.ByteString bs = 581 (com.google.protobuf.ByteString) ref; 582 java.lang.String s = bs.toStringUtf8(); 583 id_ = s; 584 return s; 585 } else { 586 return (java.lang.String) ref; 587 } 588 } 589 /** 590 * <code>string id = 1;</code> 591 * @return The bytes for id. 592 */ 593 public com.google.protobuf.ByteString 594 getIdBytes() { 595 java.lang.Object ref = id_; 596 if (ref instanceof String) { 597 com.google.protobuf.ByteString b = 598 com.google.protobuf.ByteString.copyFromUtf8( 599 (java.lang.String) ref); 600 id_ = b; 601 return b; 602 } else { 603 return (com.google.protobuf.ByteString) ref; 604 } 605 } 606 /** 607 * <code>string id = 1;</code> 608 * @param value The id to set. 609 * @return This builder for chaining. 610 */ 611 public Builder setId( 612 java.lang.String value) { 613 if (value == null) { throw new NullPointerException(); } 614 id_ = value; 615 bitField0_ |= 0x00000001; 616 onChanged(); 617 return this; 618 } 619 /** 620 * <code>string id = 1;</code> 621 * @return This builder for chaining. 622 */ 623 public Builder clearId() { 624 id_ = getDefaultInstance().getId(); 625 bitField0_ = (bitField0_ & ~0x00000001); 626 onChanged(); 627 return this; 628 } 629 /** 630 * <code>string id = 1;</code> 631 * @param value The bytes for id to set. 632 * @return This builder for chaining. 633 */ 634 public Builder setIdBytes( 635 com.google.protobuf.ByteString value) { 636 if (value == null) { throw new NullPointerException(); } 637 checkByteStringIsUtf8(value); 638 id_ = value; 639 bitField0_ |= 0x00000001; 640 onChanged(); 641 return this; 642 } 643 644 private java.lang.Object label_ = ""; 645 /** 646 * <code>string label = 2;</code> 647 * @return The label. 648 */ 649 public java.lang.String getLabel() { 650 java.lang.Object ref = label_; 651 if (!(ref instanceof java.lang.String)) { 652 com.google.protobuf.ByteString bs = 653 (com.google.protobuf.ByteString) ref; 654 java.lang.String s = bs.toStringUtf8(); 655 label_ = s; 656 return s; 657 } else { 658 return (java.lang.String) ref; 659 } 660 } 661 /** 662 * <code>string label = 2;</code> 663 * @return The bytes for label. 664 */ 665 public com.google.protobuf.ByteString 666 getLabelBytes() { 667 java.lang.Object ref = label_; 668 if (ref instanceof String) { 669 com.google.protobuf.ByteString b = 670 com.google.protobuf.ByteString.copyFromUtf8( 671 (java.lang.String) ref); 672 label_ = b; 673 return b; 674 } else { 675 return (com.google.protobuf.ByteString) ref; 676 } 677 } 678 /** 679 * <code>string label = 2;</code> 680 * @param value The label to set. 681 * @return This builder for chaining. 682 */ 683 public Builder setLabel( 684 java.lang.String value) { 685 if (value == null) { throw new NullPointerException(); } 686 label_ = value; 687 bitField0_ |= 0x00000002; 688 onChanged(); 689 return this; 690 } 691 /** 692 * <code>string label = 2;</code> 693 * @return This builder for chaining. 694 */ 695 public Builder clearLabel() { 696 label_ = getDefaultInstance().getLabel(); 697 bitField0_ = (bitField0_ & ~0x00000002); 698 onChanged(); 699 return this; 700 } 701 /** 702 * <code>string label = 2;</code> 703 * @param value The bytes for label to set. 704 * @return This builder for chaining. 705 */ 706 public Builder setLabelBytes( 707 com.google.protobuf.ByteString value) { 708 if (value == null) { throw new NullPointerException(); } 709 checkByteStringIsUtf8(value); 710 label_ = value; 711 bitField0_ |= 0x00000002; 712 onChanged(); 713 return this; 714 } 715 716 private java.lang.Object descriptionHtml_ = ""; 717 /** 718 * <code>string description_html = 3;</code> 719 * @return The descriptionHtml. 720 */ 721 public java.lang.String getDescriptionHtml() { 722 java.lang.Object ref = descriptionHtml_; 723 if (!(ref instanceof java.lang.String)) { 724 com.google.protobuf.ByteString bs = 725 (com.google.protobuf.ByteString) ref; 726 java.lang.String s = bs.toStringUtf8(); 727 descriptionHtml_ = s; 728 return s; 729 } else { 730 return (java.lang.String) ref; 731 } 732 } 733 /** 734 * <code>string description_html = 3;</code> 735 * @return The bytes for descriptionHtml. 736 */ 737 public com.google.protobuf.ByteString 738 getDescriptionHtmlBytes() { 739 java.lang.Object ref = descriptionHtml_; 740 if (ref instanceof String) { 741 com.google.protobuf.ByteString b = 742 com.google.protobuf.ByteString.copyFromUtf8( 743 (java.lang.String) ref); 744 descriptionHtml_ = b; 745 return b; 746 } else { 747 return (com.google.protobuf.ByteString) ref; 748 } 749 } 750 /** 751 * <code>string description_html = 3;</code> 752 * @param value The descriptionHtml to set. 753 * @return This builder for chaining. 754 */ 755 public Builder setDescriptionHtml( 756 java.lang.String value) { 757 if (value == null) { throw new NullPointerException(); } 758 descriptionHtml_ = value; 759 bitField0_ |= 0x00000004; 760 onChanged(); 761 return this; 762 } 763 /** 764 * <code>string description_html = 3;</code> 765 * @return This builder for chaining. 766 */ 767 public Builder clearDescriptionHtml() { 768 descriptionHtml_ = getDefaultInstance().getDescriptionHtml(); 769 bitField0_ = (bitField0_ & ~0x00000004); 770 onChanged(); 771 return this; 772 } 773 /** 774 * <code>string description_html = 3;</code> 775 * @param value The bytes for descriptionHtml to set. 776 * @return This builder for chaining. 777 */ 778 public Builder setDescriptionHtmlBytes( 779 com.google.protobuf.ByteString value) { 780 if (value == null) { throw new NullPointerException(); } 781 checkByteStringIsUtf8(value); 782 descriptionHtml_ = value; 783 bitField0_ |= 0x00000004; 784 onChanged(); 785 return this; 786 } 787 788 private java.lang.Object imageHtml_ = ""; 789 /** 790 * <code>string image_html = 4;</code> 791 * @return The imageHtml. 792 */ 793 public java.lang.String getImageHtml() { 794 java.lang.Object ref = imageHtml_; 795 if (!(ref instanceof java.lang.String)) { 796 com.google.protobuf.ByteString bs = 797 (com.google.protobuf.ByteString) ref; 798 java.lang.String s = bs.toStringUtf8(); 799 imageHtml_ = s; 800 return s; 801 } else { 802 return (java.lang.String) ref; 803 } 804 } 805 /** 806 * <code>string image_html = 4;</code> 807 * @return The bytes for imageHtml. 808 */ 809 public com.google.protobuf.ByteString 810 getImageHtmlBytes() { 811 java.lang.Object ref = imageHtml_; 812 if (ref instanceof String) { 813 com.google.protobuf.ByteString b = 814 com.google.protobuf.ByteString.copyFromUtf8( 815 (java.lang.String) ref); 816 imageHtml_ = b; 817 return b; 818 } else { 819 return (com.google.protobuf.ByteString) ref; 820 } 821 } 822 /** 823 * <code>string image_html = 4;</code> 824 * @param value The imageHtml to set. 825 * @return This builder for chaining. 826 */ 827 public Builder setImageHtml( 828 java.lang.String value) { 829 if (value == null) { throw new NullPointerException(); } 830 imageHtml_ = value; 831 bitField0_ |= 0x00000008; 832 onChanged(); 833 return this; 834 } 835 /** 836 * <code>string image_html = 4;</code> 837 * @return This builder for chaining. 838 */ 839 public Builder clearImageHtml() { 840 imageHtml_ = getDefaultInstance().getImageHtml(); 841 bitField0_ = (bitField0_ & ~0x00000008); 842 onChanged(); 843 return this; 844 } 845 /** 846 * <code>string image_html = 4;</code> 847 * @param value The bytes for imageHtml to set. 848 * @return This builder for chaining. 849 */ 850 public Builder setImageHtmlBytes( 851 com.google.protobuf.ByteString value) { 852 if (value == null) { throw new NullPointerException(); } 853 checkByteStringIsUtf8(value); 854 imageHtml_ = value; 855 bitField0_ |= 0x00000008; 856 onChanged(); 857 return this; 858 } 859 860 // @@protoc_insertion_point(builder_scope:dev.enola.thing.ThingMetadata) 861 } 862 863 // @@protoc_insertion_point(class_scope:dev.enola.thing.ThingMetadata) 864 private static final dev.enola.thing.proto.ThingMetadata DEFAULT_INSTANCE; 865 static { 866 DEFAULT_INSTANCE = new dev.enola.thing.proto.ThingMetadata(); 867 } 868 869 public static dev.enola.thing.proto.ThingMetadata getDefaultInstance() { 870 return DEFAULT_INSTANCE; 871 } 872 873 private static final com.google.protobuf.Parser<ThingMetadata> 874 PARSER = new com.google.protobuf.AbstractParser<ThingMetadata>() { 875 @java.lang.Override 876 public ThingMetadata parsePartialFrom( 877 com.google.protobuf.CodedInputStream input, 878 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 879 throws com.google.protobuf.InvalidProtocolBufferException { 880 Builder builder = newBuilder(); 881 try { 882 builder.mergeFrom(input, extensionRegistry); 883 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 884 throw e.setUnfinishedMessage(builder.buildPartial()); 885 } catch (com.google.protobuf.UninitializedMessageException e) { 886 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 887 } catch (java.io.IOException e) { 888 throw new com.google.protobuf.InvalidProtocolBufferException(e) 889 .setUnfinishedMessage(builder.buildPartial()); 890 } 891 return builder.buildPartial(); 892 } 893 }; 894 895 public static com.google.protobuf.Parser<ThingMetadata> parser() { 896 return PARSER; 897 } 898 899 @java.lang.Override 900 public com.google.protobuf.Parser<ThingMetadata> getParserForType() { 901 return PARSER; 902 } 903 904 @java.lang.Override 905 public dev.enola.thing.proto.ThingMetadata getDefaultInstanceForType() { 906 return DEFAULT_INSTANCE; 907 } 908 909} 910