Enum BetaDreamStatus.Value
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum BetaDreamStatus.Value extends Enum<BetaDreamStatus.Value>
An enum containing BetaDreamStatus's known values, as well as an _UNKNOWN member.
An instance of BetaDreamStatus can contain an unknown value in a couple of cases:
It was deserialized from data that doesn't match any known member. For example, if the SDK is on an older version than the API, then the API may respond with new members that the SDK is unaware of.
It was constructed with an arbitrary value using the of method.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<BetaDreamStatus.Value>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description PENDINGThe dream is waiting to start and hasn't read its inputs yet.
outputsis empty and everyusagecount is zero.RUNNINGThe dream is reading its inputs and writing its result.
usageupdates while the dream has this status.COMPLETEDThe dream finished and its output memory store holds the complete result.
FAILEDThe dream stopped with an error, which
errordescribes.If
outputsreferences a memory store, that memory store keeps what the dream wrote before it stopped.CANCELEDA cancel request stopped the dream before it reached
completedorfailed.If
outputsreferences a memory store, that memory store keeps what the dream wrote.usagecan keep changing after the cancel._UNKNOWNAn enum member indicating that BetaDreamStatus was instantiated with an unknown value.
-
Method Summary
Modifier and Type Method Description final Array<BetaDreamStatus.Value>values()Returns an array containing the constants of this enum type, in the order they're declared. final BetaDreamStatus.ValuevalueOf(String value)Returns the enum constant of this type with the specified name. final EnumEntries<BetaDreamStatus.Value>getEntries()-
-
Method Detail
-
values
final Array<BetaDreamStatus.Value> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
valueOf
final BetaDreamStatus.Value valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
getEntries
final EnumEntries<BetaDreamStatus.Value> getEntries()
-
-
-
-