
org.yamcs.protobuf.Cop1State 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/cop1/cop1.proto
package org.yamcs.protobuf;
/**
* Protobuf enum {@code yamcs.protobuf.cop1.Cop1State}
*/
public enum Cop1State
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ACTIVE = 1;
*/
ACTIVE(1),
/**
* RETRANSMIT_WITHOUT_WAIT = 2;
*/
RETRANSMIT_WITHOUT_WAIT(2),
/**
* RETRANSMIT_WITH_WAIT = 3;
*/
RETRANSMIT_WITH_WAIT(3),
/**
* INITIALIZING_WITHOUT_BC = 4;
*/
INITIALIZING_WITHOUT_BC(4),
/**
* INITIALIZING_WITH_BC = 5;
*/
INITIALIZING_WITH_BC(5),
/**
* UNINITIALIZED = 6;
*/
UNINITIALIZED(6),
/**
* SUSPENDED = 7;
*/
SUSPENDED(7),
;
/**
* ACTIVE = 1;
*/
public static final int ACTIVE_VALUE = 1;
/**
* RETRANSMIT_WITHOUT_WAIT = 2;
*/
public static final int RETRANSMIT_WITHOUT_WAIT_VALUE = 2;
/**
* RETRANSMIT_WITH_WAIT = 3;
*/
public static final int RETRANSMIT_WITH_WAIT_VALUE = 3;
/**
* INITIALIZING_WITHOUT_BC = 4;
*/
public static final int INITIALIZING_WITHOUT_BC_VALUE = 4;
/**
* INITIALIZING_WITH_BC = 5;
*/
public static final int INITIALIZING_WITH_BC_VALUE = 5;
/**
* UNINITIALIZED = 6;
*/
public static final int UNINITIALIZED_VALUE = 6;
/**
* SUSPENDED = 7;
*/
public static final int SUSPENDED_VALUE = 7;
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 Cop1State 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 Cop1State forNumber(int value) {
switch (value) {
case 1: return ACTIVE;
case 2: return RETRANSMIT_WITHOUT_WAIT;
case 3: return RETRANSMIT_WITH_WAIT;
case 4: return INITIALIZING_WITHOUT_BC;
case 5: return INITIALIZING_WITH_BC;
case 6: return UNINITIALIZED;
case 7: return SUSPENDED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Cop1State> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Cop1State findValueByNumber(int number) {
return Cop1State.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.Cop1Proto.getDescriptor().getEnumTypes().get(1);
}
private static final Cop1State[] VALUES = values();
public static Cop1State 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 Cop1State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.cop1.Cop1State)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy