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