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

hapi.release.HookOuterClass Maven / Gradle / Ivy

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

package hapi.release;

public final class HookOuterClass {
  private HookOuterClass() {}
  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 HookOrBuilder extends
      // @@protoc_insertion_point(interface_extends:hapi.release.Hook)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string name = 1;
     */
    java.lang.String getName();
    /**
     * string name = 1;
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * 
     * Kind is the Kubernetes kind.
     * 
* * string kind = 2; */ java.lang.String getKind(); /** *
     * Kind is the Kubernetes kind.
     * 
* * string kind = 2; */ com.google.protobuf.ByteString getKindBytes(); /** *
     * Path is the chart-relative path to the template.
     * 
* * string path = 3; */ java.lang.String getPath(); /** *
     * Path is the chart-relative path to the template.
     * 
* * string path = 3; */ com.google.protobuf.ByteString getPathBytes(); /** *
     * Manifest is the manifest contents.
     * 
* * string manifest = 4; */ java.lang.String getManifest(); /** *
     * Manifest is the manifest contents.
     * 
* * string manifest = 4; */ com.google.protobuf.ByteString getManifestBytes(); /** *
     * Events are the events that this hook fires on.
     * 
* * repeated .hapi.release.Hook.Event events = 5; */ java.util.List getEventsList(); /** *
     * Events are the events that this hook fires on.
     * 
* * repeated .hapi.release.Hook.Event events = 5; */ int getEventsCount(); /** *
     * Events are the events that this hook fires on.
     * 
* * repeated .hapi.release.Hook.Event events = 5; */ hapi.release.HookOuterClass.Hook.Event getEvents(int index); /** *
     * Events are the events that this hook fires on.
     * 
* * repeated .hapi.release.Hook.Event events = 5; */ java.util.List getEventsValueList(); /** *
     * Events are the events that this hook fires on.
     * 
* * repeated .hapi.release.Hook.Event events = 5; */ int getEventsValue(int index); /** *
     * LastRun indicates the date/time this was last run.
     * 
* * .google.protobuf.Timestamp last_run = 6; */ boolean hasLastRun(); /** *
     * LastRun indicates the date/time this was last run.
     * 
* * .google.protobuf.Timestamp last_run = 6; */ com.google.protobuf.Timestamp getLastRun(); /** *
     * LastRun indicates the date/time this was last run.
     * 
* * .google.protobuf.Timestamp last_run = 6; */ com.google.protobuf.TimestampOrBuilder getLastRunOrBuilder(); /** *
     * Weight indicates the sort order for execution among similar Hook type
     * 
* * int32 weight = 7; */ int getWeight(); /** *
     * DeletePolicies are the policies that indicate when to delete the hook
     * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ java.util.List getDeletePoliciesList(); /** *
     * DeletePolicies are the policies that indicate when to delete the hook
     * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ int getDeletePoliciesCount(); /** *
     * DeletePolicies are the policies that indicate when to delete the hook
     * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ hapi.release.HookOuterClass.Hook.DeletePolicy getDeletePolicies(int index); /** *
     * DeletePolicies are the policies that indicate when to delete the hook
     * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ java.util.List getDeletePoliciesValueList(); /** *
     * DeletePolicies are the policies that indicate when to delete the hook
     * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ int getDeletePoliciesValue(int index); } /** *
   * Hook defines a hook object.
   * 
* * Protobuf type {@code hapi.release.Hook} */ public static final class Hook extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:hapi.release.Hook) HookOrBuilder { private static final long serialVersionUID = 0L; // Use Hook.newBuilder() to construct. private Hook(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Hook() { name_ = ""; kind_ = ""; path_ = ""; manifest_ = ""; events_ = java.util.Collections.emptyList(); weight_ = 0; deletePolicies_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Hook( 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 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); kind_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); path_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); manifest_ = s; break; } case 40: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { events_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } events_.add(rawValue); break; } case 42: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { events_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } events_.add(rawValue); } input.popLimit(oldLimit); break; } case 50: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (lastRun_ != null) { subBuilder = lastRun_.toBuilder(); } lastRun_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastRun_); lastRun_ = subBuilder.buildPartial(); } break; } case 56: { weight_ = input.readInt32(); break; } case 64: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { deletePolicies_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } deletePolicies_.add(rawValue); break; } case 66: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { deletePolicies_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } deletePolicies_.add(rawValue); } input.popLimit(oldLimit); 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 { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { events_ = java.util.Collections.unmodifiableList(events_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { deletePolicies_ = java.util.Collections.unmodifiableList(deletePolicies_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return hapi.release.HookOuterClass.internal_static_hapi_release_Hook_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return hapi.release.HookOuterClass.internal_static_hapi_release_Hook_fieldAccessorTable .ensureFieldAccessorsInitialized( hapi.release.HookOuterClass.Hook.class, hapi.release.HookOuterClass.Hook.Builder.class); } /** * Protobuf enum {@code hapi.release.Hook.Event} */ public enum Event implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * PRE_INSTALL = 1; */ PRE_INSTALL(1), /** * POST_INSTALL = 2; */ POST_INSTALL(2), /** * PRE_DELETE = 3; */ PRE_DELETE(3), /** * POST_DELETE = 4; */ POST_DELETE(4), /** * PRE_UPGRADE = 5; */ PRE_UPGRADE(5), /** * POST_UPGRADE = 6; */ POST_UPGRADE(6), /** * PRE_ROLLBACK = 7; */ PRE_ROLLBACK(7), /** * POST_ROLLBACK = 8; */ POST_ROLLBACK(8), /** * RELEASE_TEST_SUCCESS = 9; */ RELEASE_TEST_SUCCESS(9), /** * RELEASE_TEST_FAILURE = 10; */ RELEASE_TEST_FAILURE(10), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * PRE_INSTALL = 1; */ public static final int PRE_INSTALL_VALUE = 1; /** * POST_INSTALL = 2; */ public static final int POST_INSTALL_VALUE = 2; /** * PRE_DELETE = 3; */ public static final int PRE_DELETE_VALUE = 3; /** * POST_DELETE = 4; */ public static final int POST_DELETE_VALUE = 4; /** * PRE_UPGRADE = 5; */ public static final int PRE_UPGRADE_VALUE = 5; /** * POST_UPGRADE = 6; */ public static final int POST_UPGRADE_VALUE = 6; /** * PRE_ROLLBACK = 7; */ public static final int PRE_ROLLBACK_VALUE = 7; /** * POST_ROLLBACK = 8; */ public static final int POST_ROLLBACK_VALUE = 8; /** * RELEASE_TEST_SUCCESS = 9; */ public static final int RELEASE_TEST_SUCCESS_VALUE = 9; /** * RELEASE_TEST_FAILURE = 10; */ public static final int RELEASE_TEST_FAILURE_VALUE = 10; 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 Event valueOf(int value) { return forNumber(value); } public static Event forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return PRE_INSTALL; case 2: return POST_INSTALL; case 3: return PRE_DELETE; case 4: return POST_DELETE; case 5: return PRE_UPGRADE; case 6: return POST_UPGRADE; case 7: return PRE_ROLLBACK; case 8: return POST_ROLLBACK; case 9: return RELEASE_TEST_SUCCESS; case 10: return RELEASE_TEST_FAILURE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Event> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Event findValueByNumber(int number) { return Event.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.HookOuterClass.Hook.getDescriptor().getEnumTypes().get(0); } private static final Event[] VALUES = values(); public static Event 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 Event(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:hapi.release.Hook.Event) } /** * Protobuf enum {@code hapi.release.Hook.DeletePolicy} */ public enum DeletePolicy implements com.google.protobuf.ProtocolMessageEnum { /** * SUCCEEDED = 0; */ SUCCEEDED(0), /** * FAILED = 1; */ FAILED(1), UNRECOGNIZED(-1), ; /** * SUCCEEDED = 0; */ public static final int SUCCEEDED_VALUE = 0; /** * FAILED = 1; */ public static final int FAILED_VALUE = 1; 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 DeletePolicy valueOf(int value) { return forNumber(value); } public static DeletePolicy forNumber(int value) { switch (value) { case 0: return SUCCEEDED; case 1: return FAILED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DeletePolicy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DeletePolicy findValueByNumber(int number) { return DeletePolicy.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.HookOuterClass.Hook.getDescriptor().getEnumTypes().get(1); } private static final DeletePolicy[] VALUES = values(); public static DeletePolicy 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 DeletePolicy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:hapi.release.Hook.DeletePolicy) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KIND_FIELD_NUMBER = 2; private volatile java.lang.Object kind_; /** *
     * Kind is the Kubernetes kind.
     * 
* * string kind = 2; */ public java.lang.String getKind() { java.lang.Object ref = kind_; 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(); kind_ = s; return s; } } /** *
     * Kind is the Kubernetes kind.
     * 
* * string kind = 2; */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH_FIELD_NUMBER = 3; private volatile java.lang.Object path_; /** *
     * Path is the chart-relative path to the template.
     * 
* * string path = 3; */ public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
     * Path is the chart-relative path to the template.
     * 
* * string path = 3; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MANIFEST_FIELD_NUMBER = 4; private volatile java.lang.Object manifest_; /** *
     * Manifest is the manifest contents.
     * 
* * string manifest = 4; */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; 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(); manifest_ = s; return s; } } /** *
     * Manifest is the manifest contents.
     * 
* * string manifest = 4; */ public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); manifest_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EVENTS_FIELD_NUMBER = 5; private java.util.List events_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, hapi.release.HookOuterClass.Hook.Event> events_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, hapi.release.HookOuterClass.Hook.Event>() { public hapi.release.HookOuterClass.Hook.Event convert(java.lang.Integer from) { hapi.release.HookOuterClass.Hook.Event result = hapi.release.HookOuterClass.Hook.Event.valueOf(from); return result == null ? hapi.release.HookOuterClass.Hook.Event.UNRECOGNIZED : result; } }; /** *
     * Events are the events that this hook fires on.
     * 
* * repeated .hapi.release.Hook.Event events = 5; */ public java.util.List getEventsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, hapi.release.HookOuterClass.Hook.Event>(events_, events_converter_); } /** *
     * Events are the events that this hook fires on.
     * 
* * repeated .hapi.release.Hook.Event events = 5; */ public int getEventsCount() { return events_.size(); } /** *
     * Events are the events that this hook fires on.
     * 
* * repeated .hapi.release.Hook.Event events = 5; */ public hapi.release.HookOuterClass.Hook.Event getEvents(int index) { return events_converter_.convert(events_.get(index)); } /** *
     * Events are the events that this hook fires on.
     * 
* * repeated .hapi.release.Hook.Event events = 5; */ public java.util.List getEventsValueList() { return events_; } /** *
     * Events are the events that this hook fires on.
     * 
* * repeated .hapi.release.Hook.Event events = 5; */ public int getEventsValue(int index) { return events_.get(index); } private int eventsMemoizedSerializedSize; public static final int LAST_RUN_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp lastRun_; /** *
     * LastRun indicates the date/time this was last run.
     * 
* * .google.protobuf.Timestamp last_run = 6; */ public boolean hasLastRun() { return lastRun_ != null; } /** *
     * LastRun indicates the date/time this was last run.
     * 
* * .google.protobuf.Timestamp last_run = 6; */ public com.google.protobuf.Timestamp getLastRun() { return lastRun_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastRun_; } /** *
     * LastRun indicates the date/time this was last run.
     * 
* * .google.protobuf.Timestamp last_run = 6; */ public com.google.protobuf.TimestampOrBuilder getLastRunOrBuilder() { return getLastRun(); } public static final int WEIGHT_FIELD_NUMBER = 7; private int weight_; /** *
     * Weight indicates the sort order for execution among similar Hook type
     * 
* * int32 weight = 7; */ public int getWeight() { return weight_; } public static final int DELETE_POLICIES_FIELD_NUMBER = 8; private java.util.List deletePolicies_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, hapi.release.HookOuterClass.Hook.DeletePolicy> deletePolicies_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, hapi.release.HookOuterClass.Hook.DeletePolicy>() { public hapi.release.HookOuterClass.Hook.DeletePolicy convert(java.lang.Integer from) { hapi.release.HookOuterClass.Hook.DeletePolicy result = hapi.release.HookOuterClass.Hook.DeletePolicy.valueOf(from); return result == null ? hapi.release.HookOuterClass.Hook.DeletePolicy.UNRECOGNIZED : result; } }; /** *
     * DeletePolicies are the policies that indicate when to delete the hook
     * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public java.util.List getDeletePoliciesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, hapi.release.HookOuterClass.Hook.DeletePolicy>(deletePolicies_, deletePolicies_converter_); } /** *
     * DeletePolicies are the policies that indicate when to delete the hook
     * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public int getDeletePoliciesCount() { return deletePolicies_.size(); } /** *
     * DeletePolicies are the policies that indicate when to delete the hook
     * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public hapi.release.HookOuterClass.Hook.DeletePolicy getDeletePolicies(int index) { return deletePolicies_converter_.convert(deletePolicies_.get(index)); } /** *
     * DeletePolicies are the policies that indicate when to delete the hook
     * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public java.util.List getDeletePoliciesValueList() { return deletePolicies_; } /** *
     * DeletePolicies are the policies that indicate when to delete the hook
     * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public int getDeletePoliciesValue(int index) { return deletePolicies_.get(index); } private int deletePoliciesMemoizedSerializedSize; 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 { getSerializedSize(); if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getKindBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_); } if (!getPathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); } if (!getManifestBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, manifest_); } if (getEventsList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(eventsMemoizedSerializedSize); } for (int i = 0; i < events_.size(); i++) { output.writeEnumNoTag(events_.get(i)); } if (lastRun_ != null) { output.writeMessage(6, getLastRun()); } if (weight_ != 0) { output.writeInt32(7, weight_); } if (getDeletePoliciesList().size() > 0) { output.writeUInt32NoTag(66); output.writeUInt32NoTag(deletePoliciesMemoizedSerializedSize); } for (int i = 0; i < deletePolicies_.size(); i++) { output.writeEnumNoTag(deletePolicies_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getKindBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_); } if (!getPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); } if (!getManifestBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, manifest_); } { int dataSize = 0; for (int i = 0; i < events_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(events_.get(i)); } size += dataSize; if (!getEventsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }eventsMemoizedSerializedSize = dataSize; } if (lastRun_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLastRun()); } if (weight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, weight_); } { int dataSize = 0; for (int i = 0; i < deletePolicies_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(deletePolicies_.get(i)); } size += dataSize; if (!getDeletePoliciesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }deletePoliciesMemoizedSerializedSize = dataSize; } 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.HookOuterClass.Hook)) { return super.equals(obj); } hapi.release.HookOuterClass.Hook other = (hapi.release.HookOuterClass.Hook) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getKind() .equals(other.getKind()); result = result && getPath() .equals(other.getPath()); result = result && getManifest() .equals(other.getManifest()); result = result && events_.equals(other.events_); result = result && (hasLastRun() == other.hasLastRun()); if (hasLastRun()) { result = result && getLastRun() .equals(other.getLastRun()); } result = result && (getWeight() == other.getWeight()); result = result && deletePolicies_.equals(other.deletePolicies_); 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + MANIFEST_FIELD_NUMBER; hash = (53 * hash) + getManifest().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + events_.hashCode(); } if (hasLastRun()) { hash = (37 * hash) + LAST_RUN_FIELD_NUMBER; hash = (53 * hash) + getLastRun().hashCode(); } hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight(); if (getDeletePoliciesCount() > 0) { hash = (37 * hash) + DELETE_POLICIES_FIELD_NUMBER; hash = (53 * hash) + deletePolicies_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static hapi.release.HookOuterClass.Hook parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static hapi.release.HookOuterClass.Hook parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static hapi.release.HookOuterClass.Hook parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static hapi.release.HookOuterClass.Hook 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.HookOuterClass.Hook parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static hapi.release.HookOuterClass.Hook parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static hapi.release.HookOuterClass.Hook parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static hapi.release.HookOuterClass.Hook 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.HookOuterClass.Hook parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static hapi.release.HookOuterClass.Hook 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.HookOuterClass.Hook parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static hapi.release.HookOuterClass.Hook 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.HookOuterClass.Hook 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; } /** *
     * Hook defines a hook object.
     * 
* * Protobuf type {@code hapi.release.Hook} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:hapi.release.Hook) hapi.release.HookOuterClass.HookOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return hapi.release.HookOuterClass.internal_static_hapi_release_Hook_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return hapi.release.HookOuterClass.internal_static_hapi_release_Hook_fieldAccessorTable .ensureFieldAccessorsInitialized( hapi.release.HookOuterClass.Hook.class, hapi.release.HookOuterClass.Hook.Builder.class); } // Construct using hapi.release.HookOuterClass.Hook.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(); name_ = ""; kind_ = ""; path_ = ""; manifest_ = ""; events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); if (lastRunBuilder_ == null) { lastRun_ = null; } else { lastRun_ = null; lastRunBuilder_ = null; } weight_ = 0; deletePolicies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return hapi.release.HookOuterClass.internal_static_hapi_release_Hook_descriptor; } public hapi.release.HookOuterClass.Hook getDefaultInstanceForType() { return hapi.release.HookOuterClass.Hook.getDefaultInstance(); } public hapi.release.HookOuterClass.Hook build() { hapi.release.HookOuterClass.Hook result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public hapi.release.HookOuterClass.Hook buildPartial() { hapi.release.HookOuterClass.Hook result = new hapi.release.HookOuterClass.Hook(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.kind_ = kind_; result.path_ = path_; result.manifest_ = manifest_; if (((bitField0_ & 0x00000010) == 0x00000010)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000010); } result.events_ = events_; if (lastRunBuilder_ == null) { result.lastRun_ = lastRun_; } else { result.lastRun_ = lastRunBuilder_.build(); } result.weight_ = weight_; if (((bitField0_ & 0x00000080) == 0x00000080)) { deletePolicies_ = java.util.Collections.unmodifiableList(deletePolicies_); bitField0_ = (bitField0_ & ~0x00000080); } result.deletePolicies_ = deletePolicies_; result.bitField0_ = to_bitField0_; 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.HookOuterClass.Hook) { return mergeFrom((hapi.release.HookOuterClass.Hook)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(hapi.release.HookOuterClass.Hook other) { if (other == hapi.release.HookOuterClass.Hook.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getKind().isEmpty()) { kind_ = other.kind_; onChanged(); } if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); } if (!other.getManifest().isEmpty()) { manifest_ = other.manifest_; onChanged(); } if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } if (other.hasLastRun()) { mergeLastRun(other.getLastRun()); } if (other.getWeight() != 0) { setWeight(other.getWeight()); } if (!other.deletePolicies_.isEmpty()) { if (deletePolicies_.isEmpty()) { deletePolicies_ = other.deletePolicies_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureDeletePoliciesIsMutable(); deletePolicies_.addAll(other.deletePolicies_); } onChanged(); } 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.HookOuterClass.Hook parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (hapi.release.HookOuterClass.Hook) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object kind_ = ""; /** *
       * Kind is the Kubernetes kind.
       * 
* * string kind = 2; */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Kind is the Kubernetes kind.
       * 
* * string kind = 2; */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Kind is the Kubernetes kind.
       * 
* * string kind = 2; */ public Builder setKind( java.lang.String value) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); return this; } /** *
       * Kind is the Kubernetes kind.
       * 
* * string kind = 2; */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** *
       * Kind is the Kubernetes kind.
       * 
* * string kind = 2; */ public Builder setKindBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kind_ = value; onChanged(); return this; } private java.lang.Object path_ = ""; /** *
       * Path is the chart-relative path to the template.
       * 
* * string path = 3; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Path is the chart-relative path to the template.
       * 
* * string path = 3; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Path is the chart-relative path to the template.
       * 
* * string path = 3; */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; onChanged(); return this; } /** *
       * Path is the chart-relative path to the template.
       * 
* * string path = 3; */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** *
       * Path is the chart-relative path to the template.
       * 
* * string path = 3; */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; onChanged(); return this; } private java.lang.Object manifest_ = ""; /** *
       * Manifest is the manifest contents.
       * 
* * string manifest = 4; */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Manifest is the manifest contents.
       * 
* * string manifest = 4; */ public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); manifest_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Manifest is the manifest contents.
       * 
* * string manifest = 4; */ public Builder setManifest( java.lang.String value) { if (value == null) { throw new NullPointerException(); } manifest_ = value; onChanged(); return this; } /** *
       * Manifest is the manifest contents.
       * 
* * string manifest = 4; */ public Builder clearManifest() { manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** *
       * Manifest is the manifest contents.
       * 
* * string manifest = 4; */ public Builder setManifestBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); manifest_ = value; onChanged(); return this; } private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000010; } } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public java.util.List getEventsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, hapi.release.HookOuterClass.Hook.Event>(events_, events_converter_); } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public int getEventsCount() { return events_.size(); } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public hapi.release.HookOuterClass.Hook.Event getEvents(int index) { return events_converter_.convert(events_.get(index)); } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public Builder setEvents( int index, hapi.release.HookOuterClass.Hook.Event value) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public Builder addEvents(hapi.release.HookOuterClass.Hook.Event value) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value.getNumber()); onChanged(); return this; } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public Builder addAllEvents( java.lang.Iterable values) { ensureEventsIsMutable(); for (hapi.release.HookOuterClass.Hook.Event value : values) { events_.add(value.getNumber()); } onChanged(); return this; } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public Builder clearEvents() { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public java.util.List getEventsValueList() { return java.util.Collections.unmodifiableList(events_); } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public int getEventsValue(int index) { return events_.get(index); } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public Builder setEventsValue( int index, int value) { ensureEventsIsMutable(); events_.set(index, value); onChanged(); return this; } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public Builder addEventsValue(int value) { ensureEventsIsMutable(); events_.add(value); onChanged(); return this; } /** *
       * Events are the events that this hook fires on.
       * 
* * repeated .hapi.release.Hook.Event events = 5; */ public Builder addAllEventsValue( java.lang.Iterable values) { ensureEventsIsMutable(); for (int value : values) { events_.add(value); } onChanged(); return this; } private com.google.protobuf.Timestamp lastRun_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastRunBuilder_; /** *
       * LastRun indicates the date/time this was last run.
       * 
* * .google.protobuf.Timestamp last_run = 6; */ public boolean hasLastRun() { return lastRunBuilder_ != null || lastRun_ != null; } /** *
       * LastRun indicates the date/time this was last run.
       * 
* * .google.protobuf.Timestamp last_run = 6; */ public com.google.protobuf.Timestamp getLastRun() { if (lastRunBuilder_ == null) { return lastRun_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastRun_; } else { return lastRunBuilder_.getMessage(); } } /** *
       * LastRun indicates the date/time this was last run.
       * 
* * .google.protobuf.Timestamp last_run = 6; */ public Builder setLastRun(com.google.protobuf.Timestamp value) { if (lastRunBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastRun_ = value; onChanged(); } else { lastRunBuilder_.setMessage(value); } return this; } /** *
       * LastRun indicates the date/time this was last run.
       * 
* * .google.protobuf.Timestamp last_run = 6; */ public Builder setLastRun( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastRunBuilder_ == null) { lastRun_ = builderForValue.build(); onChanged(); } else { lastRunBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * LastRun indicates the date/time this was last run.
       * 
* * .google.protobuf.Timestamp last_run = 6; */ public Builder mergeLastRun(com.google.protobuf.Timestamp value) { if (lastRunBuilder_ == null) { if (lastRun_ != null) { lastRun_ = com.google.protobuf.Timestamp.newBuilder(lastRun_).mergeFrom(value).buildPartial(); } else { lastRun_ = value; } onChanged(); } else { lastRunBuilder_.mergeFrom(value); } return this; } /** *
       * LastRun indicates the date/time this was last run.
       * 
* * .google.protobuf.Timestamp last_run = 6; */ public Builder clearLastRun() { if (lastRunBuilder_ == null) { lastRun_ = null; onChanged(); } else { lastRun_ = null; lastRunBuilder_ = null; } return this; } /** *
       * LastRun indicates the date/time this was last run.
       * 
* * .google.protobuf.Timestamp last_run = 6; */ public com.google.protobuf.Timestamp.Builder getLastRunBuilder() { onChanged(); return getLastRunFieldBuilder().getBuilder(); } /** *
       * LastRun indicates the date/time this was last run.
       * 
* * .google.protobuf.Timestamp last_run = 6; */ public com.google.protobuf.TimestampOrBuilder getLastRunOrBuilder() { if (lastRunBuilder_ != null) { return lastRunBuilder_.getMessageOrBuilder(); } else { return lastRun_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastRun_; } } /** *
       * LastRun indicates the date/time this was last run.
       * 
* * .google.protobuf.Timestamp last_run = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastRunFieldBuilder() { if (lastRunBuilder_ == null) { lastRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastRun(), getParentForChildren(), isClean()); lastRun_ = null; } return lastRunBuilder_; } private int weight_ ; /** *
       * Weight indicates the sort order for execution among similar Hook type
       * 
* * int32 weight = 7; */ public int getWeight() { return weight_; } /** *
       * Weight indicates the sort order for execution among similar Hook type
       * 
* * int32 weight = 7; */ public Builder setWeight(int value) { weight_ = value; onChanged(); return this; } /** *
       * Weight indicates the sort order for execution among similar Hook type
       * 
* * int32 weight = 7; */ public Builder clearWeight() { weight_ = 0; onChanged(); return this; } private java.util.List deletePolicies_ = java.util.Collections.emptyList(); private void ensureDeletePoliciesIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { deletePolicies_ = new java.util.ArrayList(deletePolicies_); bitField0_ |= 0x00000080; } } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public java.util.List getDeletePoliciesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, hapi.release.HookOuterClass.Hook.DeletePolicy>(deletePolicies_, deletePolicies_converter_); } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public int getDeletePoliciesCount() { return deletePolicies_.size(); } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public hapi.release.HookOuterClass.Hook.DeletePolicy getDeletePolicies(int index) { return deletePolicies_converter_.convert(deletePolicies_.get(index)); } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public Builder setDeletePolicies( int index, hapi.release.HookOuterClass.Hook.DeletePolicy value) { if (value == null) { throw new NullPointerException(); } ensureDeletePoliciesIsMutable(); deletePolicies_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public Builder addDeletePolicies(hapi.release.HookOuterClass.Hook.DeletePolicy value) { if (value == null) { throw new NullPointerException(); } ensureDeletePoliciesIsMutable(); deletePolicies_.add(value.getNumber()); onChanged(); return this; } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public Builder addAllDeletePolicies( java.lang.Iterable values) { ensureDeletePoliciesIsMutable(); for (hapi.release.HookOuterClass.Hook.DeletePolicy value : values) { deletePolicies_.add(value.getNumber()); } onChanged(); return this; } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public Builder clearDeletePolicies() { deletePolicies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public java.util.List getDeletePoliciesValueList() { return java.util.Collections.unmodifiableList(deletePolicies_); } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public int getDeletePoliciesValue(int index) { return deletePolicies_.get(index); } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public Builder setDeletePoliciesValue( int index, int value) { ensureDeletePoliciesIsMutable(); deletePolicies_.set(index, value); onChanged(); return this; } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public Builder addDeletePoliciesValue(int value) { ensureDeletePoliciesIsMutable(); deletePolicies_.add(value); onChanged(); return this; } /** *
       * DeletePolicies are the policies that indicate when to delete the hook
       * 
* * repeated .hapi.release.Hook.DeletePolicy delete_policies = 8; */ public Builder addAllDeletePoliciesValue( java.lang.Iterable values) { ensureDeletePoliciesIsMutable(); for (int value : values) { deletePolicies_.add(value); } onChanged(); return this; } 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.Hook) } // @@protoc_insertion_point(class_scope:hapi.release.Hook) private static final hapi.release.HookOuterClass.Hook DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new hapi.release.HookOuterClass.Hook(); } public static hapi.release.HookOuterClass.Hook getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Hook parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Hook(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.HookOuterClass.Hook getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_hapi_release_Hook_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_hapi_release_Hook_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\027hapi/release/hook.proto\022\014hapi.release\032" + "\037google/protobuf/timestamp.proto\"\346\003\n\004Hoo" + "k\022\014\n\004name\030\001 \001(\t\022\014\n\004kind\030\002 \001(\t\022\014\n\004path\030\003 " + "\001(\t\022\020\n\010manifest\030\004 \001(\t\022(\n\006events\030\005 \003(\0162\030." + "hapi.release.Hook.Event\022,\n\010last_run\030\006 \001(" + "\0132\032.google.protobuf.Timestamp\022\016\n\006weight\030" + "\007 \001(\005\0228\n\017delete_policies\030\010 \003(\0162\037.hapi.re" + "lease.Hook.DeletePolicy\"\324\001\n\005Event\022\013\n\007UNK" + "NOWN\020\000\022\017\n\013PRE_INSTALL\020\001\022\020\n\014POST_INSTALL\020" + "\002\022\016\n\nPRE_DELETE\020\003\022\017\n\013POST_DELETE\020\004\022\017\n\013PR" + "E_UPGRADE\020\005\022\020\n\014POST_UPGRADE\020\006\022\020\n\014PRE_ROL" + "LBACK\020\007\022\021\n\rPOST_ROLLBACK\020\010\022\030\n\024RELEASE_TE" + "ST_SUCCESS\020\t\022\030\n\024RELEASE_TEST_FAILURE\020\n\")" + "\n\014DeletePolicy\022\r\n\tSUCCEEDED\020\000\022\n\n\006FAILED\020" + "\001B\tZ\007releaseb\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[] { com.google.protobuf.TimestampProto.getDescriptor(), }, assigner); internal_static_hapi_release_Hook_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_hapi_release_Hook_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_hapi_release_Hook_descriptor, new java.lang.String[] { "Name", "Kind", "Path", "Manifest", "Events", "LastRun", "Weight", "DeletePolicies", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy