All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hapi.release.StatusOuterClass Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: hapi/release/status.proto

package hapi.release;

public final class StatusOuterClass {
  private StatusOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface StatusOrBuilder extends
      // @@protoc_insertion_point(interface_extends:hapi.release.Status)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .hapi.release.Status.Code code = 1;
     */
    int getCodeValue();
    /**
     * .hapi.release.Status.Code code = 1;
     */
    hapi.release.StatusOuterClass.Status.Code getCode();

    /**
     * 
     * Cluster resources as kubectl would print them.
     * 
* * string resources = 3; */ java.lang.String getResources(); /** *
     * Cluster resources as kubectl would print them.
     * 
* * string resources = 3; */ com.google.protobuf.ByteString getResourcesBytes(); /** *
     * Contains the rendered templates/NOTES.txt if available
     * 
* * string notes = 4; */ java.lang.String getNotes(); /** *
     * Contains the rendered templates/NOTES.txt if available
     * 
* * string notes = 4; */ com.google.protobuf.ByteString getNotesBytes(); /** *
     * LastTestSuiteRun provides results on the last test run on a release
     * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ boolean hasLastTestSuiteRun(); /** *
     * LastTestSuiteRun provides results on the last test run on a release
     * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ hapi.release.TestSuiteOuterClass.TestSuite getLastTestSuiteRun(); /** *
     * LastTestSuiteRun provides results on the last test run on a release
     * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ hapi.release.TestSuiteOuterClass.TestSuiteOrBuilder getLastTestSuiteRunOrBuilder(); } /** *
   * Status defines the status of a release.
   * 
* * Protobuf type {@code hapi.release.Status} */ public static final class Status extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:hapi.release.Status) StatusOrBuilder { private static final long serialVersionUID = 0L; // Use Status.newBuilder() to construct. private Status(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Status() { code_ = 0; resources_ = ""; notes_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Status( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); code_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); resources_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); notes_ = s; break; } case 42: { hapi.release.TestSuiteOuterClass.TestSuite.Builder subBuilder = null; if (lastTestSuiteRun_ != null) { subBuilder = lastTestSuiteRun_.toBuilder(); } lastTestSuiteRun_ = input.readMessage(hapi.release.TestSuiteOuterClass.TestSuite.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastTestSuiteRun_); lastTestSuiteRun_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return hapi.release.StatusOuterClass.internal_static_hapi_release_Status_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return hapi.release.StatusOuterClass.internal_static_hapi_release_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( hapi.release.StatusOuterClass.Status.class, hapi.release.StatusOuterClass.Status.Builder.class); } /** * Protobuf enum {@code hapi.release.Status.Code} */ public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Status_UNKNOWN indicates that a release is in an uncertain state.
       * 
* * UNKNOWN = 0; */ UNKNOWN(0), /** *
       * Status_DEPLOYED indicates that the release has been pushed to Kubernetes.
       * 
* * DEPLOYED = 1; */ DEPLOYED(1), /** *
       * Status_DELETED indicates that a release has been deleted from Kubermetes.
       * 
* * DELETED = 2; */ DELETED(2), /** *
       * Status_SUPERSEDED indicates that this release object is outdated and a newer one exists.
       * 
* * SUPERSEDED = 3; */ SUPERSEDED(3), /** *
       * Status_FAILED indicates that the release was not successfully deployed.
       * 
* * FAILED = 4; */ FAILED(4), /** *
       * Status_DELETING indicates that a delete operation is underway.
       * 
* * DELETING = 5; */ DELETING(5), /** *
       * Status_PENDING_INSTALL indicates that an install operation is underway.
       * 
* * PENDING_INSTALL = 6; */ PENDING_INSTALL(6), /** *
       * Status_PENDING_UPGRADE indicates that an upgrade operation is underway.
       * 
* * PENDING_UPGRADE = 7; */ PENDING_UPGRADE(7), /** *
       * Status_PENDING_ROLLBACK indicates that an rollback operation is underway.
       * 
* * PENDING_ROLLBACK = 8; */ PENDING_ROLLBACK(8), UNRECOGNIZED(-1), ; /** *
       * Status_UNKNOWN indicates that a release is in an uncertain state.
       * 
* * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
       * Status_DEPLOYED indicates that the release has been pushed to Kubernetes.
       * 
* * DEPLOYED = 1; */ public static final int DEPLOYED_VALUE = 1; /** *
       * Status_DELETED indicates that a release has been deleted from Kubermetes.
       * 
* * DELETED = 2; */ public static final int DELETED_VALUE = 2; /** *
       * Status_SUPERSEDED indicates that this release object is outdated and a newer one exists.
       * 
* * SUPERSEDED = 3; */ public static final int SUPERSEDED_VALUE = 3; /** *
       * Status_FAILED indicates that the release was not successfully deployed.
       * 
* * FAILED = 4; */ public static final int FAILED_VALUE = 4; /** *
       * Status_DELETING indicates that a delete operation is underway.
       * 
* * DELETING = 5; */ public static final int DELETING_VALUE = 5; /** *
       * Status_PENDING_INSTALL indicates that an install operation is underway.
       * 
* * PENDING_INSTALL = 6; */ public static final int PENDING_INSTALL_VALUE = 6; /** *
       * Status_PENDING_UPGRADE indicates that an upgrade operation is underway.
       * 
* * PENDING_UPGRADE = 7; */ public static final int PENDING_UPGRADE_VALUE = 7; /** *
       * Status_PENDING_ROLLBACK indicates that an rollback operation is underway.
       * 
* * PENDING_ROLLBACK = 8; */ public static final int PENDING_ROLLBACK_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Code valueOf(int value) { return forNumber(value); } public static Code forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return DEPLOYED; case 2: return DELETED; case 3: return SUPERSEDED; case 4: return FAILED; case 5: return DELETING; case 6: return PENDING_INSTALL; case 7: return PENDING_UPGRADE; case 8: return PENDING_ROLLBACK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Code> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Code findValueByNumber(int number) { return Code.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return hapi.release.StatusOuterClass.Status.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); public static Code valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Code(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:hapi.release.Status.Code) } public static final int CODE_FIELD_NUMBER = 1; private int code_; /** * .hapi.release.Status.Code code = 1; */ public int getCodeValue() { return code_; } /** * .hapi.release.Status.Code code = 1; */ public hapi.release.StatusOuterClass.Status.Code getCode() { hapi.release.StatusOuterClass.Status.Code result = hapi.release.StatusOuterClass.Status.Code.valueOf(code_); return result == null ? hapi.release.StatusOuterClass.Status.Code.UNRECOGNIZED : result; } public static final int RESOURCES_FIELD_NUMBER = 3; private volatile java.lang.Object resources_; /** *
     * Cluster resources as kubectl would print them.
     * 
* * string resources = 3; */ public java.lang.String getResources() { java.lang.Object ref = resources_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resources_ = s; return s; } } /** *
     * Cluster resources as kubectl would print them.
     * 
* * string resources = 3; */ public com.google.protobuf.ByteString getResourcesBytes() { java.lang.Object ref = resources_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resources_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NOTES_FIELD_NUMBER = 4; private volatile java.lang.Object notes_; /** *
     * Contains the rendered templates/NOTES.txt if available
     * 
* * string notes = 4; */ public java.lang.String getNotes() { java.lang.Object ref = notes_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notes_ = s; return s; } } /** *
     * Contains the rendered templates/NOTES.txt if available
     * 
* * string notes = 4; */ public com.google.protobuf.ByteString getNotesBytes() { java.lang.Object ref = notes_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); notes_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LAST_TEST_SUITE_RUN_FIELD_NUMBER = 5; private hapi.release.TestSuiteOuterClass.TestSuite lastTestSuiteRun_; /** *
     * LastTestSuiteRun provides results on the last test run on a release
     * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public boolean hasLastTestSuiteRun() { return lastTestSuiteRun_ != null; } /** *
     * LastTestSuiteRun provides results on the last test run on a release
     * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public hapi.release.TestSuiteOuterClass.TestSuite getLastTestSuiteRun() { return lastTestSuiteRun_ == null ? hapi.release.TestSuiteOuterClass.TestSuite.getDefaultInstance() : lastTestSuiteRun_; } /** *
     * LastTestSuiteRun provides results on the last test run on a release
     * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public hapi.release.TestSuiteOuterClass.TestSuiteOrBuilder getLastTestSuiteRunOrBuilder() { return getLastTestSuiteRun(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (code_ != hapi.release.StatusOuterClass.Status.Code.UNKNOWN.getNumber()) { output.writeEnum(1, code_); } if (!getResourcesBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resources_); } if (!getNotesBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, notes_); } if (lastTestSuiteRun_ != null) { output.writeMessage(5, getLastTestSuiteRun()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (code_ != hapi.release.StatusOuterClass.Status.Code.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, code_); } if (!getResourcesBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resources_); } if (!getNotesBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, notes_); } if (lastTestSuiteRun_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLastTestSuiteRun()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof hapi.release.StatusOuterClass.Status)) { return super.equals(obj); } hapi.release.StatusOuterClass.Status other = (hapi.release.StatusOuterClass.Status) obj; boolean result = true; result = result && code_ == other.code_; result = result && getResources() .equals(other.getResources()); result = result && getNotes() .equals(other.getNotes()); result = result && (hasLastTestSuiteRun() == other.hasLastTestSuiteRun()); if (hasLastTestSuiteRun()) { result = result && getLastTestSuiteRun() .equals(other.getLastTestSuiteRun()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); hash = (37 * hash) + NOTES_FIELD_NUMBER; hash = (53 * hash) + getNotes().hashCode(); if (hasLastTestSuiteRun()) { hash = (37 * hash) + LAST_TEST_SUITE_RUN_FIELD_NUMBER; hash = (53 * hash) + getLastTestSuiteRun().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static hapi.release.StatusOuterClass.Status parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static hapi.release.StatusOuterClass.Status parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static hapi.release.StatusOuterClass.Status parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static hapi.release.StatusOuterClass.Status parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static hapi.release.StatusOuterClass.Status parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static hapi.release.StatusOuterClass.Status parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static hapi.release.StatusOuterClass.Status parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static hapi.release.StatusOuterClass.Status parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static hapi.release.StatusOuterClass.Status parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static hapi.release.StatusOuterClass.Status parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static hapi.release.StatusOuterClass.Status parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static hapi.release.StatusOuterClass.Status parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(hapi.release.StatusOuterClass.Status prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Status defines the status of a release.
     * 
* * Protobuf type {@code hapi.release.Status} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:hapi.release.Status) hapi.release.StatusOuterClass.StatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return hapi.release.StatusOuterClass.internal_static_hapi_release_Status_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return hapi.release.StatusOuterClass.internal_static_hapi_release_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( hapi.release.StatusOuterClass.Status.class, hapi.release.StatusOuterClass.Status.Builder.class); } // Construct using hapi.release.StatusOuterClass.Status.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); code_ = 0; resources_ = ""; notes_ = ""; if (lastTestSuiteRunBuilder_ == null) { lastTestSuiteRun_ = null; } else { lastTestSuiteRun_ = null; lastTestSuiteRunBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return hapi.release.StatusOuterClass.internal_static_hapi_release_Status_descriptor; } public hapi.release.StatusOuterClass.Status getDefaultInstanceForType() { return hapi.release.StatusOuterClass.Status.getDefaultInstance(); } public hapi.release.StatusOuterClass.Status build() { hapi.release.StatusOuterClass.Status result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public hapi.release.StatusOuterClass.Status buildPartial() { hapi.release.StatusOuterClass.Status result = new hapi.release.StatusOuterClass.Status(this); result.code_ = code_; result.resources_ = resources_; result.notes_ = notes_; if (lastTestSuiteRunBuilder_ == null) { result.lastTestSuiteRun_ = lastTestSuiteRun_; } else { result.lastTestSuiteRun_ = lastTestSuiteRunBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof hapi.release.StatusOuterClass.Status) { return mergeFrom((hapi.release.StatusOuterClass.Status)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(hapi.release.StatusOuterClass.Status other) { if (other == hapi.release.StatusOuterClass.Status.getDefaultInstance()) return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } if (!other.getResources().isEmpty()) { resources_ = other.resources_; onChanged(); } if (!other.getNotes().isEmpty()) { notes_ = other.notes_; onChanged(); } if (other.hasLastTestSuiteRun()) { mergeLastTestSuiteRun(other.getLastTestSuiteRun()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { hapi.release.StatusOuterClass.Status parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (hapi.release.StatusOuterClass.Status) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int code_ = 0; /** * .hapi.release.Status.Code code = 1; */ public int getCodeValue() { return code_; } /** * .hapi.release.Status.Code code = 1; */ public Builder setCodeValue(int value) { code_ = value; onChanged(); return this; } /** * .hapi.release.Status.Code code = 1; */ public hapi.release.StatusOuterClass.Status.Code getCode() { hapi.release.StatusOuterClass.Status.Code result = hapi.release.StatusOuterClass.Status.Code.valueOf(code_); return result == null ? hapi.release.StatusOuterClass.Status.Code.UNRECOGNIZED : result; } /** * .hapi.release.Status.Code code = 1; */ public Builder setCode(hapi.release.StatusOuterClass.Status.Code value) { if (value == null) { throw new NullPointerException(); } code_ = value.getNumber(); onChanged(); return this; } /** * .hapi.release.Status.Code code = 1; */ public Builder clearCode() { code_ = 0; onChanged(); return this; } private java.lang.Object resources_ = ""; /** *
       * Cluster resources as kubectl would print them.
       * 
* * string resources = 3; */ public java.lang.String getResources() { java.lang.Object ref = resources_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resources_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Cluster resources as kubectl would print them.
       * 
* * string resources = 3; */ public com.google.protobuf.ByteString getResourcesBytes() { java.lang.Object ref = resources_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resources_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Cluster resources as kubectl would print them.
       * 
* * string resources = 3; */ public Builder setResources( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); return this; } /** *
       * Cluster resources as kubectl would print them.
       * 
* * string resources = 3; */ public Builder clearResources() { resources_ = getDefaultInstance().getResources(); onChanged(); return this; } /** *
       * Cluster resources as kubectl would print them.
       * 
* * string resources = 3; */ public Builder setResourcesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resources_ = value; onChanged(); return this; } private java.lang.Object notes_ = ""; /** *
       * Contains the rendered templates/NOTES.txt if available
       * 
* * string notes = 4; */ public java.lang.String getNotes() { java.lang.Object ref = notes_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notes_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Contains the rendered templates/NOTES.txt if available
       * 
* * string notes = 4; */ public com.google.protobuf.ByteString getNotesBytes() { java.lang.Object ref = notes_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); notes_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Contains the rendered templates/NOTES.txt if available
       * 
* * string notes = 4; */ public Builder setNotes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } notes_ = value; onChanged(); return this; } /** *
       * Contains the rendered templates/NOTES.txt if available
       * 
* * string notes = 4; */ public Builder clearNotes() { notes_ = getDefaultInstance().getNotes(); onChanged(); return this; } /** *
       * Contains the rendered templates/NOTES.txt if available
       * 
* * string notes = 4; */ public Builder setNotesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); notes_ = value; onChanged(); return this; } private hapi.release.TestSuiteOuterClass.TestSuite lastTestSuiteRun_ = null; private com.google.protobuf.SingleFieldBuilderV3< hapi.release.TestSuiteOuterClass.TestSuite, hapi.release.TestSuiteOuterClass.TestSuite.Builder, hapi.release.TestSuiteOuterClass.TestSuiteOrBuilder> lastTestSuiteRunBuilder_; /** *
       * LastTestSuiteRun provides results on the last test run on a release
       * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public boolean hasLastTestSuiteRun() { return lastTestSuiteRunBuilder_ != null || lastTestSuiteRun_ != null; } /** *
       * LastTestSuiteRun provides results on the last test run on a release
       * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public hapi.release.TestSuiteOuterClass.TestSuite getLastTestSuiteRun() { if (lastTestSuiteRunBuilder_ == null) { return lastTestSuiteRun_ == null ? hapi.release.TestSuiteOuterClass.TestSuite.getDefaultInstance() : lastTestSuiteRun_; } else { return lastTestSuiteRunBuilder_.getMessage(); } } /** *
       * LastTestSuiteRun provides results on the last test run on a release
       * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public Builder setLastTestSuiteRun(hapi.release.TestSuiteOuterClass.TestSuite value) { if (lastTestSuiteRunBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastTestSuiteRun_ = value; onChanged(); } else { lastTestSuiteRunBuilder_.setMessage(value); } return this; } /** *
       * LastTestSuiteRun provides results on the last test run on a release
       * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public Builder setLastTestSuiteRun( hapi.release.TestSuiteOuterClass.TestSuite.Builder builderForValue) { if (lastTestSuiteRunBuilder_ == null) { lastTestSuiteRun_ = builderForValue.build(); onChanged(); } else { lastTestSuiteRunBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * LastTestSuiteRun provides results on the last test run on a release
       * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public Builder mergeLastTestSuiteRun(hapi.release.TestSuiteOuterClass.TestSuite value) { if (lastTestSuiteRunBuilder_ == null) { if (lastTestSuiteRun_ != null) { lastTestSuiteRun_ = hapi.release.TestSuiteOuterClass.TestSuite.newBuilder(lastTestSuiteRun_).mergeFrom(value).buildPartial(); } else { lastTestSuiteRun_ = value; } onChanged(); } else { lastTestSuiteRunBuilder_.mergeFrom(value); } return this; } /** *
       * LastTestSuiteRun provides results on the last test run on a release
       * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public Builder clearLastTestSuiteRun() { if (lastTestSuiteRunBuilder_ == null) { lastTestSuiteRun_ = null; onChanged(); } else { lastTestSuiteRun_ = null; lastTestSuiteRunBuilder_ = null; } return this; } /** *
       * LastTestSuiteRun provides results on the last test run on a release
       * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public hapi.release.TestSuiteOuterClass.TestSuite.Builder getLastTestSuiteRunBuilder() { onChanged(); return getLastTestSuiteRunFieldBuilder().getBuilder(); } /** *
       * LastTestSuiteRun provides results on the last test run on a release
       * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ public hapi.release.TestSuiteOuterClass.TestSuiteOrBuilder getLastTestSuiteRunOrBuilder() { if (lastTestSuiteRunBuilder_ != null) { return lastTestSuiteRunBuilder_.getMessageOrBuilder(); } else { return lastTestSuiteRun_ == null ? hapi.release.TestSuiteOuterClass.TestSuite.getDefaultInstance() : lastTestSuiteRun_; } } /** *
       * LastTestSuiteRun provides results on the last test run on a release
       * 
* * .hapi.release.TestSuite last_test_suite_run = 5; */ private com.google.protobuf.SingleFieldBuilderV3< hapi.release.TestSuiteOuterClass.TestSuite, hapi.release.TestSuiteOuterClass.TestSuite.Builder, hapi.release.TestSuiteOuterClass.TestSuiteOrBuilder> getLastTestSuiteRunFieldBuilder() { if (lastTestSuiteRunBuilder_ == null) { lastTestSuiteRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< hapi.release.TestSuiteOuterClass.TestSuite, hapi.release.TestSuiteOuterClass.TestSuite.Builder, hapi.release.TestSuiteOuterClass.TestSuiteOrBuilder>( getLastTestSuiteRun(), getParentForChildren(), isClean()); lastTestSuiteRun_ = null; } return lastTestSuiteRunBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:hapi.release.Status) } // @@protoc_insertion_point(class_scope:hapi.release.Status) private static final hapi.release.StatusOuterClass.Status DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new hapi.release.StatusOuterClass.Status(); } public static hapi.release.StatusOuterClass.Status getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Status parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Status(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public hapi.release.StatusOuterClass.Status getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_hapi_release_Status_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_hapi_release_Status_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\031hapi/release/status.proto\022\014hapi.releas" + "e\032\035hapi/release/test_suite.proto\032\031google" + "/protobuf/any.proto\"\244\002\n\006Status\022\'\n\004code\030\001" + " \001(\0162\031.hapi.release.Status.Code\022\021\n\tresou" + "rces\030\003 \001(\t\022\r\n\005notes\030\004 \001(\t\0224\n\023last_test_s" + "uite_run\030\005 \001(\0132\027.hapi.release.TestSuite\"" + "\230\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\014\n\010DEPLOYED\020\001\022\013\n\007D" + "ELETED\020\002\022\016\n\nSUPERSEDED\020\003\022\n\n\006FAILED\020\004\022\014\n\010" + "DELETING\020\005\022\023\n\017PENDING_INSTALL\020\006\022\023\n\017PENDI" + "NG_UPGRADE\020\007\022\024\n\020PENDING_ROLLBACK\020\010B\tZ\007re" + "leaseb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { hapi.release.TestSuiteOuterClass.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), }, assigner); internal_static_hapi_release_Status_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_hapi_release_Status_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_hapi_release_Status_descriptor, new java.lang.String[] { "Code", "Resources", "Notes", "LastTestSuiteRun", }); hapi.release.TestSuiteOuterClass.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }