io.ray.serve.generated.ApplicationStatus Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: src/ray/protobuf/serve.proto
package io.ray.serve.generated;
/**
* Protobuf enum {@code ray.serve.ApplicationStatus}
*/
public enum ApplicationStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* APPLICATION_STATUS_DEPLOYING = 0;
*/
APPLICATION_STATUS_DEPLOYING(0),
/**
* APPLICATION_STATUS_RUNNING = 1;
*/
APPLICATION_STATUS_RUNNING(1),
/**
* APPLICATION_STATUS_DEPLOY_FAILED = 2;
*/
APPLICATION_STATUS_DEPLOY_FAILED(2),
/**
* APPLICATION_STATUS_DELETING = 3;
*/
APPLICATION_STATUS_DELETING(3),
/**
* APPLICATION_STATUS_NOT_STARTED = 5;
*/
APPLICATION_STATUS_NOT_STARTED(5),
/**
* APPLICATION_STATUS_UNHEALTHY = 6;
*/
APPLICATION_STATUS_UNHEALTHY(6),
UNRECOGNIZED(-1),
;
/**
* APPLICATION_STATUS_DEPLOYING = 0;
*/
public static final int APPLICATION_STATUS_DEPLOYING_VALUE = 0;
/**
* APPLICATION_STATUS_RUNNING = 1;
*/
public static final int APPLICATION_STATUS_RUNNING_VALUE = 1;
/**
* APPLICATION_STATUS_DEPLOY_FAILED = 2;
*/
public static final int APPLICATION_STATUS_DEPLOY_FAILED_VALUE = 2;
/**
* APPLICATION_STATUS_DELETING = 3;
*/
public static final int APPLICATION_STATUS_DELETING_VALUE = 3;
/**
* APPLICATION_STATUS_NOT_STARTED = 5;
*/
public static final int APPLICATION_STATUS_NOT_STARTED_VALUE = 5;
/**
* APPLICATION_STATUS_UNHEALTHY = 6;
*/
public static final int APPLICATION_STATUS_UNHEALTHY_VALUE = 6;
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 ApplicationStatus 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 ApplicationStatus forNumber(int value) {
switch (value) {
case 0: return APPLICATION_STATUS_DEPLOYING;
case 1: return APPLICATION_STATUS_RUNNING;
case 2: return APPLICATION_STATUS_DEPLOY_FAILED;
case 3: return APPLICATION_STATUS_DELETING;
case 5: return APPLICATION_STATUS_NOT_STARTED;
case 6: return APPLICATION_STATUS_UNHEALTHY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ApplicationStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ApplicationStatus findValueByNumber(int number) {
return ApplicationStatus.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 io.ray.serve.generated.ServeProtos.getDescriptor().getEnumTypes().get(5);
}
private static final ApplicationStatus[] VALUES = values();
public static ApplicationStatus 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 ApplicationStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.serve.ApplicationStatus)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy