
org.yamcs.protobuf.TransferState 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/filetransfer/filetransfer.proto
package org.yamcs.protobuf;
/**
* Protobuf enum {@code yamcs.protobuf.filetransfer.TransferState}
*/
public enum TransferState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* RUNNING = 1;
*/
RUNNING(1),
/**
* PAUSED = 2;
*/
PAUSED(2),
/**
* FAILED = 3;
*/
FAILED(3),
/**
* COMPLETED = 4;
*/
COMPLETED(4),
/**
* QUEUED = 5;
*/
QUEUED(5),
/**
* CANCELLING = 6;
*/
CANCELLING(6),
;
/**
* RUNNING = 1;
*/
public static final int RUNNING_VALUE = 1;
/**
* PAUSED = 2;
*/
public static final int PAUSED_VALUE = 2;
/**
* FAILED = 3;
*/
public static final int FAILED_VALUE = 3;
/**
* COMPLETED = 4;
*/
public static final int COMPLETED_VALUE = 4;
/**
* QUEUED = 5;
*/
public static final int QUEUED_VALUE = 5;
/**
* CANCELLING = 6;
*/
public static final int CANCELLING_VALUE = 6;
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 TransferState 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 TransferState forNumber(int value) {
switch (value) {
case 1: return RUNNING;
case 2: return PAUSED;
case 3: return FAILED;
case 4: return COMPLETED;
case 5: return QUEUED;
case 6: return CANCELLING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TransferState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TransferState findValueByNumber(int number) {
return TransferState.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.FileTransferProto.getDescriptor().getEnumTypes().get(1);
}
private static final TransferState[] VALUES = values();
public static TransferState 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 TransferState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.filetransfer.TransferState)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy