001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// source: hapi/release/test_run.proto 003 004package hapi.release; 005 006public final class TestRunOuterClass { 007 private TestRunOuterClass() {} 008 public static void registerAllExtensions( 009 com.google.protobuf.ExtensionRegistryLite registry) { 010 } 011 012 public static void registerAllExtensions( 013 com.google.protobuf.ExtensionRegistry registry) { 014 registerAllExtensions( 015 (com.google.protobuf.ExtensionRegistryLite) registry); 016 } 017 public interface TestRunOrBuilder extends 018 // @@protoc_insertion_point(interface_extends:hapi.release.TestRun) 019 com.google.protobuf.MessageOrBuilder { 020 021 /** 022 * <code>string name = 1;</code> 023 */ 024 java.lang.String getName(); 025 /** 026 * <code>string name = 1;</code> 027 */ 028 com.google.protobuf.ByteString 029 getNameBytes(); 030 031 /** 032 * <code>.hapi.release.TestRun.Status status = 2;</code> 033 */ 034 int getStatusValue(); 035 /** 036 * <code>.hapi.release.TestRun.Status status = 2;</code> 037 */ 038 hapi.release.TestRunOuterClass.TestRun.Status getStatus(); 039 040 /** 041 * <code>string info = 3;</code> 042 */ 043 java.lang.String getInfo(); 044 /** 045 * <code>string info = 3;</code> 046 */ 047 com.google.protobuf.ByteString 048 getInfoBytes(); 049 050 /** 051 * <code>.google.protobuf.Timestamp started_at = 4;</code> 052 */ 053 boolean hasStartedAt(); 054 /** 055 * <code>.google.protobuf.Timestamp started_at = 4;</code> 056 */ 057 com.google.protobuf.Timestamp getStartedAt(); 058 /** 059 * <code>.google.protobuf.Timestamp started_at = 4;</code> 060 */ 061 com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); 062 063 /** 064 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 065 */ 066 boolean hasCompletedAt(); 067 /** 068 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 069 */ 070 com.google.protobuf.Timestamp getCompletedAt(); 071 /** 072 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 073 */ 074 com.google.protobuf.TimestampOrBuilder getCompletedAtOrBuilder(); 075 } 076 /** 077 * Protobuf type {@code hapi.release.TestRun} 078 */ 079 public static final class TestRun extends 080 com.google.protobuf.GeneratedMessageV3 implements 081 // @@protoc_insertion_point(message_implements:hapi.release.TestRun) 082 TestRunOrBuilder { 083 // Use TestRun.newBuilder() to construct. 084 private TestRun(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 085 super(builder); 086 } 087 private TestRun() { 088 name_ = ""; 089 status_ = 0; 090 info_ = ""; 091 } 092 093 @java.lang.Override 094 public final com.google.protobuf.UnknownFieldSet 095 getUnknownFields() { 096 return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); 097 } 098 private TestRun( 099 com.google.protobuf.CodedInputStream input, 100 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 101 throws com.google.protobuf.InvalidProtocolBufferException { 102 this(); 103 int mutable_bitField0_ = 0; 104 try { 105 boolean done = false; 106 while (!done) { 107 int tag = input.readTag(); 108 switch (tag) { 109 case 0: 110 done = true; 111 break; 112 default: { 113 if (!input.skipField(tag)) { 114 done = true; 115 } 116 break; 117 } 118 case 10: { 119 java.lang.String s = input.readStringRequireUtf8(); 120 121 name_ = s; 122 break; 123 } 124 case 16: { 125 int rawValue = input.readEnum(); 126 127 status_ = rawValue; 128 break; 129 } 130 case 26: { 131 java.lang.String s = input.readStringRequireUtf8(); 132 133 info_ = s; 134 break; 135 } 136 case 34: { 137 com.google.protobuf.Timestamp.Builder subBuilder = null; 138 if (startedAt_ != null) { 139 subBuilder = startedAt_.toBuilder(); 140 } 141 startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); 142 if (subBuilder != null) { 143 subBuilder.mergeFrom(startedAt_); 144 startedAt_ = subBuilder.buildPartial(); 145 } 146 147 break; 148 } 149 case 42: { 150 com.google.protobuf.Timestamp.Builder subBuilder = null; 151 if (completedAt_ != null) { 152 subBuilder = completedAt_.toBuilder(); 153 } 154 completedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); 155 if (subBuilder != null) { 156 subBuilder.mergeFrom(completedAt_); 157 completedAt_ = subBuilder.buildPartial(); 158 } 159 160 break; 161 } 162 } 163 } 164 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 165 throw e.setUnfinishedMessage(this); 166 } catch (java.io.IOException e) { 167 throw new com.google.protobuf.InvalidProtocolBufferException( 168 e).setUnfinishedMessage(this); 169 } finally { 170 makeExtensionsImmutable(); 171 } 172 } 173 public static final com.google.protobuf.Descriptors.Descriptor 174 getDescriptor() { 175 return hapi.release.TestRunOuterClass.internal_static_hapi_release_TestRun_descriptor; 176 } 177 178 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 179 internalGetFieldAccessorTable() { 180 return hapi.release.TestRunOuterClass.internal_static_hapi_release_TestRun_fieldAccessorTable 181 .ensureFieldAccessorsInitialized( 182 hapi.release.TestRunOuterClass.TestRun.class, hapi.release.TestRunOuterClass.TestRun.Builder.class); 183 } 184 185 /** 186 * Protobuf enum {@code hapi.release.TestRun.Status} 187 */ 188 public enum Status 189 implements com.google.protobuf.ProtocolMessageEnum { 190 /** 191 * <code>UNKNOWN = 0;</code> 192 */ 193 UNKNOWN(0), 194 /** 195 * <code>SUCCESS = 1;</code> 196 */ 197 SUCCESS(1), 198 /** 199 * <code>FAILURE = 2;</code> 200 */ 201 FAILURE(2), 202 /** 203 * <code>RUNNING = 3;</code> 204 */ 205 RUNNING(3), 206 UNRECOGNIZED(-1), 207 ; 208 209 /** 210 * <code>UNKNOWN = 0;</code> 211 */ 212 public static final int UNKNOWN_VALUE = 0; 213 /** 214 * <code>SUCCESS = 1;</code> 215 */ 216 public static final int SUCCESS_VALUE = 1; 217 /** 218 * <code>FAILURE = 2;</code> 219 */ 220 public static final int FAILURE_VALUE = 2; 221 /** 222 * <code>RUNNING = 3;</code> 223 */ 224 public static final int RUNNING_VALUE = 3; 225 226 227 public final int getNumber() { 228 if (this == UNRECOGNIZED) { 229 throw new java.lang.IllegalArgumentException( 230 "Can't get the number of an unknown enum value."); 231 } 232 return value; 233 } 234 235 /** 236 * @deprecated Use {@link #forNumber(int)} instead. 237 */ 238 @java.lang.Deprecated 239 public static Status valueOf(int value) { 240 return forNumber(value); 241 } 242 243 public static Status forNumber(int value) { 244 switch (value) { 245 case 0: return UNKNOWN; 246 case 1: return SUCCESS; 247 case 2: return FAILURE; 248 case 3: return RUNNING; 249 default: return null; 250 } 251 } 252 253 public static com.google.protobuf.Internal.EnumLiteMap<Status> 254 internalGetValueMap() { 255 return internalValueMap; 256 } 257 private static final com.google.protobuf.Internal.EnumLiteMap< 258 Status> internalValueMap = 259 new com.google.protobuf.Internal.EnumLiteMap<Status>() { 260 public Status findValueByNumber(int number) { 261 return Status.forNumber(number); 262 } 263 }; 264 265 public final com.google.protobuf.Descriptors.EnumValueDescriptor 266 getValueDescriptor() { 267 return getDescriptor().getValues().get(ordinal()); 268 } 269 public final com.google.protobuf.Descriptors.EnumDescriptor 270 getDescriptorForType() { 271 return getDescriptor(); 272 } 273 public static final com.google.protobuf.Descriptors.EnumDescriptor 274 getDescriptor() { 275 return hapi.release.TestRunOuterClass.TestRun.getDescriptor().getEnumTypes().get(0); 276 } 277 278 private static final Status[] VALUES = values(); 279 280 public static Status valueOf( 281 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 282 if (desc.getType() != getDescriptor()) { 283 throw new java.lang.IllegalArgumentException( 284 "EnumValueDescriptor is not for this type."); 285 } 286 if (desc.getIndex() == -1) { 287 return UNRECOGNIZED; 288 } 289 return VALUES[desc.getIndex()]; 290 } 291 292 private final int value; 293 294 private Status(int value) { 295 this.value = value; 296 } 297 298 // @@protoc_insertion_point(enum_scope:hapi.release.TestRun.Status) 299 } 300 301 public static final int NAME_FIELD_NUMBER = 1; 302 private volatile java.lang.Object name_; 303 /** 304 * <code>string name = 1;</code> 305 */ 306 public java.lang.String getName() { 307 java.lang.Object ref = name_; 308 if (ref instanceof java.lang.String) { 309 return (java.lang.String) ref; 310 } else { 311 com.google.protobuf.ByteString bs = 312 (com.google.protobuf.ByteString) ref; 313 java.lang.String s = bs.toStringUtf8(); 314 name_ = s; 315 return s; 316 } 317 } 318 /** 319 * <code>string name = 1;</code> 320 */ 321 public com.google.protobuf.ByteString 322 getNameBytes() { 323 java.lang.Object ref = name_; 324 if (ref instanceof java.lang.String) { 325 com.google.protobuf.ByteString b = 326 com.google.protobuf.ByteString.copyFromUtf8( 327 (java.lang.String) ref); 328 name_ = b; 329 return b; 330 } else { 331 return (com.google.protobuf.ByteString) ref; 332 } 333 } 334 335 public static final int STATUS_FIELD_NUMBER = 2; 336 private int status_; 337 /** 338 * <code>.hapi.release.TestRun.Status status = 2;</code> 339 */ 340 public int getStatusValue() { 341 return status_; 342 } 343 /** 344 * <code>.hapi.release.TestRun.Status status = 2;</code> 345 */ 346 public hapi.release.TestRunOuterClass.TestRun.Status getStatus() { 347 hapi.release.TestRunOuterClass.TestRun.Status result = hapi.release.TestRunOuterClass.TestRun.Status.valueOf(status_); 348 return result == null ? hapi.release.TestRunOuterClass.TestRun.Status.UNRECOGNIZED : result; 349 } 350 351 public static final int INFO_FIELD_NUMBER = 3; 352 private volatile java.lang.Object info_; 353 /** 354 * <code>string info = 3;</code> 355 */ 356 public java.lang.String getInfo() { 357 java.lang.Object ref = info_; 358 if (ref instanceof java.lang.String) { 359 return (java.lang.String) ref; 360 } else { 361 com.google.protobuf.ByteString bs = 362 (com.google.protobuf.ByteString) ref; 363 java.lang.String s = bs.toStringUtf8(); 364 info_ = s; 365 return s; 366 } 367 } 368 /** 369 * <code>string info = 3;</code> 370 */ 371 public com.google.protobuf.ByteString 372 getInfoBytes() { 373 java.lang.Object ref = info_; 374 if (ref instanceof java.lang.String) { 375 com.google.protobuf.ByteString b = 376 com.google.protobuf.ByteString.copyFromUtf8( 377 (java.lang.String) ref); 378 info_ = b; 379 return b; 380 } else { 381 return (com.google.protobuf.ByteString) ref; 382 } 383 } 384 385 public static final int STARTED_AT_FIELD_NUMBER = 4; 386 private com.google.protobuf.Timestamp startedAt_; 387 /** 388 * <code>.google.protobuf.Timestamp started_at = 4;</code> 389 */ 390 public boolean hasStartedAt() { 391 return startedAt_ != null; 392 } 393 /** 394 * <code>.google.protobuf.Timestamp started_at = 4;</code> 395 */ 396 public com.google.protobuf.Timestamp getStartedAt() { 397 return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; 398 } 399 /** 400 * <code>.google.protobuf.Timestamp started_at = 4;</code> 401 */ 402 public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { 403 return getStartedAt(); 404 } 405 406 public static final int COMPLETED_AT_FIELD_NUMBER = 5; 407 private com.google.protobuf.Timestamp completedAt_; 408 /** 409 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 410 */ 411 public boolean hasCompletedAt() { 412 return completedAt_ != null; 413 } 414 /** 415 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 416 */ 417 public com.google.protobuf.Timestamp getCompletedAt() { 418 return completedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completedAt_; 419 } 420 /** 421 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 422 */ 423 public com.google.protobuf.TimestampOrBuilder getCompletedAtOrBuilder() { 424 return getCompletedAt(); 425 } 426 427 private byte memoizedIsInitialized = -1; 428 public final boolean isInitialized() { 429 byte isInitialized = memoizedIsInitialized; 430 if (isInitialized == 1) return true; 431 if (isInitialized == 0) return false; 432 433 memoizedIsInitialized = 1; 434 return true; 435 } 436 437 public void writeTo(com.google.protobuf.CodedOutputStream output) 438 throws java.io.IOException { 439 if (!getNameBytes().isEmpty()) { 440 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 441 } 442 if (status_ != hapi.release.TestRunOuterClass.TestRun.Status.UNKNOWN.getNumber()) { 443 output.writeEnum(2, status_); 444 } 445 if (!getInfoBytes().isEmpty()) { 446 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, info_); 447 } 448 if (startedAt_ != null) { 449 output.writeMessage(4, getStartedAt()); 450 } 451 if (completedAt_ != null) { 452 output.writeMessage(5, getCompletedAt()); 453 } 454 } 455 456 public int getSerializedSize() { 457 int size = memoizedSize; 458 if (size != -1) return size; 459 460 size = 0; 461 if (!getNameBytes().isEmpty()) { 462 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 463 } 464 if (status_ != hapi.release.TestRunOuterClass.TestRun.Status.UNKNOWN.getNumber()) { 465 size += com.google.protobuf.CodedOutputStream 466 .computeEnumSize(2, status_); 467 } 468 if (!getInfoBytes().isEmpty()) { 469 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, info_); 470 } 471 if (startedAt_ != null) { 472 size += com.google.protobuf.CodedOutputStream 473 .computeMessageSize(4, getStartedAt()); 474 } 475 if (completedAt_ != null) { 476 size += com.google.protobuf.CodedOutputStream 477 .computeMessageSize(5, getCompletedAt()); 478 } 479 memoizedSize = size; 480 return size; 481 } 482 483 private static final long serialVersionUID = 0L; 484 @java.lang.Override 485 public boolean equals(final java.lang.Object obj) { 486 if (obj == this) { 487 return true; 488 } 489 if (!(obj instanceof hapi.release.TestRunOuterClass.TestRun)) { 490 return super.equals(obj); 491 } 492 hapi.release.TestRunOuterClass.TestRun other = (hapi.release.TestRunOuterClass.TestRun) obj; 493 494 boolean result = true; 495 result = result && getName() 496 .equals(other.getName()); 497 result = result && status_ == other.status_; 498 result = result && getInfo() 499 .equals(other.getInfo()); 500 result = result && (hasStartedAt() == other.hasStartedAt()); 501 if (hasStartedAt()) { 502 result = result && getStartedAt() 503 .equals(other.getStartedAt()); 504 } 505 result = result && (hasCompletedAt() == other.hasCompletedAt()); 506 if (hasCompletedAt()) { 507 result = result && getCompletedAt() 508 .equals(other.getCompletedAt()); 509 } 510 return result; 511 } 512 513 @java.lang.Override 514 public int hashCode() { 515 if (memoizedHashCode != 0) { 516 return memoizedHashCode; 517 } 518 int hash = 41; 519 hash = (19 * hash) + getDescriptor().hashCode(); 520 hash = (37 * hash) + NAME_FIELD_NUMBER; 521 hash = (53 * hash) + getName().hashCode(); 522 hash = (37 * hash) + STATUS_FIELD_NUMBER; 523 hash = (53 * hash) + status_; 524 hash = (37 * hash) + INFO_FIELD_NUMBER; 525 hash = (53 * hash) + getInfo().hashCode(); 526 if (hasStartedAt()) { 527 hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; 528 hash = (53 * hash) + getStartedAt().hashCode(); 529 } 530 if (hasCompletedAt()) { 531 hash = (37 * hash) + COMPLETED_AT_FIELD_NUMBER; 532 hash = (53 * hash) + getCompletedAt().hashCode(); 533 } 534 hash = (29 * hash) + unknownFields.hashCode(); 535 memoizedHashCode = hash; 536 return hash; 537 } 538 539 public static hapi.release.TestRunOuterClass.TestRun parseFrom( 540 java.nio.ByteBuffer data) 541 throws com.google.protobuf.InvalidProtocolBufferException { 542 return PARSER.parseFrom(data); 543 } 544 public static hapi.release.TestRunOuterClass.TestRun parseFrom( 545 java.nio.ByteBuffer data, 546 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 547 throws com.google.protobuf.InvalidProtocolBufferException { 548 return PARSER.parseFrom(data, extensionRegistry); 549 } 550 public static hapi.release.TestRunOuterClass.TestRun parseFrom( 551 com.google.protobuf.ByteString data) 552 throws com.google.protobuf.InvalidProtocolBufferException { 553 return PARSER.parseFrom(data); 554 } 555 public static hapi.release.TestRunOuterClass.TestRun parseFrom( 556 com.google.protobuf.ByteString data, 557 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 558 throws com.google.protobuf.InvalidProtocolBufferException { 559 return PARSER.parseFrom(data, extensionRegistry); 560 } 561 public static hapi.release.TestRunOuterClass.TestRun parseFrom(byte[] data) 562 throws com.google.protobuf.InvalidProtocolBufferException { 563 return PARSER.parseFrom(data); 564 } 565 public static hapi.release.TestRunOuterClass.TestRun parseFrom( 566 byte[] data, 567 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 568 throws com.google.protobuf.InvalidProtocolBufferException { 569 return PARSER.parseFrom(data, extensionRegistry); 570 } 571 public static hapi.release.TestRunOuterClass.TestRun parseFrom(java.io.InputStream input) 572 throws java.io.IOException { 573 return com.google.protobuf.GeneratedMessageV3 574 .parseWithIOException(PARSER, input); 575 } 576 public static hapi.release.TestRunOuterClass.TestRun parseFrom( 577 java.io.InputStream input, 578 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 579 throws java.io.IOException { 580 return com.google.protobuf.GeneratedMessageV3 581 .parseWithIOException(PARSER, input, extensionRegistry); 582 } 583 public static hapi.release.TestRunOuterClass.TestRun parseDelimitedFrom(java.io.InputStream input) 584 throws java.io.IOException { 585 return com.google.protobuf.GeneratedMessageV3 586 .parseDelimitedWithIOException(PARSER, input); 587 } 588 public static hapi.release.TestRunOuterClass.TestRun parseDelimitedFrom( 589 java.io.InputStream input, 590 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 591 throws java.io.IOException { 592 return com.google.protobuf.GeneratedMessageV3 593 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 594 } 595 public static hapi.release.TestRunOuterClass.TestRun parseFrom( 596 com.google.protobuf.CodedInputStream input) 597 throws java.io.IOException { 598 return com.google.protobuf.GeneratedMessageV3 599 .parseWithIOException(PARSER, input); 600 } 601 public static hapi.release.TestRunOuterClass.TestRun parseFrom( 602 com.google.protobuf.CodedInputStream input, 603 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 604 throws java.io.IOException { 605 return com.google.protobuf.GeneratedMessageV3 606 .parseWithIOException(PARSER, input, extensionRegistry); 607 } 608 609 public Builder newBuilderForType() { return newBuilder(); } 610 public static Builder newBuilder() { 611 return DEFAULT_INSTANCE.toBuilder(); 612 } 613 public static Builder newBuilder(hapi.release.TestRunOuterClass.TestRun prototype) { 614 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 615 } 616 public Builder toBuilder() { 617 return this == DEFAULT_INSTANCE 618 ? new Builder() : new Builder().mergeFrom(this); 619 } 620 621 @java.lang.Override 622 protected Builder newBuilderForType( 623 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 624 Builder builder = new Builder(parent); 625 return builder; 626 } 627 /** 628 * Protobuf type {@code hapi.release.TestRun} 629 */ 630 public static final class Builder extends 631 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 632 // @@protoc_insertion_point(builder_implements:hapi.release.TestRun) 633 hapi.release.TestRunOuterClass.TestRunOrBuilder { 634 public static final com.google.protobuf.Descriptors.Descriptor 635 getDescriptor() { 636 return hapi.release.TestRunOuterClass.internal_static_hapi_release_TestRun_descriptor; 637 } 638 639 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 640 internalGetFieldAccessorTable() { 641 return hapi.release.TestRunOuterClass.internal_static_hapi_release_TestRun_fieldAccessorTable 642 .ensureFieldAccessorsInitialized( 643 hapi.release.TestRunOuterClass.TestRun.class, hapi.release.TestRunOuterClass.TestRun.Builder.class); 644 } 645 646 // Construct using hapi.release.TestRunOuterClass.TestRun.newBuilder() 647 private Builder() { 648 maybeForceBuilderInitialization(); 649 } 650 651 private Builder( 652 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 653 super(parent); 654 maybeForceBuilderInitialization(); 655 } 656 private void maybeForceBuilderInitialization() { 657 if (com.google.protobuf.GeneratedMessageV3 658 .alwaysUseFieldBuilders) { 659 } 660 } 661 public Builder clear() { 662 super.clear(); 663 name_ = ""; 664 665 status_ = 0; 666 667 info_ = ""; 668 669 if (startedAtBuilder_ == null) { 670 startedAt_ = null; 671 } else { 672 startedAt_ = null; 673 startedAtBuilder_ = null; 674 } 675 if (completedAtBuilder_ == null) { 676 completedAt_ = null; 677 } else { 678 completedAt_ = null; 679 completedAtBuilder_ = null; 680 } 681 return this; 682 } 683 684 public com.google.protobuf.Descriptors.Descriptor 685 getDescriptorForType() { 686 return hapi.release.TestRunOuterClass.internal_static_hapi_release_TestRun_descriptor; 687 } 688 689 public hapi.release.TestRunOuterClass.TestRun getDefaultInstanceForType() { 690 return hapi.release.TestRunOuterClass.TestRun.getDefaultInstance(); 691 } 692 693 public hapi.release.TestRunOuterClass.TestRun build() { 694 hapi.release.TestRunOuterClass.TestRun result = buildPartial(); 695 if (!result.isInitialized()) { 696 throw newUninitializedMessageException(result); 697 } 698 return result; 699 } 700 701 public hapi.release.TestRunOuterClass.TestRun buildPartial() { 702 hapi.release.TestRunOuterClass.TestRun result = new hapi.release.TestRunOuterClass.TestRun(this); 703 result.name_ = name_; 704 result.status_ = status_; 705 result.info_ = info_; 706 if (startedAtBuilder_ == null) { 707 result.startedAt_ = startedAt_; 708 } else { 709 result.startedAt_ = startedAtBuilder_.build(); 710 } 711 if (completedAtBuilder_ == null) { 712 result.completedAt_ = completedAt_; 713 } else { 714 result.completedAt_ = completedAtBuilder_.build(); 715 } 716 onBuilt(); 717 return result; 718 } 719 720 public Builder clone() { 721 return (Builder) super.clone(); 722 } 723 public Builder setField( 724 com.google.protobuf.Descriptors.FieldDescriptor field, 725 Object value) { 726 return (Builder) super.setField(field, value); 727 } 728 public Builder clearField( 729 com.google.protobuf.Descriptors.FieldDescriptor field) { 730 return (Builder) super.clearField(field); 731 } 732 public Builder clearOneof( 733 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 734 return (Builder) super.clearOneof(oneof); 735 } 736 public Builder setRepeatedField( 737 com.google.protobuf.Descriptors.FieldDescriptor field, 738 int index, Object value) { 739 return (Builder) super.setRepeatedField(field, index, value); 740 } 741 public Builder addRepeatedField( 742 com.google.protobuf.Descriptors.FieldDescriptor field, 743 Object value) { 744 return (Builder) super.addRepeatedField(field, value); 745 } 746 public Builder mergeFrom(com.google.protobuf.Message other) { 747 if (other instanceof hapi.release.TestRunOuterClass.TestRun) { 748 return mergeFrom((hapi.release.TestRunOuterClass.TestRun)other); 749 } else { 750 super.mergeFrom(other); 751 return this; 752 } 753 } 754 755 public Builder mergeFrom(hapi.release.TestRunOuterClass.TestRun other) { 756 if (other == hapi.release.TestRunOuterClass.TestRun.getDefaultInstance()) return this; 757 if (!other.getName().isEmpty()) { 758 name_ = other.name_; 759 onChanged(); 760 } 761 if (other.status_ != 0) { 762 setStatusValue(other.getStatusValue()); 763 } 764 if (!other.getInfo().isEmpty()) { 765 info_ = other.info_; 766 onChanged(); 767 } 768 if (other.hasStartedAt()) { 769 mergeStartedAt(other.getStartedAt()); 770 } 771 if (other.hasCompletedAt()) { 772 mergeCompletedAt(other.getCompletedAt()); 773 } 774 onChanged(); 775 return this; 776 } 777 778 public final boolean isInitialized() { 779 return true; 780 } 781 782 public Builder mergeFrom( 783 com.google.protobuf.CodedInputStream input, 784 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 785 throws java.io.IOException { 786 hapi.release.TestRunOuterClass.TestRun parsedMessage = null; 787 try { 788 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 789 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 790 parsedMessage = (hapi.release.TestRunOuterClass.TestRun) e.getUnfinishedMessage(); 791 throw e.unwrapIOException(); 792 } finally { 793 if (parsedMessage != null) { 794 mergeFrom(parsedMessage); 795 } 796 } 797 return this; 798 } 799 800 private java.lang.Object name_ = ""; 801 /** 802 * <code>string name = 1;</code> 803 */ 804 public java.lang.String getName() { 805 java.lang.Object ref = name_; 806 if (!(ref instanceof java.lang.String)) { 807 com.google.protobuf.ByteString bs = 808 (com.google.protobuf.ByteString) ref; 809 java.lang.String s = bs.toStringUtf8(); 810 name_ = s; 811 return s; 812 } else { 813 return (java.lang.String) ref; 814 } 815 } 816 /** 817 * <code>string name = 1;</code> 818 */ 819 public com.google.protobuf.ByteString 820 getNameBytes() { 821 java.lang.Object ref = name_; 822 if (ref instanceof String) { 823 com.google.protobuf.ByteString b = 824 com.google.protobuf.ByteString.copyFromUtf8( 825 (java.lang.String) ref); 826 name_ = b; 827 return b; 828 } else { 829 return (com.google.protobuf.ByteString) ref; 830 } 831 } 832 /** 833 * <code>string name = 1;</code> 834 */ 835 public Builder setName( 836 java.lang.String value) { 837 if (value == null) { 838 throw new NullPointerException(); 839 } 840 841 name_ = value; 842 onChanged(); 843 return this; 844 } 845 /** 846 * <code>string name = 1;</code> 847 */ 848 public Builder clearName() { 849 850 name_ = getDefaultInstance().getName(); 851 onChanged(); 852 return this; 853 } 854 /** 855 * <code>string name = 1;</code> 856 */ 857 public Builder setNameBytes( 858 com.google.protobuf.ByteString value) { 859 if (value == null) { 860 throw new NullPointerException(); 861 } 862 checkByteStringIsUtf8(value); 863 864 name_ = value; 865 onChanged(); 866 return this; 867 } 868 869 private int status_ = 0; 870 /** 871 * <code>.hapi.release.TestRun.Status status = 2;</code> 872 */ 873 public int getStatusValue() { 874 return status_; 875 } 876 /** 877 * <code>.hapi.release.TestRun.Status status = 2;</code> 878 */ 879 public Builder setStatusValue(int value) { 880 status_ = value; 881 onChanged(); 882 return this; 883 } 884 /** 885 * <code>.hapi.release.TestRun.Status status = 2;</code> 886 */ 887 public hapi.release.TestRunOuterClass.TestRun.Status getStatus() { 888 hapi.release.TestRunOuterClass.TestRun.Status result = hapi.release.TestRunOuterClass.TestRun.Status.valueOf(status_); 889 return result == null ? hapi.release.TestRunOuterClass.TestRun.Status.UNRECOGNIZED : result; 890 } 891 /** 892 * <code>.hapi.release.TestRun.Status status = 2;</code> 893 */ 894 public Builder setStatus(hapi.release.TestRunOuterClass.TestRun.Status value) { 895 if (value == null) { 896 throw new NullPointerException(); 897 } 898 899 status_ = value.getNumber(); 900 onChanged(); 901 return this; 902 } 903 /** 904 * <code>.hapi.release.TestRun.Status status = 2;</code> 905 */ 906 public Builder clearStatus() { 907 908 status_ = 0; 909 onChanged(); 910 return this; 911 } 912 913 private java.lang.Object info_ = ""; 914 /** 915 * <code>string info = 3;</code> 916 */ 917 public java.lang.String getInfo() { 918 java.lang.Object ref = info_; 919 if (!(ref instanceof java.lang.String)) { 920 com.google.protobuf.ByteString bs = 921 (com.google.protobuf.ByteString) ref; 922 java.lang.String s = bs.toStringUtf8(); 923 info_ = s; 924 return s; 925 } else { 926 return (java.lang.String) ref; 927 } 928 } 929 /** 930 * <code>string info = 3;</code> 931 */ 932 public com.google.protobuf.ByteString 933 getInfoBytes() { 934 java.lang.Object ref = info_; 935 if (ref instanceof String) { 936 com.google.protobuf.ByteString b = 937 com.google.protobuf.ByteString.copyFromUtf8( 938 (java.lang.String) ref); 939 info_ = b; 940 return b; 941 } else { 942 return (com.google.protobuf.ByteString) ref; 943 } 944 } 945 /** 946 * <code>string info = 3;</code> 947 */ 948 public Builder setInfo( 949 java.lang.String value) { 950 if (value == null) { 951 throw new NullPointerException(); 952 } 953 954 info_ = value; 955 onChanged(); 956 return this; 957 } 958 /** 959 * <code>string info = 3;</code> 960 */ 961 public Builder clearInfo() { 962 963 info_ = getDefaultInstance().getInfo(); 964 onChanged(); 965 return this; 966 } 967 /** 968 * <code>string info = 3;</code> 969 */ 970 public Builder setInfoBytes( 971 com.google.protobuf.ByteString value) { 972 if (value == null) { 973 throw new NullPointerException(); 974 } 975 checkByteStringIsUtf8(value); 976 977 info_ = value; 978 onChanged(); 979 return this; 980 } 981 982 private com.google.protobuf.Timestamp startedAt_ = null; 983 private com.google.protobuf.SingleFieldBuilderV3< 984 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; 985 /** 986 * <code>.google.protobuf.Timestamp started_at = 4;</code> 987 */ 988 public boolean hasStartedAt() { 989 return startedAtBuilder_ != null || startedAt_ != null; 990 } 991 /** 992 * <code>.google.protobuf.Timestamp started_at = 4;</code> 993 */ 994 public com.google.protobuf.Timestamp getStartedAt() { 995 if (startedAtBuilder_ == null) { 996 return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; 997 } else { 998 return startedAtBuilder_.getMessage(); 999 } 1000 } 1001 /** 1002 * <code>.google.protobuf.Timestamp started_at = 4;</code> 1003 */ 1004 public Builder setStartedAt(com.google.protobuf.Timestamp value) { 1005 if (startedAtBuilder_ == null) { 1006 if (value == null) { 1007 throw new NullPointerException(); 1008 } 1009 startedAt_ = value; 1010 onChanged(); 1011 } else { 1012 startedAtBuilder_.setMessage(value); 1013 } 1014 1015 return this; 1016 } 1017 /** 1018 * <code>.google.protobuf.Timestamp started_at = 4;</code> 1019 */ 1020 public Builder setStartedAt( 1021 com.google.protobuf.Timestamp.Builder builderForValue) { 1022 if (startedAtBuilder_ == null) { 1023 startedAt_ = builderForValue.build(); 1024 onChanged(); 1025 } else { 1026 startedAtBuilder_.setMessage(builderForValue.build()); 1027 } 1028 1029 return this; 1030 } 1031 /** 1032 * <code>.google.protobuf.Timestamp started_at = 4;</code> 1033 */ 1034 public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { 1035 if (startedAtBuilder_ == null) { 1036 if (startedAt_ != null) { 1037 startedAt_ = 1038 com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); 1039 } else { 1040 startedAt_ = value; 1041 } 1042 onChanged(); 1043 } else { 1044 startedAtBuilder_.mergeFrom(value); 1045 } 1046 1047 return this; 1048 } 1049 /** 1050 * <code>.google.protobuf.Timestamp started_at = 4;</code> 1051 */ 1052 public Builder clearStartedAt() { 1053 if (startedAtBuilder_ == null) { 1054 startedAt_ = null; 1055 onChanged(); 1056 } else { 1057 startedAt_ = null; 1058 startedAtBuilder_ = null; 1059 } 1060 1061 return this; 1062 } 1063 /** 1064 * <code>.google.protobuf.Timestamp started_at = 4;</code> 1065 */ 1066 public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { 1067 1068 onChanged(); 1069 return getStartedAtFieldBuilder().getBuilder(); 1070 } 1071 /** 1072 * <code>.google.protobuf.Timestamp started_at = 4;</code> 1073 */ 1074 public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { 1075 if (startedAtBuilder_ != null) { 1076 return startedAtBuilder_.getMessageOrBuilder(); 1077 } else { 1078 return startedAt_ == null ? 1079 com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; 1080 } 1081 } 1082 /** 1083 * <code>.google.protobuf.Timestamp started_at = 4;</code> 1084 */ 1085 private com.google.protobuf.SingleFieldBuilderV3< 1086 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 1087 getStartedAtFieldBuilder() { 1088 if (startedAtBuilder_ == null) { 1089 startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 1090 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( 1091 getStartedAt(), 1092 getParentForChildren(), 1093 isClean()); 1094 startedAt_ = null; 1095 } 1096 return startedAtBuilder_; 1097 } 1098 1099 private com.google.protobuf.Timestamp completedAt_ = null; 1100 private com.google.protobuf.SingleFieldBuilderV3< 1101 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completedAtBuilder_; 1102 /** 1103 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 1104 */ 1105 public boolean hasCompletedAt() { 1106 return completedAtBuilder_ != null || completedAt_ != null; 1107 } 1108 /** 1109 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 1110 */ 1111 public com.google.protobuf.Timestamp getCompletedAt() { 1112 if (completedAtBuilder_ == null) { 1113 return completedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completedAt_; 1114 } else { 1115 return completedAtBuilder_.getMessage(); 1116 } 1117 } 1118 /** 1119 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 1120 */ 1121 public Builder setCompletedAt(com.google.protobuf.Timestamp value) { 1122 if (completedAtBuilder_ == null) { 1123 if (value == null) { 1124 throw new NullPointerException(); 1125 } 1126 completedAt_ = value; 1127 onChanged(); 1128 } else { 1129 completedAtBuilder_.setMessage(value); 1130 } 1131 1132 return this; 1133 } 1134 /** 1135 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 1136 */ 1137 public Builder setCompletedAt( 1138 com.google.protobuf.Timestamp.Builder builderForValue) { 1139 if (completedAtBuilder_ == null) { 1140 completedAt_ = builderForValue.build(); 1141 onChanged(); 1142 } else { 1143 completedAtBuilder_.setMessage(builderForValue.build()); 1144 } 1145 1146 return this; 1147 } 1148 /** 1149 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 1150 */ 1151 public Builder mergeCompletedAt(com.google.protobuf.Timestamp value) { 1152 if (completedAtBuilder_ == null) { 1153 if (completedAt_ != null) { 1154 completedAt_ = 1155 com.google.protobuf.Timestamp.newBuilder(completedAt_).mergeFrom(value).buildPartial(); 1156 } else { 1157 completedAt_ = value; 1158 } 1159 onChanged(); 1160 } else { 1161 completedAtBuilder_.mergeFrom(value); 1162 } 1163 1164 return this; 1165 } 1166 /** 1167 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 1168 */ 1169 public Builder clearCompletedAt() { 1170 if (completedAtBuilder_ == null) { 1171 completedAt_ = null; 1172 onChanged(); 1173 } else { 1174 completedAt_ = null; 1175 completedAtBuilder_ = null; 1176 } 1177 1178 return this; 1179 } 1180 /** 1181 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 1182 */ 1183 public com.google.protobuf.Timestamp.Builder getCompletedAtBuilder() { 1184 1185 onChanged(); 1186 return getCompletedAtFieldBuilder().getBuilder(); 1187 } 1188 /** 1189 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 1190 */ 1191 public com.google.protobuf.TimestampOrBuilder getCompletedAtOrBuilder() { 1192 if (completedAtBuilder_ != null) { 1193 return completedAtBuilder_.getMessageOrBuilder(); 1194 } else { 1195 return completedAt_ == null ? 1196 com.google.protobuf.Timestamp.getDefaultInstance() : completedAt_; 1197 } 1198 } 1199 /** 1200 * <code>.google.protobuf.Timestamp completed_at = 5;</code> 1201 */ 1202 private com.google.protobuf.SingleFieldBuilderV3< 1203 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 1204 getCompletedAtFieldBuilder() { 1205 if (completedAtBuilder_ == null) { 1206 completedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 1207 com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( 1208 getCompletedAt(), 1209 getParentForChildren(), 1210 isClean()); 1211 completedAt_ = null; 1212 } 1213 return completedAtBuilder_; 1214 } 1215 public final Builder setUnknownFields( 1216 final com.google.protobuf.UnknownFieldSet unknownFields) { 1217 return this; 1218 } 1219 1220 public final Builder mergeUnknownFields( 1221 final com.google.protobuf.UnknownFieldSet unknownFields) { 1222 return this; 1223 } 1224 1225 1226 // @@protoc_insertion_point(builder_scope:hapi.release.TestRun) 1227 } 1228 1229 // @@protoc_insertion_point(class_scope:hapi.release.TestRun) 1230 private static final hapi.release.TestRunOuterClass.TestRun DEFAULT_INSTANCE; 1231 static { 1232 DEFAULT_INSTANCE = new hapi.release.TestRunOuterClass.TestRun(); 1233 } 1234 1235 public static hapi.release.TestRunOuterClass.TestRun getDefaultInstance() { 1236 return DEFAULT_INSTANCE; 1237 } 1238 1239 private static final com.google.protobuf.Parser<TestRun> 1240 PARSER = new com.google.protobuf.AbstractParser<TestRun>() { 1241 public TestRun parsePartialFrom( 1242 com.google.protobuf.CodedInputStream input, 1243 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1244 throws com.google.protobuf.InvalidProtocolBufferException { 1245 return new TestRun(input, extensionRegistry); 1246 } 1247 }; 1248 1249 public static com.google.protobuf.Parser<TestRun> parser() { 1250 return PARSER; 1251 } 1252 1253 @java.lang.Override 1254 public com.google.protobuf.Parser<TestRun> getParserForType() { 1255 return PARSER; 1256 } 1257 1258 public hapi.release.TestRunOuterClass.TestRun getDefaultInstanceForType() { 1259 return DEFAULT_INSTANCE; 1260 } 1261 1262 } 1263 1264 private static final com.google.protobuf.Descriptors.Descriptor 1265 internal_static_hapi_release_TestRun_descriptor; 1266 private static final 1267 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 1268 internal_static_hapi_release_TestRun_fieldAccessorTable; 1269 1270 public static com.google.protobuf.Descriptors.FileDescriptor 1271 getDescriptor() { 1272 return descriptor; 1273 } 1274 private static com.google.protobuf.Descriptors.FileDescriptor 1275 descriptor; 1276 static { 1277 java.lang.String[] descriptorData = { 1278 "\n\033hapi/release/test_run.proto\022\014hapi.rele" + 1279 "ase\032\037google/protobuf/timestamp.proto\"\363\001\n" + 1280 "\007TestRun\022\014\n\004name\030\001 \001(\t\022,\n\006status\030\002 \001(\0162\034" + 1281 ".hapi.release.TestRun.Status\022\014\n\004info\030\003 \001" + 1282 "(\t\022.\n\nstarted_at\030\004 \001(\0132\032.google.protobuf" + 1283 ".Timestamp\0220\n\014completed_at\030\005 \001(\0132\032.googl" + 1284 "e.protobuf.Timestamp\"<\n\006Status\022\013\n\007UNKNOW" + 1285 "N\020\000\022\013\n\007SUCCESS\020\001\022\013\n\007FAILURE\020\002\022\013\n\007RUNNING" + 1286 "\020\003B\tZ\007releaseb\006proto3" 1287 }; 1288 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = 1289 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { 1290 public com.google.protobuf.ExtensionRegistry assignDescriptors( 1291 com.google.protobuf.Descriptors.FileDescriptor root) { 1292 descriptor = root; 1293 return null; 1294 } 1295 }; 1296 com.google.protobuf.Descriptors.FileDescriptor 1297 .internalBuildGeneratedFileFrom(descriptorData, 1298 new com.google.protobuf.Descriptors.FileDescriptor[] { 1299 com.google.protobuf.TimestampProto.getDescriptor(), 1300 }, assigner); 1301 internal_static_hapi_release_TestRun_descriptor = 1302 getDescriptor().getMessageTypes().get(0); 1303 internal_static_hapi_release_TestRun_fieldAccessorTable = new 1304 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 1305 internal_static_hapi_release_TestRun_descriptor, 1306 new java.lang.String[] { "Name", "Status", "Info", "StartedAt", "CompletedAt", }); 1307 com.google.protobuf.TimestampProto.getDescriptor(); 1308 } 1309 1310 // @@protoc_insertion_point(outer_class_scope) 1311}