
org.yamcs.protobuf.ExecutionStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yamcs/protobuf/timeline/timeline.proto
package org.yamcs.protobuf;
/**
*
* Execution status of an activity
*
*
* Protobuf enum {@code yamcs.protobuf.timeline.ExecutionStatus}
*/
public enum ExecutionStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PLANNED = 1;
*/
PLANNED(1),
/**
* IN_PROGRESS = 2;
*/
IN_PROGRESS(2),
/**
* COMPLETED = 3;
*/
COMPLETED(3),
/**
* ABORTED = 4;
*/
ABORTED(4),
/**
* FAILED = 5;
*/
FAILED(5),
;
/**
* PLANNED = 1;
*/
public static final int PLANNED_VALUE = 1;
/**
* IN_PROGRESS = 2;
*/
public static final int IN_PROGRESS_VALUE = 2;
/**
* COMPLETED = 3;
*/
public static final int COMPLETED_VALUE = 3;
/**
* ABORTED = 4;
*/
public static final int ABORTED_VALUE = 4;
/**
* FAILED = 5;
*/
public static final int FAILED_VALUE = 5;
public final int getNumber() {
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 ExecutionStatus 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 ExecutionStatus forNumber(int value) {
switch (value) {
case 1: return PLANNED;
case 2: return IN_PROGRESS;
case 3: return COMPLETED;
case 4: return ABORTED;
case 5: return FAILED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ExecutionStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ExecutionStatus findValueByNumber(int number) {
return ExecutionStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
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 org.yamcs.protobuf.TimelineProto.getDescriptor().getEnumTypes().get(1);
}
private static final ExecutionStatus[] VALUES = values();
public static ExecutionStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private ExecutionStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.timeline.ExecutionStatus)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy