001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// NO CHECKED-IN PROTOBUF GENCODE 003// source: java/dev/enola/core/util/enola_util.proto 004// Protobuf Java Version: 4.32.0 005 006package dev.enola.core.util.proto; 007 008/** 009 * <pre> 010 * TODO Log isn't actually used, just yet... 011 * </pre> 012 * 013 * Protobuf type {@code dev.enola.core.util.Log} 014 */ 015@com.google.protobuf.Generated 016public final class Log extends 017 com.google.protobuf.GeneratedMessage implements 018 // @@protoc_insertion_point(message_implements:dev.enola.core.util.Log) 019 LogOrBuilder { 020private static final long serialVersionUID = 0L; 021 static { 022 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( 023 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, 024 /* major= */ 4, 025 /* minor= */ 32, 026 /* patch= */ 0, 027 /* suffix= */ "", 028 Log.class.getName()); 029 } 030 // Use Log.newBuilder() to construct. 031 private Log(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 032 super(builder); 033 } 034 private Log() { 035 } 036 037 public static final com.google.protobuf.Descriptors.Descriptor 038 getDescriptor() { 039 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_descriptor; 040 } 041 042 @java.lang.Override 043 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 044 internalGetFieldAccessorTable() { 045 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_fieldAccessorTable 046 .ensureFieldAccessorsInitialized( 047 dev.enola.core.util.proto.Log.class, dev.enola.core.util.proto.Log.Builder.class); 048 } 049 050 /** 051 * <pre> 052 * Inspired by 053 * https://cloud.google.com/service-infrastructure/docs/service-control/reference/rpc/google.logging.type, 054 * but could be extended here, as there is no real direct connection between 055 * this and GCP logging. 056 * </pre> 057 * 058 * Protobuf enum {@code dev.enola.core.util.Log.Severity} 059 */ 060 public enum Severity 061 implements com.google.protobuf.ProtocolMessageEnum { 062 /** 063 * <pre> 064 * The log entry has no assigned severity level. 065 * </pre> 066 * 067 * <code>SEVERITY_UNSPECIFIED = 0;</code> 068 */ 069 SEVERITY_UNSPECIFIED(0), 070 /** 071 * <pre> 072 * Debug or trace information. 073 * </pre> 074 * 075 * <code>SEVERITY_DEBUG = 100;</code> 076 */ 077 SEVERITY_DEBUG(100), 078 /** 079 * <pre> 080 * Routine information, such as ongoing status or performance. 081 * </pre> 082 * 083 * <code>SEVERITY_INFO = 200;</code> 084 */ 085 SEVERITY_INFO(200), 086 /** 087 * <pre> 088 * Normal but significant events, such as start up, shut down, or a 089 * configuration change. 090 * </pre> 091 * 092 * <code>SEVERITY_NOTICE = 300;</code> 093 */ 094 SEVERITY_NOTICE(300), 095 /** 096 * <pre> 097 * Warning events might cause problems. 098 * </pre> 099 * 100 * <code>SEVERITY_WARNING = 400;</code> 101 */ 102 SEVERITY_WARNING(400), 103 /** 104 * <pre> 105 * Error events are likely to cause problems. 106 * </pre> 107 * 108 * <code>SEVERITY_ERROR = 500;</code> 109 */ 110 SEVERITY_ERROR(500), 111 /** 112 * <pre> 113 * Critical events cause more severe problems or outages. 114 * </pre> 115 * 116 * <code>SEVERITY_CRITICAL = 600;</code> 117 */ 118 SEVERITY_CRITICAL(600), 119 /** 120 * <pre> 121 * A person must take an action immediately. 122 * </pre> 123 * 124 * <code>SEVERITY_ALERT = 700;</code> 125 */ 126 SEVERITY_ALERT(700), 127 /** 128 * <pre> 129 * One or more systems are unusable. 130 * </pre> 131 * 132 * <code>SEVERITY_EMERGENCY = 800;</code> 133 */ 134 SEVERITY_EMERGENCY(800), 135 UNRECOGNIZED(-1), 136 ; 137 138 static { 139 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( 140 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, 141 /* major= */ 4, 142 /* minor= */ 32, 143 /* patch= */ 0, 144 /* suffix= */ "", 145 Severity.class.getName()); 146 } 147 /** 148 * <pre> 149 * The log entry has no assigned severity level. 150 * </pre> 151 * 152 * <code>SEVERITY_UNSPECIFIED = 0;</code> 153 */ 154 public static final int SEVERITY_UNSPECIFIED_VALUE = 0; 155 /** 156 * <pre> 157 * Debug or trace information. 158 * </pre> 159 * 160 * <code>SEVERITY_DEBUG = 100;</code> 161 */ 162 public static final int SEVERITY_DEBUG_VALUE = 100; 163 /** 164 * <pre> 165 * Routine information, such as ongoing status or performance. 166 * </pre> 167 * 168 * <code>SEVERITY_INFO = 200;</code> 169 */ 170 public static final int SEVERITY_INFO_VALUE = 200; 171 /** 172 * <pre> 173 * Normal but significant events, such as start up, shut down, or a 174 * configuration change. 175 * </pre> 176 * 177 * <code>SEVERITY_NOTICE = 300;</code> 178 */ 179 public static final int SEVERITY_NOTICE_VALUE = 300; 180 /** 181 * <pre> 182 * Warning events might cause problems. 183 * </pre> 184 * 185 * <code>SEVERITY_WARNING = 400;</code> 186 */ 187 public static final int SEVERITY_WARNING_VALUE = 400; 188 /** 189 * <pre> 190 * Error events are likely to cause problems. 191 * </pre> 192 * 193 * <code>SEVERITY_ERROR = 500;</code> 194 */ 195 public static final int SEVERITY_ERROR_VALUE = 500; 196 /** 197 * <pre> 198 * Critical events cause more severe problems or outages. 199 * </pre> 200 * 201 * <code>SEVERITY_CRITICAL = 600;</code> 202 */ 203 public static final int SEVERITY_CRITICAL_VALUE = 600; 204 /** 205 * <pre> 206 * A person must take an action immediately. 207 * </pre> 208 * 209 * <code>SEVERITY_ALERT = 700;</code> 210 */ 211 public static final int SEVERITY_ALERT_VALUE = 700; 212 /** 213 * <pre> 214 * One or more systems are unusable. 215 * </pre> 216 * 217 * <code>SEVERITY_EMERGENCY = 800;</code> 218 */ 219 public static final int SEVERITY_EMERGENCY_VALUE = 800; 220 221 222 public final int getNumber() { 223 if (this == UNRECOGNIZED) { 224 throw new java.lang.IllegalArgumentException( 225 "Can't get the number of an unknown enum value."); 226 } 227 return value; 228 } 229 230 /** 231 * @param value The numeric wire value of the corresponding enum entry. 232 * @return The enum associated with the given numeric wire value. 233 * @deprecated Use {@link #forNumber(int)} instead. 234 */ 235 @java.lang.Deprecated 236 public static Severity valueOf(int value) { 237 return forNumber(value); 238 } 239 240 /** 241 * @param value The numeric wire value of the corresponding enum entry. 242 * @return The enum associated with the given numeric wire value. 243 */ 244 public static Severity forNumber(int value) { 245 switch (value) { 246 case 0: return SEVERITY_UNSPECIFIED; 247 case 100: return SEVERITY_DEBUG; 248 case 200: return SEVERITY_INFO; 249 case 300: return SEVERITY_NOTICE; 250 case 400: return SEVERITY_WARNING; 251 case 500: return SEVERITY_ERROR; 252 case 600: return SEVERITY_CRITICAL; 253 case 700: return SEVERITY_ALERT; 254 case 800: return SEVERITY_EMERGENCY; 255 default: return null; 256 } 257 } 258 259 public static com.google.protobuf.Internal.EnumLiteMap<Severity> 260 internalGetValueMap() { 261 return internalValueMap; 262 } 263 private static final com.google.protobuf.Internal.EnumLiteMap< 264 Severity> internalValueMap = 265 new com.google.protobuf.Internal.EnumLiteMap<Severity>() { 266 public Severity findValueByNumber(int number) { 267 return Severity.forNumber(number); 268 } 269 }; 270 271 public final com.google.protobuf.Descriptors.EnumValueDescriptor 272 getValueDescriptor() { 273 if (this == UNRECOGNIZED) { 274 throw new java.lang.IllegalStateException( 275 "Can't get the descriptor of an unrecognized enum value."); 276 } 277 return getDescriptor().getValues().get(ordinal()); 278 } 279 public final com.google.protobuf.Descriptors.EnumDescriptor 280 getDescriptorForType() { 281 return getDescriptor(); 282 } 283 public static com.google.protobuf.Descriptors.EnumDescriptor 284 getDescriptor() { 285 return dev.enola.core.util.proto.Log.getDescriptor().getEnumTypes().get(0); 286 } 287 288 private static final Severity[] VALUES = values(); 289 290 public static Severity valueOf( 291 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 292 if (desc.getType() != getDescriptor()) { 293 throw new java.lang.IllegalArgumentException( 294 "EnumValueDescriptor is not for this type."); 295 } 296 if (desc.getIndex() == -1) { 297 return UNRECOGNIZED; 298 } 299 return VALUES[desc.getIndex()]; 300 } 301 302 private final int value; 303 304 private Severity(int value) { 305 this.value = value; 306 } 307 308 // @@protoc_insertion_point(enum_scope:dev.enola.core.util.Log.Severity) 309 } 310 311 public interface InlineOrBuilder extends 312 // @@protoc_insertion_point(interface_extends:dev.enola.core.util.Log.Inline) 313 com.google.protobuf.MessageOrBuilder { 314 315 /** 316 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 317 */ 318 java.util.List<dev.enola.core.util.proto.Log.Entry> 319 getEntriesList(); 320 /** 321 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 322 */ 323 dev.enola.core.util.proto.Log.Entry getEntries(int index); 324 /** 325 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 326 */ 327 int getEntriesCount(); 328 /** 329 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 330 */ 331 java.util.List<? extends dev.enola.core.util.proto.Log.EntryOrBuilder> 332 getEntriesOrBuilderList(); 333 /** 334 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 335 */ 336 dev.enola.core.util.proto.Log.EntryOrBuilder getEntriesOrBuilder( 337 int index); 338 } 339 /** 340 * Protobuf type {@code dev.enola.core.util.Log.Inline} 341 */ 342 public static final class Inline extends 343 com.google.protobuf.GeneratedMessage implements 344 // @@protoc_insertion_point(message_implements:dev.enola.core.util.Log.Inline) 345 InlineOrBuilder { 346 private static final long serialVersionUID = 0L; 347 static { 348 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( 349 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, 350 /* major= */ 4, 351 /* minor= */ 32, 352 /* patch= */ 0, 353 /* suffix= */ "", 354 Inline.class.getName()); 355 } 356 // Use Inline.newBuilder() to construct. 357 private Inline(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 358 super(builder); 359 } 360 private Inline() { 361 entries_ = java.util.Collections.emptyList(); 362 } 363 364 public static final com.google.protobuf.Descriptors.Descriptor 365 getDescriptor() { 366 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_Inline_descriptor; 367 } 368 369 @java.lang.Override 370 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 371 internalGetFieldAccessorTable() { 372 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_Inline_fieldAccessorTable 373 .ensureFieldAccessorsInitialized( 374 dev.enola.core.util.proto.Log.Inline.class, dev.enola.core.util.proto.Log.Inline.Builder.class); 375 } 376 377 public static final int ENTRIES_FIELD_NUMBER = 1; 378 @SuppressWarnings("serial") 379 private java.util.List<dev.enola.core.util.proto.Log.Entry> entries_; 380 /** 381 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 382 */ 383 @java.lang.Override 384 public java.util.List<dev.enola.core.util.proto.Log.Entry> getEntriesList() { 385 return entries_; 386 } 387 /** 388 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 389 */ 390 @java.lang.Override 391 public java.util.List<? extends dev.enola.core.util.proto.Log.EntryOrBuilder> 392 getEntriesOrBuilderList() { 393 return entries_; 394 } 395 /** 396 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 397 */ 398 @java.lang.Override 399 public int getEntriesCount() { 400 return entries_.size(); 401 } 402 /** 403 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 404 */ 405 @java.lang.Override 406 public dev.enola.core.util.proto.Log.Entry getEntries(int index) { 407 return entries_.get(index); 408 } 409 /** 410 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 411 */ 412 @java.lang.Override 413 public dev.enola.core.util.proto.Log.EntryOrBuilder getEntriesOrBuilder( 414 int index) { 415 return entries_.get(index); 416 } 417 418 private byte memoizedIsInitialized = -1; 419 @java.lang.Override 420 public final boolean isInitialized() { 421 byte isInitialized = memoizedIsInitialized; 422 if (isInitialized == 1) return true; 423 if (isInitialized == 0) return false; 424 425 memoizedIsInitialized = 1; 426 return true; 427 } 428 429 @java.lang.Override 430 public void writeTo(com.google.protobuf.CodedOutputStream output) 431 throws java.io.IOException { 432 for (int i = 0; i < entries_.size(); i++) { 433 output.writeMessage(1, entries_.get(i)); 434 } 435 getUnknownFields().writeTo(output); 436 } 437 438 @java.lang.Override 439 public int getSerializedSize() { 440 int size = memoizedSize; 441 if (size != -1) return size; 442 443 size = 0; 444 for (int i = 0; i < entries_.size(); i++) { 445 size += com.google.protobuf.CodedOutputStream 446 .computeMessageSize(1, entries_.get(i)); 447 } 448 size += getUnknownFields().getSerializedSize(); 449 memoizedSize = size; 450 return size; 451 } 452 453 @java.lang.Override 454 public boolean equals(final java.lang.Object obj) { 455 if (obj == this) { 456 return true; 457 } 458 if (!(obj instanceof dev.enola.core.util.proto.Log.Inline)) { 459 return super.equals(obj); 460 } 461 dev.enola.core.util.proto.Log.Inline other = (dev.enola.core.util.proto.Log.Inline) obj; 462 463 if (!getEntriesList() 464 .equals(other.getEntriesList())) return false; 465 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 466 return true; 467 } 468 469 @java.lang.Override 470 public int hashCode() { 471 if (memoizedHashCode != 0) { 472 return memoizedHashCode; 473 } 474 int hash = 41; 475 hash = (19 * hash) + getDescriptor().hashCode(); 476 if (getEntriesCount() > 0) { 477 hash = (37 * hash) + ENTRIES_FIELD_NUMBER; 478 hash = (53 * hash) + getEntriesList().hashCode(); 479 } 480 hash = (29 * hash) + getUnknownFields().hashCode(); 481 memoizedHashCode = hash; 482 return hash; 483 } 484 485 public static dev.enola.core.util.proto.Log.Inline parseFrom( 486 java.nio.ByteBuffer data) 487 throws com.google.protobuf.InvalidProtocolBufferException { 488 return PARSER.parseFrom(data); 489 } 490 public static dev.enola.core.util.proto.Log.Inline parseFrom( 491 java.nio.ByteBuffer data, 492 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 493 throws com.google.protobuf.InvalidProtocolBufferException { 494 return PARSER.parseFrom(data, extensionRegistry); 495 } 496 public static dev.enola.core.util.proto.Log.Inline parseFrom( 497 com.google.protobuf.ByteString data) 498 throws com.google.protobuf.InvalidProtocolBufferException { 499 return PARSER.parseFrom(data); 500 } 501 public static dev.enola.core.util.proto.Log.Inline parseFrom( 502 com.google.protobuf.ByteString data, 503 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 504 throws com.google.protobuf.InvalidProtocolBufferException { 505 return PARSER.parseFrom(data, extensionRegistry); 506 } 507 public static dev.enola.core.util.proto.Log.Inline parseFrom(byte[] data) 508 throws com.google.protobuf.InvalidProtocolBufferException { 509 return PARSER.parseFrom(data); 510 } 511 public static dev.enola.core.util.proto.Log.Inline parseFrom( 512 byte[] data, 513 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 514 throws com.google.protobuf.InvalidProtocolBufferException { 515 return PARSER.parseFrom(data, extensionRegistry); 516 } 517 public static dev.enola.core.util.proto.Log.Inline parseFrom(java.io.InputStream input) 518 throws java.io.IOException { 519 return com.google.protobuf.GeneratedMessage 520 .parseWithIOException(PARSER, input); 521 } 522 public static dev.enola.core.util.proto.Log.Inline parseFrom( 523 java.io.InputStream input, 524 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 525 throws java.io.IOException { 526 return com.google.protobuf.GeneratedMessage 527 .parseWithIOException(PARSER, input, extensionRegistry); 528 } 529 530 public static dev.enola.core.util.proto.Log.Inline parseDelimitedFrom(java.io.InputStream input) 531 throws java.io.IOException { 532 return com.google.protobuf.GeneratedMessage 533 .parseDelimitedWithIOException(PARSER, input); 534 } 535 536 public static dev.enola.core.util.proto.Log.Inline parseDelimitedFrom( 537 java.io.InputStream input, 538 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 539 throws java.io.IOException { 540 return com.google.protobuf.GeneratedMessage 541 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 542 } 543 public static dev.enola.core.util.proto.Log.Inline parseFrom( 544 com.google.protobuf.CodedInputStream input) 545 throws java.io.IOException { 546 return com.google.protobuf.GeneratedMessage 547 .parseWithIOException(PARSER, input); 548 } 549 public static dev.enola.core.util.proto.Log.Inline parseFrom( 550 com.google.protobuf.CodedInputStream input, 551 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 552 throws java.io.IOException { 553 return com.google.protobuf.GeneratedMessage 554 .parseWithIOException(PARSER, input, extensionRegistry); 555 } 556 557 @java.lang.Override 558 public Builder newBuilderForType() { return newBuilder(); } 559 public static Builder newBuilder() { 560 return DEFAULT_INSTANCE.toBuilder(); 561 } 562 public static Builder newBuilder(dev.enola.core.util.proto.Log.Inline prototype) { 563 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 564 } 565 @java.lang.Override 566 public Builder toBuilder() { 567 return this == DEFAULT_INSTANCE 568 ? new Builder() : new Builder().mergeFrom(this); 569 } 570 571 @java.lang.Override 572 protected Builder newBuilderForType( 573 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 574 Builder builder = new Builder(parent); 575 return builder; 576 } 577 /** 578 * Protobuf type {@code dev.enola.core.util.Log.Inline} 579 */ 580 public static final class Builder extends 581 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 582 // @@protoc_insertion_point(builder_implements:dev.enola.core.util.Log.Inline) 583 dev.enola.core.util.proto.Log.InlineOrBuilder { 584 public static final com.google.protobuf.Descriptors.Descriptor 585 getDescriptor() { 586 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_Inline_descriptor; 587 } 588 589 @java.lang.Override 590 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 591 internalGetFieldAccessorTable() { 592 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_Inline_fieldAccessorTable 593 .ensureFieldAccessorsInitialized( 594 dev.enola.core.util.proto.Log.Inline.class, dev.enola.core.util.proto.Log.Inline.Builder.class); 595 } 596 597 // Construct using dev.enola.core.util.proto.Log.Inline.newBuilder() 598 private Builder() { 599 600 } 601 602 private Builder( 603 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 604 super(parent); 605 606 } 607 @java.lang.Override 608 public Builder clear() { 609 super.clear(); 610 bitField0_ = 0; 611 if (entriesBuilder_ == null) { 612 entries_ = java.util.Collections.emptyList(); 613 } else { 614 entries_ = null; 615 entriesBuilder_.clear(); 616 } 617 bitField0_ = (bitField0_ & ~0x00000001); 618 return this; 619 } 620 621 @java.lang.Override 622 public com.google.protobuf.Descriptors.Descriptor 623 getDescriptorForType() { 624 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_Inline_descriptor; 625 } 626 627 @java.lang.Override 628 public dev.enola.core.util.proto.Log.Inline getDefaultInstanceForType() { 629 return dev.enola.core.util.proto.Log.Inline.getDefaultInstance(); 630 } 631 632 @java.lang.Override 633 public dev.enola.core.util.proto.Log.Inline build() { 634 dev.enola.core.util.proto.Log.Inline result = buildPartial(); 635 if (!result.isInitialized()) { 636 throw newUninitializedMessageException(result); 637 } 638 return result; 639 } 640 641 @java.lang.Override 642 public dev.enola.core.util.proto.Log.Inline buildPartial() { 643 dev.enola.core.util.proto.Log.Inline result = new dev.enola.core.util.proto.Log.Inline(this); 644 buildPartialRepeatedFields(result); 645 if (bitField0_ != 0) { buildPartial0(result); } 646 onBuilt(); 647 return result; 648 } 649 650 private void buildPartialRepeatedFields(dev.enola.core.util.proto.Log.Inline result) { 651 if (entriesBuilder_ == null) { 652 if (((bitField0_ & 0x00000001) != 0)) { 653 entries_ = java.util.Collections.unmodifiableList(entries_); 654 bitField0_ = (bitField0_ & ~0x00000001); 655 } 656 result.entries_ = entries_; 657 } else { 658 result.entries_ = entriesBuilder_.build(); 659 } 660 } 661 662 private void buildPartial0(dev.enola.core.util.proto.Log.Inline result) { 663 int from_bitField0_ = bitField0_; 664 } 665 666 @java.lang.Override 667 public Builder mergeFrom(com.google.protobuf.Message other) { 668 if (other instanceof dev.enola.core.util.proto.Log.Inline) { 669 return mergeFrom((dev.enola.core.util.proto.Log.Inline)other); 670 } else { 671 super.mergeFrom(other); 672 return this; 673 } 674 } 675 676 public Builder mergeFrom(dev.enola.core.util.proto.Log.Inline other) { 677 if (other == dev.enola.core.util.proto.Log.Inline.getDefaultInstance()) return this; 678 if (entriesBuilder_ == null) { 679 if (!other.entries_.isEmpty()) { 680 if (entries_.isEmpty()) { 681 entries_ = other.entries_; 682 bitField0_ = (bitField0_ & ~0x00000001); 683 } else { 684 ensureEntriesIsMutable(); 685 entries_.addAll(other.entries_); 686 } 687 onChanged(); 688 } 689 } else { 690 if (!other.entries_.isEmpty()) { 691 if (entriesBuilder_.isEmpty()) { 692 entriesBuilder_.dispose(); 693 entriesBuilder_ = null; 694 entries_ = other.entries_; 695 bitField0_ = (bitField0_ & ~0x00000001); 696 entriesBuilder_ = 697 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 698 internalGetEntriesFieldBuilder() : null; 699 } else { 700 entriesBuilder_.addAllMessages(other.entries_); 701 } 702 } 703 } 704 this.mergeUnknownFields(other.getUnknownFields()); 705 onChanged(); 706 return this; 707 } 708 709 @java.lang.Override 710 public final boolean isInitialized() { 711 return true; 712 } 713 714 @java.lang.Override 715 public Builder mergeFrom( 716 com.google.protobuf.CodedInputStream input, 717 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 718 throws java.io.IOException { 719 if (extensionRegistry == null) { 720 throw new java.lang.NullPointerException(); 721 } 722 try { 723 boolean done = false; 724 while (!done) { 725 int tag = input.readTag(); 726 switch (tag) { 727 case 0: 728 done = true; 729 break; 730 case 10: { 731 dev.enola.core.util.proto.Log.Entry m = 732 input.readMessage( 733 dev.enola.core.util.proto.Log.Entry.parser(), 734 extensionRegistry); 735 if (entriesBuilder_ == null) { 736 ensureEntriesIsMutable(); 737 entries_.add(m); 738 } else { 739 entriesBuilder_.addMessage(m); 740 } 741 break; 742 } // case 10 743 default: { 744 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 745 done = true; // was an endgroup tag 746 } 747 break; 748 } // default: 749 } // switch (tag) 750 } // while (!done) 751 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 752 throw e.unwrapIOException(); 753 } finally { 754 onChanged(); 755 } // finally 756 return this; 757 } 758 private int bitField0_; 759 760 private java.util.List<dev.enola.core.util.proto.Log.Entry> entries_ = 761 java.util.Collections.emptyList(); 762 private void ensureEntriesIsMutable() { 763 if (!((bitField0_ & 0x00000001) != 0)) { 764 entries_ = new java.util.ArrayList<dev.enola.core.util.proto.Log.Entry>(entries_); 765 bitField0_ |= 0x00000001; 766 } 767 } 768 769 private com.google.protobuf.RepeatedFieldBuilder< 770 dev.enola.core.util.proto.Log.Entry, dev.enola.core.util.proto.Log.Entry.Builder, dev.enola.core.util.proto.Log.EntryOrBuilder> entriesBuilder_; 771 772 /** 773 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 774 */ 775 public java.util.List<dev.enola.core.util.proto.Log.Entry> getEntriesList() { 776 if (entriesBuilder_ == null) { 777 return java.util.Collections.unmodifiableList(entries_); 778 } else { 779 return entriesBuilder_.getMessageList(); 780 } 781 } 782 /** 783 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 784 */ 785 public int getEntriesCount() { 786 if (entriesBuilder_ == null) { 787 return entries_.size(); 788 } else { 789 return entriesBuilder_.getCount(); 790 } 791 } 792 /** 793 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 794 */ 795 public dev.enola.core.util.proto.Log.Entry getEntries(int index) { 796 if (entriesBuilder_ == null) { 797 return entries_.get(index); 798 } else { 799 return entriesBuilder_.getMessage(index); 800 } 801 } 802 /** 803 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 804 */ 805 public Builder setEntries( 806 int index, dev.enola.core.util.proto.Log.Entry value) { 807 if (entriesBuilder_ == null) { 808 if (value == null) { 809 throw new NullPointerException(); 810 } 811 ensureEntriesIsMutable(); 812 entries_.set(index, value); 813 onChanged(); 814 } else { 815 entriesBuilder_.setMessage(index, value); 816 } 817 return this; 818 } 819 /** 820 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 821 */ 822 public Builder setEntries( 823 int index, dev.enola.core.util.proto.Log.Entry.Builder builderForValue) { 824 if (entriesBuilder_ == null) { 825 ensureEntriesIsMutable(); 826 entries_.set(index, builderForValue.build()); 827 onChanged(); 828 } else { 829 entriesBuilder_.setMessage(index, builderForValue.build()); 830 } 831 return this; 832 } 833 /** 834 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 835 */ 836 public Builder addEntries(dev.enola.core.util.proto.Log.Entry value) { 837 if (entriesBuilder_ == null) { 838 if (value == null) { 839 throw new NullPointerException(); 840 } 841 ensureEntriesIsMutable(); 842 entries_.add(value); 843 onChanged(); 844 } else { 845 entriesBuilder_.addMessage(value); 846 } 847 return this; 848 } 849 /** 850 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 851 */ 852 public Builder addEntries( 853 int index, dev.enola.core.util.proto.Log.Entry value) { 854 if (entriesBuilder_ == null) { 855 if (value == null) { 856 throw new NullPointerException(); 857 } 858 ensureEntriesIsMutable(); 859 entries_.add(index, value); 860 onChanged(); 861 } else { 862 entriesBuilder_.addMessage(index, value); 863 } 864 return this; 865 } 866 /** 867 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 868 */ 869 public Builder addEntries( 870 dev.enola.core.util.proto.Log.Entry.Builder builderForValue) { 871 if (entriesBuilder_ == null) { 872 ensureEntriesIsMutable(); 873 entries_.add(builderForValue.build()); 874 onChanged(); 875 } else { 876 entriesBuilder_.addMessage(builderForValue.build()); 877 } 878 return this; 879 } 880 /** 881 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 882 */ 883 public Builder addEntries( 884 int index, dev.enola.core.util.proto.Log.Entry.Builder builderForValue) { 885 if (entriesBuilder_ == null) { 886 ensureEntriesIsMutable(); 887 entries_.add(index, builderForValue.build()); 888 onChanged(); 889 } else { 890 entriesBuilder_.addMessage(index, builderForValue.build()); 891 } 892 return this; 893 } 894 /** 895 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 896 */ 897 public Builder addAllEntries( 898 java.lang.Iterable<? extends dev.enola.core.util.proto.Log.Entry> values) { 899 if (entriesBuilder_ == null) { 900 ensureEntriesIsMutable(); 901 com.google.protobuf.AbstractMessageLite.Builder.addAll( 902 values, entries_); 903 onChanged(); 904 } else { 905 entriesBuilder_.addAllMessages(values); 906 } 907 return this; 908 } 909 /** 910 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 911 */ 912 public Builder clearEntries() { 913 if (entriesBuilder_ == null) { 914 entries_ = java.util.Collections.emptyList(); 915 bitField0_ = (bitField0_ & ~0x00000001); 916 onChanged(); 917 } else { 918 entriesBuilder_.clear(); 919 } 920 return this; 921 } 922 /** 923 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 924 */ 925 public Builder removeEntries(int index) { 926 if (entriesBuilder_ == null) { 927 ensureEntriesIsMutable(); 928 entries_.remove(index); 929 onChanged(); 930 } else { 931 entriesBuilder_.remove(index); 932 } 933 return this; 934 } 935 /** 936 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 937 */ 938 public dev.enola.core.util.proto.Log.Entry.Builder getEntriesBuilder( 939 int index) { 940 return internalGetEntriesFieldBuilder().getBuilder(index); 941 } 942 /** 943 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 944 */ 945 public dev.enola.core.util.proto.Log.EntryOrBuilder getEntriesOrBuilder( 946 int index) { 947 if (entriesBuilder_ == null) { 948 return entries_.get(index); } else { 949 return entriesBuilder_.getMessageOrBuilder(index); 950 } 951 } 952 /** 953 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 954 */ 955 public java.util.List<? extends dev.enola.core.util.proto.Log.EntryOrBuilder> 956 getEntriesOrBuilderList() { 957 if (entriesBuilder_ != null) { 958 return entriesBuilder_.getMessageOrBuilderList(); 959 } else { 960 return java.util.Collections.unmodifiableList(entries_); 961 } 962 } 963 /** 964 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 965 */ 966 public dev.enola.core.util.proto.Log.Entry.Builder addEntriesBuilder() { 967 return internalGetEntriesFieldBuilder().addBuilder( 968 dev.enola.core.util.proto.Log.Entry.getDefaultInstance()); 969 } 970 /** 971 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 972 */ 973 public dev.enola.core.util.proto.Log.Entry.Builder addEntriesBuilder( 974 int index) { 975 return internalGetEntriesFieldBuilder().addBuilder( 976 index, dev.enola.core.util.proto.Log.Entry.getDefaultInstance()); 977 } 978 /** 979 * <code>repeated .dev.enola.core.util.Log.Entry entries = 1;</code> 980 */ 981 public java.util.List<dev.enola.core.util.proto.Log.Entry.Builder> 982 getEntriesBuilderList() { 983 return internalGetEntriesFieldBuilder().getBuilderList(); 984 } 985 private com.google.protobuf.RepeatedFieldBuilder< 986 dev.enola.core.util.proto.Log.Entry, dev.enola.core.util.proto.Log.Entry.Builder, dev.enola.core.util.proto.Log.EntryOrBuilder> 987 internalGetEntriesFieldBuilder() { 988 if (entriesBuilder_ == null) { 989 entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< 990 dev.enola.core.util.proto.Log.Entry, dev.enola.core.util.proto.Log.Entry.Builder, dev.enola.core.util.proto.Log.EntryOrBuilder>( 991 entries_, 992 ((bitField0_ & 0x00000001) != 0), 993 getParentForChildren(), 994 isClean()); 995 entries_ = null; 996 } 997 return entriesBuilder_; 998 } 999 1000 // @@protoc_insertion_point(builder_scope:dev.enola.core.util.Log.Inline) 1001 } 1002 1003 // @@protoc_insertion_point(class_scope:dev.enola.core.util.Log.Inline) 1004 private static final dev.enola.core.util.proto.Log.Inline DEFAULT_INSTANCE; 1005 static { 1006 DEFAULT_INSTANCE = new dev.enola.core.util.proto.Log.Inline(); 1007 } 1008 1009 public static dev.enola.core.util.proto.Log.Inline getDefaultInstance() { 1010 return DEFAULT_INSTANCE; 1011 } 1012 1013 private static final com.google.protobuf.Parser<Inline> 1014 PARSER = new com.google.protobuf.AbstractParser<Inline>() { 1015 @java.lang.Override 1016 public Inline parsePartialFrom( 1017 com.google.protobuf.CodedInputStream input, 1018 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1019 throws com.google.protobuf.InvalidProtocolBufferException { 1020 Builder builder = newBuilder(); 1021 try { 1022 builder.mergeFrom(input, extensionRegistry); 1023 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1024 throw e.setUnfinishedMessage(builder.buildPartial()); 1025 } catch (com.google.protobuf.UninitializedMessageException e) { 1026 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1027 } catch (java.io.IOException e) { 1028 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1029 .setUnfinishedMessage(builder.buildPartial()); 1030 } 1031 return builder.buildPartial(); 1032 } 1033 }; 1034 1035 public static com.google.protobuf.Parser<Inline> parser() { 1036 return PARSER; 1037 } 1038 1039 @java.lang.Override 1040 public com.google.protobuf.Parser<Inline> getParserForType() { 1041 return PARSER; 1042 } 1043 1044 @java.lang.Override 1045 public dev.enola.core.util.proto.Log.Inline getDefaultInstanceForType() { 1046 return DEFAULT_INSTANCE; 1047 } 1048 1049 } 1050 1051 public interface EntryOrBuilder extends 1052 // @@protoc_insertion_point(interface_extends:dev.enola.core.util.Log.Entry) 1053 com.google.protobuf.MessageOrBuilder { 1054 1055 /** 1056 * <code>.google.protobuf.Timestamp ts = 1;</code> 1057 * @return Whether the ts field is set. 1058 */ 1059 boolean hasTs(); 1060 /** 1061 * <code>.google.protobuf.Timestamp ts = 1;</code> 1062 * @return The ts. 1063 */ 1064 com.google.protobuf.Timestamp getTs(); 1065 /** 1066 * <code>.google.protobuf.Timestamp ts = 1;</code> 1067 */ 1068 com.google.protobuf.TimestampOrBuilder getTsOrBuilder(); 1069 1070 /** 1071 * <code>.dev.enola.core.util.Log.Severity severity = 2;</code> 1072 * @return The enum numeric value on the wire for severity. 1073 */ 1074 int getSeverityValue(); 1075 /** 1076 * <code>.dev.enola.core.util.Log.Severity severity = 2;</code> 1077 * @return The severity. 1078 */ 1079 dev.enola.core.util.proto.Log.Severity getSeverity(); 1080 1081 /** 1082 * <code>string text = 3;</code> 1083 * @return The text. 1084 */ 1085 java.lang.String getText(); 1086 /** 1087 * <code>string text = 3;</code> 1088 * @return The bytes for text. 1089 */ 1090 com.google.protobuf.ByteString 1091 getTextBytes(); 1092 } 1093 /** 1094 * Protobuf type {@code dev.enola.core.util.Log.Entry} 1095 */ 1096 public static final class Entry extends 1097 com.google.protobuf.GeneratedMessage implements 1098 // @@protoc_insertion_point(message_implements:dev.enola.core.util.Log.Entry) 1099 EntryOrBuilder { 1100 private static final long serialVersionUID = 0L; 1101 static { 1102 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( 1103 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, 1104 /* major= */ 4, 1105 /* minor= */ 32, 1106 /* patch= */ 0, 1107 /* suffix= */ "", 1108 Entry.class.getName()); 1109 } 1110 // Use Entry.newBuilder() to construct. 1111 private Entry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 1112 super(builder); 1113 } 1114 private Entry() { 1115 severity_ = 0; 1116 text_ = ""; 1117 } 1118 1119 public static final com.google.protobuf.Descriptors.Descriptor 1120 getDescriptor() { 1121 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_Entry_descriptor; 1122 } 1123 1124 @java.lang.Override 1125 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1126 internalGetFieldAccessorTable() { 1127 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_Entry_fieldAccessorTable 1128 .ensureFieldAccessorsInitialized( 1129 dev.enola.core.util.proto.Log.Entry.class, dev.enola.core.util.proto.Log.Entry.Builder.class); 1130 } 1131 1132 private int bitField0_; 1133 public static final int TS_FIELD_NUMBER = 1; 1134 private com.google.protobuf.Timestamp ts_; 1135 /** 1136 * <code>.google.protobuf.Timestamp ts = 1;</code> 1137 * @return Whether the ts field is set. 1138 */ 1139 @java.lang.Override 1140 public boolean hasTs() { 1141 return ((bitField0_ & 0x00000001) != 0); 1142 } 1143 /** 1144 * <code>.google.protobuf.Timestamp ts = 1;</code> 1145 * @return The ts. 1146 */ 1147 @java.lang.Override 1148 public com.google.protobuf.Timestamp getTs() { 1149 return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_; 1150 } 1151 /** 1152 * <code>.google.protobuf.Timestamp ts = 1;</code> 1153 */ 1154 @java.lang.Override 1155 public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() { 1156 return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_; 1157 } 1158 1159 public static final int SEVERITY_FIELD_NUMBER = 2; 1160 private int severity_ = 0; 1161 /** 1162 * <code>.dev.enola.core.util.Log.Severity severity = 2;</code> 1163 * @return The enum numeric value on the wire for severity. 1164 */ 1165 @java.lang.Override public int getSeverityValue() { 1166 return severity_; 1167 } 1168 /** 1169 * <code>.dev.enola.core.util.Log.Severity severity = 2;</code> 1170 * @return The severity. 1171 */ 1172 @java.lang.Override public dev.enola.core.util.proto.Log.Severity getSeverity() { 1173 dev.enola.core.util.proto.Log.Severity result = dev.enola.core.util.proto.Log.Severity.forNumber(severity_); 1174 return result == null ? dev.enola.core.util.proto.Log.Severity.UNRECOGNIZED : result; 1175 } 1176 1177 public static final int TEXT_FIELD_NUMBER = 3; 1178 @SuppressWarnings("serial") 1179 private volatile java.lang.Object text_ = ""; 1180 /** 1181 * <code>string text = 3;</code> 1182 * @return The text. 1183 */ 1184 @java.lang.Override 1185 public java.lang.String getText() { 1186 java.lang.Object ref = text_; 1187 if (ref instanceof java.lang.String) { 1188 return (java.lang.String) ref; 1189 } else { 1190 com.google.protobuf.ByteString bs = 1191 (com.google.protobuf.ByteString) ref; 1192 java.lang.String s = bs.toStringUtf8(); 1193 text_ = s; 1194 return s; 1195 } 1196 } 1197 /** 1198 * <code>string text = 3;</code> 1199 * @return The bytes for text. 1200 */ 1201 @java.lang.Override 1202 public com.google.protobuf.ByteString 1203 getTextBytes() { 1204 java.lang.Object ref = text_; 1205 if (ref instanceof java.lang.String) { 1206 com.google.protobuf.ByteString b = 1207 com.google.protobuf.ByteString.copyFromUtf8( 1208 (java.lang.String) ref); 1209 text_ = b; 1210 return b; 1211 } else { 1212 return (com.google.protobuf.ByteString) ref; 1213 } 1214 } 1215 1216 private byte memoizedIsInitialized = -1; 1217 @java.lang.Override 1218 public final boolean isInitialized() { 1219 byte isInitialized = memoizedIsInitialized; 1220 if (isInitialized == 1) return true; 1221 if (isInitialized == 0) return false; 1222 1223 memoizedIsInitialized = 1; 1224 return true; 1225 } 1226 1227 @java.lang.Override 1228 public void writeTo(com.google.protobuf.CodedOutputStream output) 1229 throws java.io.IOException { 1230 if (((bitField0_ & 0x00000001) != 0)) { 1231 output.writeMessage(1, getTs()); 1232 } 1233 if (severity_ != dev.enola.core.util.proto.Log.Severity.SEVERITY_UNSPECIFIED.getNumber()) { 1234 output.writeEnum(2, severity_); 1235 } 1236 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { 1237 com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); 1238 } 1239 getUnknownFields().writeTo(output); 1240 } 1241 1242 @java.lang.Override 1243 public int getSerializedSize() { 1244 int size = memoizedSize; 1245 if (size != -1) return size; 1246 1247 size = 0; 1248 if (((bitField0_ & 0x00000001) != 0)) { 1249 size += com.google.protobuf.CodedOutputStream 1250 .computeMessageSize(1, getTs()); 1251 } 1252 if (severity_ != dev.enola.core.util.proto.Log.Severity.SEVERITY_UNSPECIFIED.getNumber()) { 1253 size += com.google.protobuf.CodedOutputStream 1254 .computeEnumSize(2, severity_); 1255 } 1256 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { 1257 size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); 1258 } 1259 size += getUnknownFields().getSerializedSize(); 1260 memoizedSize = size; 1261 return size; 1262 } 1263 1264 @java.lang.Override 1265 public boolean equals(final java.lang.Object obj) { 1266 if (obj == this) { 1267 return true; 1268 } 1269 if (!(obj instanceof dev.enola.core.util.proto.Log.Entry)) { 1270 return super.equals(obj); 1271 } 1272 dev.enola.core.util.proto.Log.Entry other = (dev.enola.core.util.proto.Log.Entry) obj; 1273 1274 if (hasTs() != other.hasTs()) return false; 1275 if (hasTs()) { 1276 if (!getTs() 1277 .equals(other.getTs())) return false; 1278 } 1279 if (severity_ != other.severity_) return false; 1280 if (!getText() 1281 .equals(other.getText())) return false; 1282 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1283 return true; 1284 } 1285 1286 @java.lang.Override 1287 public int hashCode() { 1288 if (memoizedHashCode != 0) { 1289 return memoizedHashCode; 1290 } 1291 int hash = 41; 1292 hash = (19 * hash) + getDescriptor().hashCode(); 1293 if (hasTs()) { 1294 hash = (37 * hash) + TS_FIELD_NUMBER; 1295 hash = (53 * hash) + getTs().hashCode(); 1296 } 1297 hash = (37 * hash) + SEVERITY_FIELD_NUMBER; 1298 hash = (53 * hash) + severity_; 1299 hash = (37 * hash) + TEXT_FIELD_NUMBER; 1300 hash = (53 * hash) + getText().hashCode(); 1301 hash = (29 * hash) + getUnknownFields().hashCode(); 1302 memoizedHashCode = hash; 1303 return hash; 1304 } 1305 1306 public static dev.enola.core.util.proto.Log.Entry parseFrom( 1307 java.nio.ByteBuffer data) 1308 throws com.google.protobuf.InvalidProtocolBufferException { 1309 return PARSER.parseFrom(data); 1310 } 1311 public static dev.enola.core.util.proto.Log.Entry parseFrom( 1312 java.nio.ByteBuffer data, 1313 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1314 throws com.google.protobuf.InvalidProtocolBufferException { 1315 return PARSER.parseFrom(data, extensionRegistry); 1316 } 1317 public static dev.enola.core.util.proto.Log.Entry parseFrom( 1318 com.google.protobuf.ByteString data) 1319 throws com.google.protobuf.InvalidProtocolBufferException { 1320 return PARSER.parseFrom(data); 1321 } 1322 public static dev.enola.core.util.proto.Log.Entry parseFrom( 1323 com.google.protobuf.ByteString data, 1324 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1325 throws com.google.protobuf.InvalidProtocolBufferException { 1326 return PARSER.parseFrom(data, extensionRegistry); 1327 } 1328 public static dev.enola.core.util.proto.Log.Entry parseFrom(byte[] data) 1329 throws com.google.protobuf.InvalidProtocolBufferException { 1330 return PARSER.parseFrom(data); 1331 } 1332 public static dev.enola.core.util.proto.Log.Entry parseFrom( 1333 byte[] data, 1334 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1335 throws com.google.protobuf.InvalidProtocolBufferException { 1336 return PARSER.parseFrom(data, extensionRegistry); 1337 } 1338 public static dev.enola.core.util.proto.Log.Entry parseFrom(java.io.InputStream input) 1339 throws java.io.IOException { 1340 return com.google.protobuf.GeneratedMessage 1341 .parseWithIOException(PARSER, input); 1342 } 1343 public static dev.enola.core.util.proto.Log.Entry parseFrom( 1344 java.io.InputStream input, 1345 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1346 throws java.io.IOException { 1347 return com.google.protobuf.GeneratedMessage 1348 .parseWithIOException(PARSER, input, extensionRegistry); 1349 } 1350 1351 public static dev.enola.core.util.proto.Log.Entry parseDelimitedFrom(java.io.InputStream input) 1352 throws java.io.IOException { 1353 return com.google.protobuf.GeneratedMessage 1354 .parseDelimitedWithIOException(PARSER, input); 1355 } 1356 1357 public static dev.enola.core.util.proto.Log.Entry parseDelimitedFrom( 1358 java.io.InputStream input, 1359 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1360 throws java.io.IOException { 1361 return com.google.protobuf.GeneratedMessage 1362 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 1363 } 1364 public static dev.enola.core.util.proto.Log.Entry parseFrom( 1365 com.google.protobuf.CodedInputStream input) 1366 throws java.io.IOException { 1367 return com.google.protobuf.GeneratedMessage 1368 .parseWithIOException(PARSER, input); 1369 } 1370 public static dev.enola.core.util.proto.Log.Entry parseFrom( 1371 com.google.protobuf.CodedInputStream input, 1372 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1373 throws java.io.IOException { 1374 return com.google.protobuf.GeneratedMessage 1375 .parseWithIOException(PARSER, input, extensionRegistry); 1376 } 1377 1378 @java.lang.Override 1379 public Builder newBuilderForType() { return newBuilder(); } 1380 public static Builder newBuilder() { 1381 return DEFAULT_INSTANCE.toBuilder(); 1382 } 1383 public static Builder newBuilder(dev.enola.core.util.proto.Log.Entry prototype) { 1384 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1385 } 1386 @java.lang.Override 1387 public Builder toBuilder() { 1388 return this == DEFAULT_INSTANCE 1389 ? new Builder() : new Builder().mergeFrom(this); 1390 } 1391 1392 @java.lang.Override 1393 protected Builder newBuilderForType( 1394 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1395 Builder builder = new Builder(parent); 1396 return builder; 1397 } 1398 /** 1399 * Protobuf type {@code dev.enola.core.util.Log.Entry} 1400 */ 1401 public static final class Builder extends 1402 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 1403 // @@protoc_insertion_point(builder_implements:dev.enola.core.util.Log.Entry) 1404 dev.enola.core.util.proto.Log.EntryOrBuilder { 1405 public static final com.google.protobuf.Descriptors.Descriptor 1406 getDescriptor() { 1407 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_Entry_descriptor; 1408 } 1409 1410 @java.lang.Override 1411 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1412 internalGetFieldAccessorTable() { 1413 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_Entry_fieldAccessorTable 1414 .ensureFieldAccessorsInitialized( 1415 dev.enola.core.util.proto.Log.Entry.class, dev.enola.core.util.proto.Log.Entry.Builder.class); 1416 } 1417 1418 // Construct using dev.enola.core.util.proto.Log.Entry.newBuilder() 1419 private Builder() { 1420 maybeForceBuilderInitialization(); 1421 } 1422 1423 private Builder( 1424 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1425 super(parent); 1426 maybeForceBuilderInitialization(); 1427 } 1428 private void maybeForceBuilderInitialization() { 1429 if (com.google.protobuf.GeneratedMessage 1430 .alwaysUseFieldBuilders) { 1431 internalGetTsFieldBuilder(); 1432 } 1433 } 1434 @java.lang.Override 1435 public Builder clear() { 1436 super.clear(); 1437 bitField0_ = 0; 1438 ts_ = null; 1439 if (tsBuilder_ != null) { 1440 tsBuilder_.dispose(); 1441 tsBuilder_ = null; 1442 } 1443 severity_ = 0; 1444 text_ = ""; 1445 return this; 1446 } 1447 1448 @java.lang.Override 1449 public com.google.protobuf.Descriptors.Descriptor 1450 getDescriptorForType() { 1451 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_Entry_descriptor; 1452 } 1453 1454 @java.lang.Override 1455 public dev.enola.core.util.proto.Log.Entry getDefaultInstanceForType() { 1456 return dev.enola.core.util.proto.Log.Entry.getDefaultInstance(); 1457 } 1458 1459 @java.lang.Override 1460 public dev.enola.core.util.proto.Log.Entry build() { 1461 dev.enola.core.util.proto.Log.Entry result = buildPartial(); 1462 if (!result.isInitialized()) { 1463 throw newUninitializedMessageException(result); 1464 } 1465 return result; 1466 } 1467 1468 @java.lang.Override 1469 public dev.enola.core.util.proto.Log.Entry buildPartial() { 1470 dev.enola.core.util.proto.Log.Entry result = new dev.enola.core.util.proto.Log.Entry(this); 1471 if (bitField0_ != 0) { buildPartial0(result); } 1472 onBuilt(); 1473 return result; 1474 } 1475 1476 private void buildPartial0(dev.enola.core.util.proto.Log.Entry result) { 1477 int from_bitField0_ = bitField0_; 1478 int to_bitField0_ = 0; 1479 if (((from_bitField0_ & 0x00000001) != 0)) { 1480 result.ts_ = tsBuilder_ == null 1481 ? ts_ 1482 : tsBuilder_.build(); 1483 to_bitField0_ |= 0x00000001; 1484 } 1485 if (((from_bitField0_ & 0x00000002) != 0)) { 1486 result.severity_ = severity_; 1487 } 1488 if (((from_bitField0_ & 0x00000004) != 0)) { 1489 result.text_ = text_; 1490 } 1491 result.bitField0_ |= to_bitField0_; 1492 } 1493 1494 @java.lang.Override 1495 public Builder mergeFrom(com.google.protobuf.Message other) { 1496 if (other instanceof dev.enola.core.util.proto.Log.Entry) { 1497 return mergeFrom((dev.enola.core.util.proto.Log.Entry)other); 1498 } else { 1499 super.mergeFrom(other); 1500 return this; 1501 } 1502 } 1503 1504 public Builder mergeFrom(dev.enola.core.util.proto.Log.Entry other) { 1505 if (other == dev.enola.core.util.proto.Log.Entry.getDefaultInstance()) return this; 1506 if (other.hasTs()) { 1507 mergeTs(other.getTs()); 1508 } 1509 if (other.severity_ != 0) { 1510 setSeverityValue(other.getSeverityValue()); 1511 } 1512 if (!other.getText().isEmpty()) { 1513 text_ = other.text_; 1514 bitField0_ |= 0x00000004; 1515 onChanged(); 1516 } 1517 this.mergeUnknownFields(other.getUnknownFields()); 1518 onChanged(); 1519 return this; 1520 } 1521 1522 @java.lang.Override 1523 public final boolean isInitialized() { 1524 return true; 1525 } 1526 1527 @java.lang.Override 1528 public Builder mergeFrom( 1529 com.google.protobuf.CodedInputStream input, 1530 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1531 throws java.io.IOException { 1532 if (extensionRegistry == null) { 1533 throw new java.lang.NullPointerException(); 1534 } 1535 try { 1536 boolean done = false; 1537 while (!done) { 1538 int tag = input.readTag(); 1539 switch (tag) { 1540 case 0: 1541 done = true; 1542 break; 1543 case 10: { 1544 input.readMessage( 1545 internalGetTsFieldBuilder().getBuilder(), 1546 extensionRegistry); 1547 bitField0_ |= 0x00000001; 1548 break; 1549 } // case 10 1550 case 16: { 1551 severity_ = input.readEnum(); 1552 bitField0_ |= 0x00000002; 1553 break; 1554 } // case 16 1555 case 26: { 1556 text_ = input.readStringRequireUtf8(); 1557 bitField0_ |= 0x00000004; 1558 break; 1559 } // case 26 1560 default: { 1561 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1562 done = true; // was an endgroup tag 1563 } 1564 break; 1565 } // default: 1566 } // switch (tag) 1567 } // while (!done) 1568 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1569 throw e.unwrapIOException(); 1570 } finally { 1571 onChanged(); 1572 } // finally 1573 return this; 1574 } 1575 private int bitField0_; 1576 1577 private com.google.protobuf.Timestamp ts_; 1578 private com.google.protobuf.SingleFieldBuilder< 1579 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsBuilder_; 1580 /** 1581 * <code>.google.protobuf.Timestamp ts = 1;</code> 1582 * @return Whether the ts field is set. 1583 */ 1584 public boolean hasTs() { 1585 return ((bitField0_ & 0x00000001) != 0); 1586 } 1587 /** 1588 * <code>.google.protobuf.Timestamp ts = 1;</code> 1589 * @return The ts. 1590 */ 1591 public com.google.protobuf.Timestamp getTs() { 1592 if (tsBuilder_ == null) { 1593 return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_; 1594 } else { 1595 return tsBuilder_.getMessage(); 1596 } 1597 } 1598 /** 1599 * <code>.google.protobuf.Timestamp ts = 1;</code> 1600 */ 1601 public Builder setTs(com.google.protobuf.Timestamp value) { 1602 if (tsBuilder_ == null) { 1603 if (value == null) { 1604 throw new NullPointerException(); 1605 } 1606 ts_ = value; 1607 } else { 1608 tsBuilder_.setMessage(value); 1609 } 1610 bitField0_ |= 0x00000001; 1611 onChanged(); 1612 return this; 1613 } 1614 /** 1615 * <code>.google.protobuf.Timestamp ts = 1;</code> 1616 */ 1617 public Builder setTs( 1618 com.google.protobuf.Timestamp.Builder builderForValue) { 1619 if (tsBuilder_ == null) { 1620 ts_ = builderForValue.build(); 1621 } else { 1622 tsBuilder_.setMessage(builderForValue.build()); 1623 } 1624 bitField0_ |= 0x00000001; 1625 onChanged(); 1626 return this; 1627 } 1628 /** 1629 * <code>.google.protobuf.Timestamp ts = 1;</code> 1630 */ 1631 public Builder mergeTs(com.google.protobuf.Timestamp value) { 1632 if (tsBuilder_ == null) { 1633 if (((bitField0_ & 0x00000001) != 0) && 1634 ts_ != null && 1635 ts_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1636 getTsBuilder().mergeFrom(value); 1637 } else { 1638 ts_ = value; 1639 } 1640 } else { 1641 tsBuilder_.mergeFrom(value); 1642 } 1643 if (ts_ != null) { 1644 bitField0_ |= 0x00000001; 1645 onChanged(); 1646 } 1647 return this; 1648 } 1649 /** 1650 * <code>.google.protobuf.Timestamp ts = 1;</code> 1651 */ 1652 public Builder clearTs() { 1653 bitField0_ = (bitField0_ & ~0x00000001); 1654 ts_ = null; 1655 if (tsBuilder_ != null) { 1656 tsBuilder_.dispose(); 1657 tsBuilder_ = null; 1658 } 1659 onChanged(); 1660 return this; 1661 } 1662 /** 1663 * <code>.google.protobuf.Timestamp ts = 1;</code> 1664 */ 1665 public com.google.protobuf.Timestamp.Builder getTsBuilder() { 1666 bitField0_ |= 0x00000001; 1667 onChanged(); 1668 return internalGetTsFieldBuilder().getBuilder(); 1669 } 1670 /** 1671 * <code>.google.protobuf.Timestamp ts = 1;</code> 1672 */ 1673 public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() { 1674 if (tsBuilder_ != null) { 1675 return tsBuilder_.getMessageOrBuilder(); 1676 } else { 1677 return ts_ == null ? 1678 com.google.protobuf.Timestamp.getDefaultInstance() : ts_; 1679 } 1680 } 1681 /** 1682 * <code>.google.protobuf.Timestamp ts = 1;</code> 1683 */ 1684 private com.google.protobuf.SingleFieldBuilder< 1685 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 1686 internalGetTsFieldBuilder() { 1687 if (tsBuilder_ == null) { 1688 tsBuilder_ = new com.google.protobuf.SingleFieldBuilder< 1689 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( 1690 getTs(), 1691 getParentForChildren(), 1692 isClean()); 1693 ts_ = null; 1694 } 1695 return tsBuilder_; 1696 } 1697 1698 private int severity_ = 0; 1699 /** 1700 * <code>.dev.enola.core.util.Log.Severity severity = 2;</code> 1701 * @return The enum numeric value on the wire for severity. 1702 */ 1703 @java.lang.Override public int getSeverityValue() { 1704 return severity_; 1705 } 1706 /** 1707 * <code>.dev.enola.core.util.Log.Severity severity = 2;</code> 1708 * @param value The enum numeric value on the wire for severity to set. 1709 * @return This builder for chaining. 1710 */ 1711 public Builder setSeverityValue(int value) { 1712 severity_ = value; 1713 bitField0_ |= 0x00000002; 1714 onChanged(); 1715 return this; 1716 } 1717 /** 1718 * <code>.dev.enola.core.util.Log.Severity severity = 2;</code> 1719 * @return The severity. 1720 */ 1721 @java.lang.Override 1722 public dev.enola.core.util.proto.Log.Severity getSeverity() { 1723 dev.enola.core.util.proto.Log.Severity result = dev.enola.core.util.proto.Log.Severity.forNumber(severity_); 1724 return result == null ? dev.enola.core.util.proto.Log.Severity.UNRECOGNIZED : result; 1725 } 1726 /** 1727 * <code>.dev.enola.core.util.Log.Severity severity = 2;</code> 1728 * @param value The severity to set. 1729 * @return This builder for chaining. 1730 */ 1731 public Builder setSeverity(dev.enola.core.util.proto.Log.Severity value) { 1732 if (value == null) { throw new NullPointerException(); } 1733 bitField0_ |= 0x00000002; 1734 severity_ = value.getNumber(); 1735 onChanged(); 1736 return this; 1737 } 1738 /** 1739 * <code>.dev.enola.core.util.Log.Severity severity = 2;</code> 1740 * @return This builder for chaining. 1741 */ 1742 public Builder clearSeverity() { 1743 bitField0_ = (bitField0_ & ~0x00000002); 1744 severity_ = 0; 1745 onChanged(); 1746 return this; 1747 } 1748 1749 private java.lang.Object text_ = ""; 1750 /** 1751 * <code>string text = 3;</code> 1752 * @return The text. 1753 */ 1754 public java.lang.String getText() { 1755 java.lang.Object ref = text_; 1756 if (!(ref instanceof java.lang.String)) { 1757 com.google.protobuf.ByteString bs = 1758 (com.google.protobuf.ByteString) ref; 1759 java.lang.String s = bs.toStringUtf8(); 1760 text_ = s; 1761 return s; 1762 } else { 1763 return (java.lang.String) ref; 1764 } 1765 } 1766 /** 1767 * <code>string text = 3;</code> 1768 * @return The bytes for text. 1769 */ 1770 public com.google.protobuf.ByteString 1771 getTextBytes() { 1772 java.lang.Object ref = text_; 1773 if (ref instanceof String) { 1774 com.google.protobuf.ByteString b = 1775 com.google.protobuf.ByteString.copyFromUtf8( 1776 (java.lang.String) ref); 1777 text_ = b; 1778 return b; 1779 } else { 1780 return (com.google.protobuf.ByteString) ref; 1781 } 1782 } 1783 /** 1784 * <code>string text = 3;</code> 1785 * @param value The text to set. 1786 * @return This builder for chaining. 1787 */ 1788 public Builder setText( 1789 java.lang.String value) { 1790 if (value == null) { throw new NullPointerException(); } 1791 text_ = value; 1792 bitField0_ |= 0x00000004; 1793 onChanged(); 1794 return this; 1795 } 1796 /** 1797 * <code>string text = 3;</code> 1798 * @return This builder for chaining. 1799 */ 1800 public Builder clearText() { 1801 text_ = getDefaultInstance().getText(); 1802 bitField0_ = (bitField0_ & ~0x00000004); 1803 onChanged(); 1804 return this; 1805 } 1806 /** 1807 * <code>string text = 3;</code> 1808 * @param value The bytes for text to set. 1809 * @return This builder for chaining. 1810 */ 1811 public Builder setTextBytes( 1812 com.google.protobuf.ByteString value) { 1813 if (value == null) { throw new NullPointerException(); } 1814 checkByteStringIsUtf8(value); 1815 text_ = value; 1816 bitField0_ |= 0x00000004; 1817 onChanged(); 1818 return this; 1819 } 1820 1821 // @@protoc_insertion_point(builder_scope:dev.enola.core.util.Log.Entry) 1822 } 1823 1824 // @@protoc_insertion_point(class_scope:dev.enola.core.util.Log.Entry) 1825 private static final dev.enola.core.util.proto.Log.Entry DEFAULT_INSTANCE; 1826 static { 1827 DEFAULT_INSTANCE = new dev.enola.core.util.proto.Log.Entry(); 1828 } 1829 1830 public static dev.enola.core.util.proto.Log.Entry getDefaultInstance() { 1831 return DEFAULT_INSTANCE; 1832 } 1833 1834 private static final com.google.protobuf.Parser<Entry> 1835 PARSER = new com.google.protobuf.AbstractParser<Entry>() { 1836 @java.lang.Override 1837 public Entry parsePartialFrom( 1838 com.google.protobuf.CodedInputStream input, 1839 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1840 throws com.google.protobuf.InvalidProtocolBufferException { 1841 Builder builder = newBuilder(); 1842 try { 1843 builder.mergeFrom(input, extensionRegistry); 1844 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1845 throw e.setUnfinishedMessage(builder.buildPartial()); 1846 } catch (com.google.protobuf.UninitializedMessageException e) { 1847 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1848 } catch (java.io.IOException e) { 1849 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1850 .setUnfinishedMessage(builder.buildPartial()); 1851 } 1852 return builder.buildPartial(); 1853 } 1854 }; 1855 1856 public static com.google.protobuf.Parser<Entry> parser() { 1857 return PARSER; 1858 } 1859 1860 @java.lang.Override 1861 public com.google.protobuf.Parser<Entry> getParserForType() { 1862 return PARSER; 1863 } 1864 1865 @java.lang.Override 1866 public dev.enola.core.util.proto.Log.Entry getDefaultInstanceForType() { 1867 return DEFAULT_INSTANCE; 1868 } 1869 1870 } 1871 1872 private int oneofCase_ = 0; 1873 @SuppressWarnings("serial") 1874 private java.lang.Object oneof_; 1875 public enum OneofCase 1876 implements com.google.protobuf.Internal.EnumLite, 1877 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 1878 URL(1), 1879 INLINE(2), 1880 ONEOF_NOT_SET(0); 1881 private final int value; 1882 private OneofCase(int value) { 1883 this.value = value; 1884 } 1885 /** 1886 * @param value The number of the enum to look for. 1887 * @return The enum associated with the given number. 1888 * @deprecated Use {@link #forNumber(int)} instead. 1889 */ 1890 @java.lang.Deprecated 1891 public static OneofCase valueOf(int value) { 1892 return forNumber(value); 1893 } 1894 1895 public static OneofCase forNumber(int value) { 1896 switch (value) { 1897 case 1: return URL; 1898 case 2: return INLINE; 1899 case 0: return ONEOF_NOT_SET; 1900 default: return null; 1901 } 1902 } 1903 public int getNumber() { 1904 return this.value; 1905 } 1906 }; 1907 1908 public OneofCase 1909 getOneofCase() { 1910 return OneofCase.forNumber( 1911 oneofCase_); 1912 } 1913 1914 public static final int URL_FIELD_NUMBER = 1; 1915 /** 1916 * <code>string url = 1;</code> 1917 * @return Whether the url field is set. 1918 */ 1919 public boolean hasUrl() { 1920 return oneofCase_ == 1; 1921 } 1922 /** 1923 * <code>string url = 1;</code> 1924 * @return The url. 1925 */ 1926 public java.lang.String getUrl() { 1927 java.lang.Object ref = ""; 1928 if (oneofCase_ == 1) { 1929 ref = oneof_; 1930 } 1931 if (ref instanceof java.lang.String) { 1932 return (java.lang.String) ref; 1933 } else { 1934 com.google.protobuf.ByteString bs = 1935 (com.google.protobuf.ByteString) ref; 1936 java.lang.String s = bs.toStringUtf8(); 1937 if (oneofCase_ == 1) { 1938 oneof_ = s; 1939 } 1940 return s; 1941 } 1942 } 1943 /** 1944 * <code>string url = 1;</code> 1945 * @return The bytes for url. 1946 */ 1947 public com.google.protobuf.ByteString 1948 getUrlBytes() { 1949 java.lang.Object ref = ""; 1950 if (oneofCase_ == 1) { 1951 ref = oneof_; 1952 } 1953 if (ref instanceof java.lang.String) { 1954 com.google.protobuf.ByteString b = 1955 com.google.protobuf.ByteString.copyFromUtf8( 1956 (java.lang.String) ref); 1957 if (oneofCase_ == 1) { 1958 oneof_ = b; 1959 } 1960 return b; 1961 } else { 1962 return (com.google.protobuf.ByteString) ref; 1963 } 1964 } 1965 1966 public static final int INLINE_FIELD_NUMBER = 2; 1967 /** 1968 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 1969 * @return Whether the inline field is set. 1970 */ 1971 @java.lang.Override 1972 public boolean hasInline() { 1973 return oneofCase_ == 2; 1974 } 1975 /** 1976 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 1977 * @return The inline. 1978 */ 1979 @java.lang.Override 1980 public dev.enola.core.util.proto.Log.Inline getInline() { 1981 if (oneofCase_ == 2) { 1982 return (dev.enola.core.util.proto.Log.Inline) oneof_; 1983 } 1984 return dev.enola.core.util.proto.Log.Inline.getDefaultInstance(); 1985 } 1986 /** 1987 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 1988 */ 1989 @java.lang.Override 1990 public dev.enola.core.util.proto.Log.InlineOrBuilder getInlineOrBuilder() { 1991 if (oneofCase_ == 2) { 1992 return (dev.enola.core.util.proto.Log.Inline) oneof_; 1993 } 1994 return dev.enola.core.util.proto.Log.Inline.getDefaultInstance(); 1995 } 1996 1997 private byte memoizedIsInitialized = -1; 1998 @java.lang.Override 1999 public final boolean isInitialized() { 2000 byte isInitialized = memoizedIsInitialized; 2001 if (isInitialized == 1) return true; 2002 if (isInitialized == 0) return false; 2003 2004 memoizedIsInitialized = 1; 2005 return true; 2006 } 2007 2008 @java.lang.Override 2009 public void writeTo(com.google.protobuf.CodedOutputStream output) 2010 throws java.io.IOException { 2011 if (oneofCase_ == 1) { 2012 com.google.protobuf.GeneratedMessage.writeString(output, 1, oneof_); 2013 } 2014 if (oneofCase_ == 2) { 2015 output.writeMessage(2, (dev.enola.core.util.proto.Log.Inline) oneof_); 2016 } 2017 getUnknownFields().writeTo(output); 2018 } 2019 2020 @java.lang.Override 2021 public int getSerializedSize() { 2022 int size = memoizedSize; 2023 if (size != -1) return size; 2024 2025 size = 0; 2026 if (oneofCase_ == 1) { 2027 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, oneof_); 2028 } 2029 if (oneofCase_ == 2) { 2030 size += com.google.protobuf.CodedOutputStream 2031 .computeMessageSize(2, (dev.enola.core.util.proto.Log.Inline) oneof_); 2032 } 2033 size += getUnknownFields().getSerializedSize(); 2034 memoizedSize = size; 2035 return size; 2036 } 2037 2038 @java.lang.Override 2039 public boolean equals(final java.lang.Object obj) { 2040 if (obj == this) { 2041 return true; 2042 } 2043 if (!(obj instanceof dev.enola.core.util.proto.Log)) { 2044 return super.equals(obj); 2045 } 2046 dev.enola.core.util.proto.Log other = (dev.enola.core.util.proto.Log) obj; 2047 2048 if (!getOneofCase().equals(other.getOneofCase())) return false; 2049 switch (oneofCase_) { 2050 case 1: 2051 if (!getUrl() 2052 .equals(other.getUrl())) return false; 2053 break; 2054 case 2: 2055 if (!getInline() 2056 .equals(other.getInline())) return false; 2057 break; 2058 case 0: 2059 default: 2060 } 2061 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 2062 return true; 2063 } 2064 2065 @java.lang.Override 2066 public int hashCode() { 2067 if (memoizedHashCode != 0) { 2068 return memoizedHashCode; 2069 } 2070 int hash = 41; 2071 hash = (19 * hash) + getDescriptor().hashCode(); 2072 switch (oneofCase_) { 2073 case 1: 2074 hash = (37 * hash) + URL_FIELD_NUMBER; 2075 hash = (53 * hash) + getUrl().hashCode(); 2076 break; 2077 case 2: 2078 hash = (37 * hash) + INLINE_FIELD_NUMBER; 2079 hash = (53 * hash) + getInline().hashCode(); 2080 break; 2081 case 0: 2082 default: 2083 } 2084 hash = (29 * hash) + getUnknownFields().hashCode(); 2085 memoizedHashCode = hash; 2086 return hash; 2087 } 2088 2089 public static dev.enola.core.util.proto.Log parseFrom( 2090 java.nio.ByteBuffer data) 2091 throws com.google.protobuf.InvalidProtocolBufferException { 2092 return PARSER.parseFrom(data); 2093 } 2094 public static dev.enola.core.util.proto.Log parseFrom( 2095 java.nio.ByteBuffer data, 2096 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2097 throws com.google.protobuf.InvalidProtocolBufferException { 2098 return PARSER.parseFrom(data, extensionRegistry); 2099 } 2100 public static dev.enola.core.util.proto.Log parseFrom( 2101 com.google.protobuf.ByteString data) 2102 throws com.google.protobuf.InvalidProtocolBufferException { 2103 return PARSER.parseFrom(data); 2104 } 2105 public static dev.enola.core.util.proto.Log parseFrom( 2106 com.google.protobuf.ByteString data, 2107 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2108 throws com.google.protobuf.InvalidProtocolBufferException { 2109 return PARSER.parseFrom(data, extensionRegistry); 2110 } 2111 public static dev.enola.core.util.proto.Log parseFrom(byte[] data) 2112 throws com.google.protobuf.InvalidProtocolBufferException { 2113 return PARSER.parseFrom(data); 2114 } 2115 public static dev.enola.core.util.proto.Log parseFrom( 2116 byte[] data, 2117 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2118 throws com.google.protobuf.InvalidProtocolBufferException { 2119 return PARSER.parseFrom(data, extensionRegistry); 2120 } 2121 public static dev.enola.core.util.proto.Log parseFrom(java.io.InputStream input) 2122 throws java.io.IOException { 2123 return com.google.protobuf.GeneratedMessage 2124 .parseWithIOException(PARSER, input); 2125 } 2126 public static dev.enola.core.util.proto.Log parseFrom( 2127 java.io.InputStream input, 2128 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2129 throws java.io.IOException { 2130 return com.google.protobuf.GeneratedMessage 2131 .parseWithIOException(PARSER, input, extensionRegistry); 2132 } 2133 2134 public static dev.enola.core.util.proto.Log parseDelimitedFrom(java.io.InputStream input) 2135 throws java.io.IOException { 2136 return com.google.protobuf.GeneratedMessage 2137 .parseDelimitedWithIOException(PARSER, input); 2138 } 2139 2140 public static dev.enola.core.util.proto.Log parseDelimitedFrom( 2141 java.io.InputStream input, 2142 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2143 throws java.io.IOException { 2144 return com.google.protobuf.GeneratedMessage 2145 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 2146 } 2147 public static dev.enola.core.util.proto.Log parseFrom( 2148 com.google.protobuf.CodedInputStream input) 2149 throws java.io.IOException { 2150 return com.google.protobuf.GeneratedMessage 2151 .parseWithIOException(PARSER, input); 2152 } 2153 public static dev.enola.core.util.proto.Log parseFrom( 2154 com.google.protobuf.CodedInputStream input, 2155 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2156 throws java.io.IOException { 2157 return com.google.protobuf.GeneratedMessage 2158 .parseWithIOException(PARSER, input, extensionRegistry); 2159 } 2160 2161 @java.lang.Override 2162 public Builder newBuilderForType() { return newBuilder(); } 2163 public static Builder newBuilder() { 2164 return DEFAULT_INSTANCE.toBuilder(); 2165 } 2166 public static Builder newBuilder(dev.enola.core.util.proto.Log prototype) { 2167 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2168 } 2169 @java.lang.Override 2170 public Builder toBuilder() { 2171 return this == DEFAULT_INSTANCE 2172 ? new Builder() : new Builder().mergeFrom(this); 2173 } 2174 2175 @java.lang.Override 2176 protected Builder newBuilderForType( 2177 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 2178 Builder builder = new Builder(parent); 2179 return builder; 2180 } 2181 /** 2182 * <pre> 2183 * TODO Log isn't actually used, just yet... 2184 * </pre> 2185 * 2186 * Protobuf type {@code dev.enola.core.util.Log} 2187 */ 2188 public static final class Builder extends 2189 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 2190 // @@protoc_insertion_point(builder_implements:dev.enola.core.util.Log) 2191 dev.enola.core.util.proto.LogOrBuilder { 2192 public static final com.google.protobuf.Descriptors.Descriptor 2193 getDescriptor() { 2194 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_descriptor; 2195 } 2196 2197 @java.lang.Override 2198 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2199 internalGetFieldAccessorTable() { 2200 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_fieldAccessorTable 2201 .ensureFieldAccessorsInitialized( 2202 dev.enola.core.util.proto.Log.class, dev.enola.core.util.proto.Log.Builder.class); 2203 } 2204 2205 // Construct using dev.enola.core.util.proto.Log.newBuilder() 2206 private Builder() { 2207 2208 } 2209 2210 private Builder( 2211 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 2212 super(parent); 2213 2214 } 2215 @java.lang.Override 2216 public Builder clear() { 2217 super.clear(); 2218 bitField0_ = 0; 2219 if (inlineBuilder_ != null) { 2220 inlineBuilder_.clear(); 2221 } 2222 oneofCase_ = 0; 2223 oneof_ = null; 2224 return this; 2225 } 2226 2227 @java.lang.Override 2228 public com.google.protobuf.Descriptors.Descriptor 2229 getDescriptorForType() { 2230 return dev.enola.core.util.proto.EnolaUtil.internal_static_dev_enola_core_util_Log_descriptor; 2231 } 2232 2233 @java.lang.Override 2234 public dev.enola.core.util.proto.Log getDefaultInstanceForType() { 2235 return dev.enola.core.util.proto.Log.getDefaultInstance(); 2236 } 2237 2238 @java.lang.Override 2239 public dev.enola.core.util.proto.Log build() { 2240 dev.enola.core.util.proto.Log result = buildPartial(); 2241 if (!result.isInitialized()) { 2242 throw newUninitializedMessageException(result); 2243 } 2244 return result; 2245 } 2246 2247 @java.lang.Override 2248 public dev.enola.core.util.proto.Log buildPartial() { 2249 dev.enola.core.util.proto.Log result = new dev.enola.core.util.proto.Log(this); 2250 if (bitField0_ != 0) { buildPartial0(result); } 2251 buildPartialOneofs(result); 2252 onBuilt(); 2253 return result; 2254 } 2255 2256 private void buildPartial0(dev.enola.core.util.proto.Log result) { 2257 int from_bitField0_ = bitField0_; 2258 } 2259 2260 private void buildPartialOneofs(dev.enola.core.util.proto.Log result) { 2261 result.oneofCase_ = oneofCase_; 2262 result.oneof_ = this.oneof_; 2263 if (oneofCase_ == 2 && 2264 inlineBuilder_ != null) { 2265 result.oneof_ = inlineBuilder_.build(); 2266 } 2267 } 2268 2269 @java.lang.Override 2270 public Builder mergeFrom(com.google.protobuf.Message other) { 2271 if (other instanceof dev.enola.core.util.proto.Log) { 2272 return mergeFrom((dev.enola.core.util.proto.Log)other); 2273 } else { 2274 super.mergeFrom(other); 2275 return this; 2276 } 2277 } 2278 2279 public Builder mergeFrom(dev.enola.core.util.proto.Log other) { 2280 if (other == dev.enola.core.util.proto.Log.getDefaultInstance()) return this; 2281 switch (other.getOneofCase()) { 2282 case URL: { 2283 oneofCase_ = 1; 2284 oneof_ = other.oneof_; 2285 onChanged(); 2286 break; 2287 } 2288 case INLINE: { 2289 mergeInline(other.getInline()); 2290 break; 2291 } 2292 case ONEOF_NOT_SET: { 2293 break; 2294 } 2295 } 2296 this.mergeUnknownFields(other.getUnknownFields()); 2297 onChanged(); 2298 return this; 2299 } 2300 2301 @java.lang.Override 2302 public final boolean isInitialized() { 2303 return true; 2304 } 2305 2306 @java.lang.Override 2307 public Builder mergeFrom( 2308 com.google.protobuf.CodedInputStream input, 2309 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2310 throws java.io.IOException { 2311 if (extensionRegistry == null) { 2312 throw new java.lang.NullPointerException(); 2313 } 2314 try { 2315 boolean done = false; 2316 while (!done) { 2317 int tag = input.readTag(); 2318 switch (tag) { 2319 case 0: 2320 done = true; 2321 break; 2322 case 10: { 2323 java.lang.String s = input.readStringRequireUtf8(); 2324 oneofCase_ = 1; 2325 oneof_ = s; 2326 break; 2327 } // case 10 2328 case 18: { 2329 input.readMessage( 2330 internalGetInlineFieldBuilder().getBuilder(), 2331 extensionRegistry); 2332 oneofCase_ = 2; 2333 break; 2334 } // case 18 2335 default: { 2336 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2337 done = true; // was an endgroup tag 2338 } 2339 break; 2340 } // default: 2341 } // switch (tag) 2342 } // while (!done) 2343 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2344 throw e.unwrapIOException(); 2345 } finally { 2346 onChanged(); 2347 } // finally 2348 return this; 2349 } 2350 private int oneofCase_ = 0; 2351 private java.lang.Object oneof_; 2352 public OneofCase 2353 getOneofCase() { 2354 return OneofCase.forNumber( 2355 oneofCase_); 2356 } 2357 2358 public Builder clearOneof() { 2359 oneofCase_ = 0; 2360 oneof_ = null; 2361 onChanged(); 2362 return this; 2363 } 2364 2365 private int bitField0_; 2366 2367 /** 2368 * <code>string url = 1;</code> 2369 * @return Whether the url field is set. 2370 */ 2371 @java.lang.Override 2372 public boolean hasUrl() { 2373 return oneofCase_ == 1; 2374 } 2375 /** 2376 * <code>string url = 1;</code> 2377 * @return The url. 2378 */ 2379 @java.lang.Override 2380 public java.lang.String getUrl() { 2381 java.lang.Object ref = ""; 2382 if (oneofCase_ == 1) { 2383 ref = oneof_; 2384 } 2385 if (!(ref instanceof java.lang.String)) { 2386 com.google.protobuf.ByteString bs = 2387 (com.google.protobuf.ByteString) ref; 2388 java.lang.String s = bs.toStringUtf8(); 2389 if (oneofCase_ == 1) { 2390 oneof_ = s; 2391 } 2392 return s; 2393 } else { 2394 return (java.lang.String) ref; 2395 } 2396 } 2397 /** 2398 * <code>string url = 1;</code> 2399 * @return The bytes for url. 2400 */ 2401 @java.lang.Override 2402 public com.google.protobuf.ByteString 2403 getUrlBytes() { 2404 java.lang.Object ref = ""; 2405 if (oneofCase_ == 1) { 2406 ref = oneof_; 2407 } 2408 if (ref instanceof String) { 2409 com.google.protobuf.ByteString b = 2410 com.google.protobuf.ByteString.copyFromUtf8( 2411 (java.lang.String) ref); 2412 if (oneofCase_ == 1) { 2413 oneof_ = b; 2414 } 2415 return b; 2416 } else { 2417 return (com.google.protobuf.ByteString) ref; 2418 } 2419 } 2420 /** 2421 * <code>string url = 1;</code> 2422 * @param value The url to set. 2423 * @return This builder for chaining. 2424 */ 2425 public Builder setUrl( 2426 java.lang.String value) { 2427 if (value == null) { throw new NullPointerException(); } 2428 oneofCase_ = 1; 2429 oneof_ = value; 2430 onChanged(); 2431 return this; 2432 } 2433 /** 2434 * <code>string url = 1;</code> 2435 * @return This builder for chaining. 2436 */ 2437 public Builder clearUrl() { 2438 if (oneofCase_ == 1) { 2439 oneofCase_ = 0; 2440 oneof_ = null; 2441 onChanged(); 2442 } 2443 return this; 2444 } 2445 /** 2446 * <code>string url = 1;</code> 2447 * @param value The bytes for url to set. 2448 * @return This builder for chaining. 2449 */ 2450 public Builder setUrlBytes( 2451 com.google.protobuf.ByteString value) { 2452 if (value == null) { throw new NullPointerException(); } 2453 checkByteStringIsUtf8(value); 2454 oneofCase_ = 1; 2455 oneof_ = value; 2456 onChanged(); 2457 return this; 2458 } 2459 2460 private com.google.protobuf.SingleFieldBuilder< 2461 dev.enola.core.util.proto.Log.Inline, dev.enola.core.util.proto.Log.Inline.Builder, dev.enola.core.util.proto.Log.InlineOrBuilder> inlineBuilder_; 2462 /** 2463 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 2464 * @return Whether the inline field is set. 2465 */ 2466 @java.lang.Override 2467 public boolean hasInline() { 2468 return oneofCase_ == 2; 2469 } 2470 /** 2471 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 2472 * @return The inline. 2473 */ 2474 @java.lang.Override 2475 public dev.enola.core.util.proto.Log.Inline getInline() { 2476 if (inlineBuilder_ == null) { 2477 if (oneofCase_ == 2) { 2478 return (dev.enola.core.util.proto.Log.Inline) oneof_; 2479 } 2480 return dev.enola.core.util.proto.Log.Inline.getDefaultInstance(); 2481 } else { 2482 if (oneofCase_ == 2) { 2483 return inlineBuilder_.getMessage(); 2484 } 2485 return dev.enola.core.util.proto.Log.Inline.getDefaultInstance(); 2486 } 2487 } 2488 /** 2489 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 2490 */ 2491 public Builder setInline(dev.enola.core.util.proto.Log.Inline value) { 2492 if (inlineBuilder_ == null) { 2493 if (value == null) { 2494 throw new NullPointerException(); 2495 } 2496 oneof_ = value; 2497 onChanged(); 2498 } else { 2499 inlineBuilder_.setMessage(value); 2500 } 2501 oneofCase_ = 2; 2502 return this; 2503 } 2504 /** 2505 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 2506 */ 2507 public Builder setInline( 2508 dev.enola.core.util.proto.Log.Inline.Builder builderForValue) { 2509 if (inlineBuilder_ == null) { 2510 oneof_ = builderForValue.build(); 2511 onChanged(); 2512 } else { 2513 inlineBuilder_.setMessage(builderForValue.build()); 2514 } 2515 oneofCase_ = 2; 2516 return this; 2517 } 2518 /** 2519 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 2520 */ 2521 public Builder mergeInline(dev.enola.core.util.proto.Log.Inline value) { 2522 if (inlineBuilder_ == null) { 2523 if (oneofCase_ == 2 && 2524 oneof_ != dev.enola.core.util.proto.Log.Inline.getDefaultInstance()) { 2525 oneof_ = dev.enola.core.util.proto.Log.Inline.newBuilder((dev.enola.core.util.proto.Log.Inline) oneof_) 2526 .mergeFrom(value).buildPartial(); 2527 } else { 2528 oneof_ = value; 2529 } 2530 onChanged(); 2531 } else { 2532 if (oneofCase_ == 2) { 2533 inlineBuilder_.mergeFrom(value); 2534 } else { 2535 inlineBuilder_.setMessage(value); 2536 } 2537 } 2538 oneofCase_ = 2; 2539 return this; 2540 } 2541 /** 2542 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 2543 */ 2544 public Builder clearInline() { 2545 if (inlineBuilder_ == null) { 2546 if (oneofCase_ == 2) { 2547 oneofCase_ = 0; 2548 oneof_ = null; 2549 onChanged(); 2550 } 2551 } else { 2552 if (oneofCase_ == 2) { 2553 oneofCase_ = 0; 2554 oneof_ = null; 2555 } 2556 inlineBuilder_.clear(); 2557 } 2558 return this; 2559 } 2560 /** 2561 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 2562 */ 2563 public dev.enola.core.util.proto.Log.Inline.Builder getInlineBuilder() { 2564 return internalGetInlineFieldBuilder().getBuilder(); 2565 } 2566 /** 2567 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 2568 */ 2569 @java.lang.Override 2570 public dev.enola.core.util.proto.Log.InlineOrBuilder getInlineOrBuilder() { 2571 if ((oneofCase_ == 2) && (inlineBuilder_ != null)) { 2572 return inlineBuilder_.getMessageOrBuilder(); 2573 } else { 2574 if (oneofCase_ == 2) { 2575 return (dev.enola.core.util.proto.Log.Inline) oneof_; 2576 } 2577 return dev.enola.core.util.proto.Log.Inline.getDefaultInstance(); 2578 } 2579 } 2580 /** 2581 * <code>.dev.enola.core.util.Log.Inline inline = 2;</code> 2582 */ 2583 private com.google.protobuf.SingleFieldBuilder< 2584 dev.enola.core.util.proto.Log.Inline, dev.enola.core.util.proto.Log.Inline.Builder, dev.enola.core.util.proto.Log.InlineOrBuilder> 2585 internalGetInlineFieldBuilder() { 2586 if (inlineBuilder_ == null) { 2587 if (!(oneofCase_ == 2)) { 2588 oneof_ = dev.enola.core.util.proto.Log.Inline.getDefaultInstance(); 2589 } 2590 inlineBuilder_ = new com.google.protobuf.SingleFieldBuilder< 2591 dev.enola.core.util.proto.Log.Inline, dev.enola.core.util.proto.Log.Inline.Builder, dev.enola.core.util.proto.Log.InlineOrBuilder>( 2592 (dev.enola.core.util.proto.Log.Inline) oneof_, 2593 getParentForChildren(), 2594 isClean()); 2595 oneof_ = null; 2596 } 2597 oneofCase_ = 2; 2598 onChanged(); 2599 return inlineBuilder_; 2600 } 2601 2602 // @@protoc_insertion_point(builder_scope:dev.enola.core.util.Log) 2603 } 2604 2605 // @@protoc_insertion_point(class_scope:dev.enola.core.util.Log) 2606 private static final dev.enola.core.util.proto.Log DEFAULT_INSTANCE; 2607 static { 2608 DEFAULT_INSTANCE = new dev.enola.core.util.proto.Log(); 2609 } 2610 2611 public static dev.enola.core.util.proto.Log getDefaultInstance() { 2612 return DEFAULT_INSTANCE; 2613 } 2614 2615 private static final com.google.protobuf.Parser<Log> 2616 PARSER = new com.google.protobuf.AbstractParser<Log>() { 2617 @java.lang.Override 2618 public Log parsePartialFrom( 2619 com.google.protobuf.CodedInputStream input, 2620 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2621 throws com.google.protobuf.InvalidProtocolBufferException { 2622 Builder builder = newBuilder(); 2623 try { 2624 builder.mergeFrom(input, extensionRegistry); 2625 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2626 throw e.setUnfinishedMessage(builder.buildPartial()); 2627 } catch (com.google.protobuf.UninitializedMessageException e) { 2628 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2629 } catch (java.io.IOException e) { 2630 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2631 .setUnfinishedMessage(builder.buildPartial()); 2632 } 2633 return builder.buildPartial(); 2634 } 2635 }; 2636 2637 public static com.google.protobuf.Parser<Log> parser() { 2638 return PARSER; 2639 } 2640 2641 @java.lang.Override 2642 public com.google.protobuf.Parser<Log> getParserForType() { 2643 return PARSER; 2644 } 2645 2646 @java.lang.Override 2647 public dev.enola.core.util.proto.Log getDefaultInstanceForType() { 2648 return DEFAULT_INSTANCE; 2649 } 2650 2651} 2652