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