
org.yamcs.protobuf.activities.ActivityStatus 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/activities/activities.proto
package org.yamcs.protobuf.activities;
/**
* Protobuf enum {@code yamcs.protobuf.activities.ActivityStatus}
*/
public enum ActivityStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* An activity is runing
*
*
* RUNNING = 1;
*/
RUNNING(1),
/**
*
* The activity was cancelled. It may or may not still be running
* (verify stop time).
*
*
* CANCELLED = 2;
*/
CANCELLED(2),
/**
*
* The activity completed successfully
*
*
* SUCCESSFUL = 3;
*/
SUCCESSFUL(3),
/**
*
* An error occurred while running this activity
*
*
* FAILED = 4;
*/
FAILED(4),
;
/**
*
* An activity is runing
*
*
* RUNNING = 1;
*/
public static final int RUNNING_VALUE = 1;
/**
*
* The activity was cancelled. It may or may not still be running
* (verify stop time).
*
*
* CANCELLED = 2;
*/
public static final int CANCELLED_VALUE = 2;
/**
*
* The activity completed successfully
*
*
* SUCCESSFUL = 3;
*/
public static final int SUCCESSFUL_VALUE = 3;
/**
*
* An error occurred while running this activity
*
*
* FAILED = 4;
*/
public static final int FAILED_VALUE = 4;
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 ActivityStatus 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 ActivityStatus forNumber(int value) {
switch (value) {
case 1: return RUNNING;
case 2: return CANCELLED;
case 3: return SUCCESSFUL;
case 4: return FAILED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ActivityStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ActivityStatus findValueByNumber(int number) {
return ActivityStatus.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.activities.ActivitiesProto.getDescriptor().getEnumTypes().get(0);
}
private static final ActivityStatus[] VALUES = values();
public static ActivityStatus 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 ActivityStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.activities.ActivityStatus)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy