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