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