io.ray.serve.generated.DeploymentStatusTrigger Maven / Gradle / Ivy
The newest version!
// 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.DeploymentStatusTrigger}
*/
public enum DeploymentStatusTrigger
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DEPLOYMENT_STATUS_TRIGGER_UNSPECIFIED = 0;
*/
DEPLOYMENT_STATUS_TRIGGER_UNSPECIFIED(0),
/**
* DEPLOYMENT_STATUS_TRIGGER_CONFIG_UPDATE_STARTED = 1;
*/
DEPLOYMENT_STATUS_TRIGGER_CONFIG_UPDATE_STARTED(1),
/**
* DEPLOYMENT_STATUS_TRIGGER_CONFIG_UPDATE_COMPLETED = 2;
*/
DEPLOYMENT_STATUS_TRIGGER_CONFIG_UPDATE_COMPLETED(2),
/**
* DEPLOYMENT_STATUS_TRIGGER_UPSCALE_COMPLETED = 3;
*/
DEPLOYMENT_STATUS_TRIGGER_UPSCALE_COMPLETED(3),
/**
* DEPLOYMENT_STATUS_TRIGGER_DOWNSCALE_COMPLETED = 4;
*/
DEPLOYMENT_STATUS_TRIGGER_DOWNSCALE_COMPLETED(4),
/**
* DEPLOYMENT_STATUS_TRIGGER_AUTOSCALING = 5;
*/
DEPLOYMENT_STATUS_TRIGGER_AUTOSCALING(5),
/**
* DEPLOYMENT_STATUS_TRIGGER_REPLICA_STARTUP_FAILED = 6;
*/
DEPLOYMENT_STATUS_TRIGGER_REPLICA_STARTUP_FAILED(6),
/**
* DEPLOYMENT_STATUS_TRIGGER_HEALTH_CHECK_FAILED = 7;
*/
DEPLOYMENT_STATUS_TRIGGER_HEALTH_CHECK_FAILED(7),
/**
* DEPLOYMENT_STATUS_TRIGGER_INTERNAL_ERROR = 8;
*/
DEPLOYMENT_STATUS_TRIGGER_INTERNAL_ERROR(8),
/**
* DEPLOYMENT_STATUS_TRIGGER_DELETING = 9;
*/
DEPLOYMENT_STATUS_TRIGGER_DELETING(9),
UNRECOGNIZED(-1),
;
/**
* DEPLOYMENT_STATUS_TRIGGER_UNSPECIFIED = 0;
*/
public static final int DEPLOYMENT_STATUS_TRIGGER_UNSPECIFIED_VALUE = 0;
/**
* DEPLOYMENT_STATUS_TRIGGER_CONFIG_UPDATE_STARTED = 1;
*/
public static final int DEPLOYMENT_STATUS_TRIGGER_CONFIG_UPDATE_STARTED_VALUE = 1;
/**
* DEPLOYMENT_STATUS_TRIGGER_CONFIG_UPDATE_COMPLETED = 2;
*/
public static final int DEPLOYMENT_STATUS_TRIGGER_CONFIG_UPDATE_COMPLETED_VALUE = 2;
/**
* DEPLOYMENT_STATUS_TRIGGER_UPSCALE_COMPLETED = 3;
*/
public static final int DEPLOYMENT_STATUS_TRIGGER_UPSCALE_COMPLETED_VALUE = 3;
/**
* DEPLOYMENT_STATUS_TRIGGER_DOWNSCALE_COMPLETED = 4;
*/
public static final int DEPLOYMENT_STATUS_TRIGGER_DOWNSCALE_COMPLETED_VALUE = 4;
/**
* DEPLOYMENT_STATUS_TRIGGER_AUTOSCALING = 5;
*/
public static final int DEPLOYMENT_STATUS_TRIGGER_AUTOSCALING_VALUE = 5;
/**
* DEPLOYMENT_STATUS_TRIGGER_REPLICA_STARTUP_FAILED = 6;
*/
public static final int DEPLOYMENT_STATUS_TRIGGER_REPLICA_STARTUP_FAILED_VALUE = 6;
/**
* DEPLOYMENT_STATUS_TRIGGER_HEALTH_CHECK_FAILED = 7;
*/
public static final int DEPLOYMENT_STATUS_TRIGGER_HEALTH_CHECK_FAILED_VALUE = 7;
/**
* DEPLOYMENT_STATUS_TRIGGER_INTERNAL_ERROR = 8;
*/
public static final int DEPLOYMENT_STATUS_TRIGGER_INTERNAL_ERROR_VALUE = 8;
/**
* DEPLOYMENT_STATUS_TRIGGER_DELETING = 9;
*/
public static final int DEPLOYMENT_STATUS_TRIGGER_DELETING_VALUE = 9;
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 DeploymentStatusTrigger 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 DeploymentStatusTrigger forNumber(int value) {
switch (value) {
case 0: return DEPLOYMENT_STATUS_TRIGGER_UNSPECIFIED;
case 1: return DEPLOYMENT_STATUS_TRIGGER_CONFIG_UPDATE_STARTED;
case 2: return DEPLOYMENT_STATUS_TRIGGER_CONFIG_UPDATE_COMPLETED;
case 3: return DEPLOYMENT_STATUS_TRIGGER_UPSCALE_COMPLETED;
case 4: return DEPLOYMENT_STATUS_TRIGGER_DOWNSCALE_COMPLETED;
case 5: return DEPLOYMENT_STATUS_TRIGGER_AUTOSCALING;
case 6: return DEPLOYMENT_STATUS_TRIGGER_REPLICA_STARTUP_FAILED;
case 7: return DEPLOYMENT_STATUS_TRIGGER_HEALTH_CHECK_FAILED;
case 8: return DEPLOYMENT_STATUS_TRIGGER_INTERNAL_ERROR;
case 9: return DEPLOYMENT_STATUS_TRIGGER_DELETING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DeploymentStatusTrigger> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DeploymentStatusTrigger findValueByNumber(int number) {
return DeploymentStatusTrigger.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(4);
}
private static final DeploymentStatusTrigger[] VALUES = values();
public static DeploymentStatusTrigger 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 DeploymentStatusTrigger(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.serve.DeploymentStatusTrigger)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy