All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.protobuf.ServiceState Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yamcs/protobuf/services/services.proto

package org.yamcs.protobuf;

/**
 * 
 *service states coming from guava (numbers have to correspond)
 * 
* * Protobuf enum {@code yamcs.protobuf.services.ServiceState} */ public enum ServiceState implements com.google.protobuf.ProtocolMessageEnum { /** *
   * A service in this state is inactive. It does minimal work and
   * consumes minimal resources.
   * 
* * NEW = 0; */ NEW(0), /** *
   * A service in this state is transitioning to ``RUNNING``.
   * 
* * STARTING = 1; */ STARTING(1), /** *
   * A service in this state is operational.
   * 
* * RUNNING = 2; */ RUNNING(2), /** *
   * A service in this state is transitioning to ``TERMINATED``.
   * 
* * STOPPING = 3; */ STOPPING(3), /** *
   * A service in this state has completed execution normally.
   * It does minimal work and consumes minimal resources.
   * 
* * TERMINATED = 4; */ TERMINATED(4), /** *
   * A service in this state has encountered a problem and may
   * not be operational. It cannot be started nor stopped.
   * 
* * FAILED = 5; */ FAILED(5), ; /** *
   * A service in this state is inactive. It does minimal work and
   * consumes minimal resources.
   * 
* * NEW = 0; */ public static final int NEW_VALUE = 0; /** *
   * A service in this state is transitioning to ``RUNNING``.
   * 
* * STARTING = 1; */ public static final int STARTING_VALUE = 1; /** *
   * A service in this state is operational.
   * 
* * RUNNING = 2; */ public static final int RUNNING_VALUE = 2; /** *
   * A service in this state is transitioning to ``TERMINATED``.
   * 
* * STOPPING = 3; */ public static final int STOPPING_VALUE = 3; /** *
   * A service in this state has completed execution normally.
   * It does minimal work and consumes minimal resources.
   * 
* * TERMINATED = 4; */ public static final int TERMINATED_VALUE = 4; /** *
   * A service in this state has encountered a problem and may
   * not be operational. It cannot be started nor stopped.
   * 
* * 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 ServiceState 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 ServiceState forNumber(int value) { switch (value) { case 0: return NEW; case 1: return STARTING; case 2: return RUNNING; case 3: return STOPPING; case 4: return TERMINATED; 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< ServiceState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ServiceState findValueByNumber(int number) { return ServiceState.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.ServicesProto.getDescriptor().getEnumTypes().get(0); } private static final ServiceState[] VALUES = values(); public static ServiceState 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 ServiceState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yamcs.protobuf.services.ServiceState) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy