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