public static enum GetModelStatus.ModelVersionStatus.State extends java.lang.Enum<GetModelStatus.ModelVersionStatus.State> implements com.google.protobuf.ProtocolMessageEnum
States that map to ManagerState enum in tensorflow_serving/core/servable_state.hProtobuf enum
tensorflow.serving.ModelVersionStatus.State| Enum Constant and Description |
|---|
AVAILABLE
The manager has successfully loaded this servable and made it available
for serving (i.e.
|
END
This servable has reached the end of its journey in the manager.
|
LOADING
The manager has decided to load this servable.
|
START
The manager is tracking this servable, but has not initiated any action
pertaining to it.
|
UNKNOWN
Default value.
|
UNLOADING
The manager has decided to make this servable unavailable, and unload
it.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AVAILABLE_VALUE
The manager has successfully loaded this servable and made it available
for serving (i.e.
|
static int |
END_VALUE
This servable has reached the end of its journey in the manager.
|
static int |
LOADING_VALUE
The manager has decided to load this servable.
|
static int |
START_VALUE
The manager is tracking this servable, but has not initiated any action
pertaining to it.
|
static int |
UNKNOWN_VALUE
Default value.
|
static int |
UNLOADING_VALUE
The manager has decided to make this servable unavailable, and unload
it.
|
| Modifier and Type | Method and Description |
|---|---|
static GetModelStatus.ModelVersionStatus.State |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<GetModelStatus.ModelVersionStatus.State> |
internalGetValueMap() |
static GetModelStatus.ModelVersionStatus.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static GetModelStatus.ModelVersionStatus.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static GetModelStatus.ModelVersionStatus.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GetModelStatus.ModelVersionStatus.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GetModelStatus.ModelVersionStatus.State UNKNOWN
Default value.
UNKNOWN = 0;public static final GetModelStatus.ModelVersionStatus.State START
The manager is tracking this servable, but has not initiated any action pertaining to it.
START = 10;public static final GetModelStatus.ModelVersionStatus.State LOADING
The manager has decided to load this servable. In particular, checks around resource availability and other aspects have passed, and the manager is about to invoke the loader's Load() method.
LOADING = 20;public static final GetModelStatus.ModelVersionStatus.State AVAILABLE
The manager has successfully loaded this servable and made it available for serving (i.e. GetServableHandle(id) will succeed). To avoid races, this state is not reported until *after* the servable is made available.
AVAILABLE = 30;public static final GetModelStatus.ModelVersionStatus.State UNLOADING
The manager has decided to make this servable unavailable, and unload it. To avoid races, this state is reported *before* the servable is made unavailable.
UNLOADING = 40;public static final GetModelStatus.ModelVersionStatus.State END
This servable has reached the end of its journey in the manager. Either it loaded and ultimately unloaded successfully, or it hit an error at some point in its lifecycle.
END = 50;public static final GetModelStatus.ModelVersionStatus.State UNRECOGNIZED
public static final int UNKNOWN_VALUE
Default value.
UNKNOWN = 0;public static final int START_VALUE
The manager is tracking this servable, but has not initiated any action pertaining to it.
START = 10;public static final int LOADING_VALUE
The manager has decided to load this servable. In particular, checks around resource availability and other aspects have passed, and the manager is about to invoke the loader's Load() method.
LOADING = 20;public static final int AVAILABLE_VALUE
The manager has successfully loaded this servable and made it available for serving (i.e. GetServableHandle(id) will succeed). To avoid races, this state is not reported until *after* the servable is made available.
AVAILABLE = 30;public static final int UNLOADING_VALUE
The manager has decided to make this servable unavailable, and unload it. To avoid races, this state is reported *before* the servable is made unavailable.
UNLOADING = 40;public static final int END_VALUE
This servable has reached the end of its journey in the manager. Either it loaded and ultimately unloaded successfully, or it hit an error at some point in its lifecycle.
END = 50;public static GetModelStatus.ModelVersionStatus.State[] values()
for (GetModelStatus.ModelVersionStatus.State c : GetModelStatus.ModelVersionStatus.State.values()) System.out.println(c);
public static GetModelStatus.ModelVersionStatus.State valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static GetModelStatus.ModelVersionStatus.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static GetModelStatus.ModelVersionStatus.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<GetModelStatus.ModelVersionStatus.State> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static GetModelStatus.ModelVersionStatus.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)