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

com.dimajix.flowman.kernel.proto.ExecutionPhase Maven / Gradle / Ivy

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

package com.dimajix.flowman.kernel.proto;

/**
 * Protobuf enum {@code com.dimajix.flowman.kernel.ExecutionPhase}
 */
public enum ExecutionPhase
    implements com.dimajix.shaded.protobuf.ProtocolMessageEnum {
  /**
   * VALIDATE = 0;
   */
  VALIDATE(0),
  /**
   * CREATE = 10;
   */
  CREATE(10),
  /**
   * BUILD = 20;
   */
  BUILD(20),
  /**
   * VERIFY = 30;
   */
  VERIFY(30),
  /**
   * TRUNCATE = 40;
   */
  TRUNCATE(40),
  /**
   * DESTROY = 50;
   */
  DESTROY(50),
  UNRECOGNIZED(-1),
  ;

  /**
   * VALIDATE = 0;
   */
  public static final int VALIDATE_VALUE = 0;
  /**
   * CREATE = 10;
   */
  public static final int CREATE_VALUE = 10;
  /**
   * BUILD = 20;
   */
  public static final int BUILD_VALUE = 20;
  /**
   * VERIFY = 30;
   */
  public static final int VERIFY_VALUE = 30;
  /**
   * TRUNCATE = 40;
   */
  public static final int TRUNCATE_VALUE = 40;
  /**
   * DESTROY = 50;
   */
  public static final int DESTROY_VALUE = 50;


  public final int getNumber() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalArgumentException(
          "Can't get the number of an unknown enum value.");
    }
    return value;
  }

  /**
   * @param value The numeric wire value of the corresponding enum entry.
   * @return The enum associated with the given numeric wire value.
   * @deprecated Use {@link #forNumber(int)} instead.
   */
  @java.lang.Deprecated
  public static ExecutionPhase valueOf(int value) {
    return forNumber(value);
  }

  /**
   * @param value The numeric wire value of the corresponding enum entry.
   * @return The enum associated with the given numeric wire value.
   */
  public static ExecutionPhase forNumber(int value) {
    switch (value) {
      case 0: return VALIDATE;
      case 10: return CREATE;
      case 20: return BUILD;
      case 30: return VERIFY;
      case 40: return TRUNCATE;
      case 50: return DESTROY;
      default: return null;
    }
  }

  public static com.dimajix.shaded.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.dimajix.shaded.protobuf.Internal.EnumLiteMap<
      ExecutionPhase> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public ExecutionPhase findValueByNumber(int number) {
            return ExecutionPhase.forNumber(number);
          }
        };

  public final com.dimajix.shaded.protobuf.Descriptors.EnumValueDescriptor
      getValueDescriptor() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalStateException(
          "Can't get the descriptor of an unrecognized enum value.");
    }
    return getDescriptor().getValues().get(ordinal());
  }
  public final com.dimajix.shaded.protobuf.Descriptors.EnumDescriptor
      getDescriptorForType() {
    return getDescriptor();
  }
  public static final com.dimajix.shaded.protobuf.Descriptors.EnumDescriptor
      getDescriptor() {
    return com.dimajix.flowman.kernel.proto.CommonProto.getDescriptor().getEnumTypes().get(1);
  }

  private static final ExecutionPhase[] VALUES = values();

  public static ExecutionPhase valueOf(
      com.dimajix.shaded.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 ExecutionPhase(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:com.dimajix.flowman.kernel.ExecutionPhase)
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy