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

xyz.block.ftl.v1.schema.Status Maven / Gradle / Ivy

There is a newer version: 0.368.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: xyz/block/ftl/v1/schema/runtime.proto

// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1.schema;

/**
 * Protobuf enum {@code xyz.block.ftl.v1.schema.Status}
 */
public enum Status
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * OFFLINE = 0;
   */
  OFFLINE(0),
  /**
   * STARTING = 1;
   */
  STARTING(1),
  /**
   * ONLINE = 2;
   */
  ONLINE(2),
  /**
   * STOPPING = 3;
   */
  STOPPING(3),
  /**
   * STOPPED = 4;
   */
  STOPPED(4),
  /**
   * ERRORED = 5;
   */
  ERRORED(5),
  UNRECOGNIZED(-1),
  ;

  /**
   * OFFLINE = 0;
   */
  public static final int OFFLINE_VALUE = 0;
  /**
   * STARTING = 1;
   */
  public static final int STARTING_VALUE = 1;
  /**
   * ONLINE = 2;
   */
  public static final int ONLINE_VALUE = 2;
  /**
   * STOPPING = 3;
   */
  public static final int STOPPING_VALUE = 3;
  /**
   * STOPPED = 4;
   */
  public static final int STOPPED_VALUE = 4;
  /**
   * ERRORED = 5;
   */
  public static final int ERRORED_VALUE = 5;


  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 Status 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 Status forNumber(int value) {
    switch (value) {
      case 0: return OFFLINE;
      case 1: return STARTING;
      case 2: return ONLINE;
      case 3: return STOPPING;
      case 4: return STOPPED;
      case 5: return ERRORED;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      Status> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public Status findValueByNumber(int number) {
            return Status.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 xyz.block.ftl.v1.schema.Runtime.getDescriptor().getEnumTypes().get(0);
  }

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

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

  // @@protoc_insertion_point(enum_scope:xyz.block.ftl.v1.schema.Status)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy