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

cz.proto.JobStatus Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: job_meta.proto

package cz.proto;

/**
 * Protobuf enum {@code cz.proto.JobStatus}
 */
public enum JobStatus
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * SETUP = 0;
   */
  SETUP(0),
  /**
   * QUEUEING = 1;
   */
  QUEUEING(1),
  /**
   * RUNNING = 2;
   */
  RUNNING(2),
  /**
   * SUCCEED = 3;
   */
  SUCCEED(3),
  /**
   * CANCELLING = 4;
   */
  CANCELLING(4),
  /**
   * CANCELLED = 5;
   */
  CANCELLED(5),
  /**
   * FAILED = 6;
   */
  FAILED(6),
  /**
   * RESUMING_CLUSTER = 7;
   */
  RESUMING_CLUSTER(7),
  UNRECOGNIZED(-1),
  ;

  /**
   * SETUP = 0;
   */
  public static final int SETUP_VALUE = 0;
  /**
   * QUEUEING = 1;
   */
  public static final int QUEUEING_VALUE = 1;
  /**
   * RUNNING = 2;
   */
  public static final int RUNNING_VALUE = 2;
  /**
   * SUCCEED = 3;
   */
  public static final int SUCCEED_VALUE = 3;
  /**
   * CANCELLING = 4;
   */
  public static final int CANCELLING_VALUE = 4;
  /**
   * CANCELLED = 5;
   */
  public static final int CANCELLED_VALUE = 5;
  /**
   * FAILED = 6;
   */
  public static final int FAILED_VALUE = 6;
  /**
   * RESUMING_CLUSTER = 7;
   */
  public static final int RESUMING_CLUSTER_VALUE = 7;


  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 JobStatus 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 JobStatus forNumber(int value) {
    switch (value) {
      case 0: return SETUP;
      case 1: return QUEUEING;
      case 2: return RUNNING;
      case 3: return SUCCEED;
      case 4: return CANCELLING;
      case 5: return CANCELLED;
      case 6: return FAILED;
      case 7: return RESUMING_CLUSTER;
      default: return null;
    }
  }

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

  public final com.google.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.google.protobuf.Descriptors.EnumDescriptor
      getDescriptorForType() {
    return getDescriptor();
  }
  public static final com.google.protobuf.Descriptors.EnumDescriptor
      getDescriptor() {
    return cz.proto.JobMetaOuterClass.getDescriptor().getEnumTypes().get(0);
  }

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

  public static JobStatus 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 JobStatus(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:cz.proto.JobStatus)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy