Package biopb.tensor
Enum UploadStatus.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<UploadStatus.State>,java.lang.constant.Constable
- Enclosing class:
- UploadStatus
public static enum UploadStatus.State
extends Enum<UploadStatus.State>
implements com.google.protobuf.ProtocolMessageEnum
One gate, and one way out. PENDING -> READY is a ladder: `set_upload_status` moves up it or stands still, never back. READY seals the upload against writes and opens it to reads in one move, so no state is both readable and writable -- a read is cacheable and a later write cannot invalidate one already taken. DISCARDED can be set from either rung.Protobuf enum
biopb.tensor.UploadStatus.State-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGiven up on, terminal.Filling, and not yet readable: a chunk that has not arrived is indistinguishable from one that never will, so DoGet is refused.Published and sealed: readable, no longer writable.Never sent. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intGiven up on, terminal.static final intFilling, and not yet readable: a chunk that has not arrived is indistinguishable from one that never will, so DoGet is refused.static final intPublished and sealed: readable, no longer writable.static final intNever sent. -
Method Summary
Modifier and TypeMethodDescriptionstatic UploadStatus.StateforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<UploadStatus.State>static UploadStatus.StatevalueOf(int value) Deprecated.static UploadStatus.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static UploadStatus.StateReturns the enum constant of this type with the specified name.static UploadStatus.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
Never sent. Present so a client meeting an unknown state reads it as "I do not know this" rather than as PENDING.
STATE_UNSPECIFIED = 0; -
PENDING
Filling, and not yet readable: a chunk that has not arrived is indistinguishable from one that never will, so DoGet is refused.
PENDING = 1; -
READY
Published and sealed: readable, no longer writable. A chunk that never arrived reads as zeros, so a consumer sees a partial result rather than an error -- which is the point of the state. What is there is final.
READY = 2; -
DISCARDED
Given up on, terminal. `reason` says why.
DISCARDED = 3; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUENever sent. Present so a client meeting an unknown state reads it as "I do not know this" rather than as PENDING.
STATE_UNSPECIFIED = 0;- See Also:
-
PENDING_VALUE
public static final int PENDING_VALUEFilling, and not yet readable: a chunk that has not arrived is indistinguishable from one that never will, so DoGet is refused.
PENDING = 1;- See Also:
-
READY_VALUE
public static final int READY_VALUEPublished and sealed: readable, no longer writable. A chunk that never arrived reads as zeros, so a consumer sees a partial result rather than an error -- which is the point of the state. What is there is final.
READY = 2;- See Also:
-
DISCARDED_VALUE
public static final int DISCARDED_VALUEGiven up on, terminal. `reason` says why.
DISCARDED = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-