Package biopb.tensor
Class SetUploadStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
biopb.tensor.SetUploadStatus
- All Implemented Interfaces:
SetUploadStatusOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class SetUploadStatus
extends com.google.protobuf.GeneratedMessageV3
implements SetUploadStatusOrBuilder
Body of the `set_upload_status` action: move an upload along its ladder. One action for every transition, because they are one decision made repeatedly about one object -- and because the alternative had grown a verb per transition (`finish`, `delete_labels`) that each had to re-derive which object it was talking about.Protobuf type
biopb.tensor.SetUploadStatus- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBody of the `set_upload_status` action: move an upload along its ladder.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhat is being moved, as `add_tensor` answered with it: `<source_id>/@fields/<name>` for an uploaded tensor, or a label set's `<image array_id>/@labels/<name>`.com.google.protobuf.ByteStringWhat is being moved, as `add_tensor` answered with it: `<source_id>/@fields/<name>` for an uploaded tensor, or a label set's `<image array_id>/@labels/<name>`.static SetUploadStatusstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<SetUploadStatus>Why, for DISCARDED only.com.google.protobuf.ByteStringWhy, for DISCARDED only.intgetState()Where to move it: READY (publish -- seal writes, open reads) or DISCARDED (give up, and release whatever the server minted for it).intWhere to move it: READY (publish -- seal writes, open reads) or DISCARDED (give up, and release whatever the server minted for it).inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic SetUploadStatus.Builderstatic SetUploadStatus.BuildernewBuilder(SetUploadStatus prototype) protected SetUploadStatus.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static SetUploadStatusparseDelimitedFrom(InputStream input) static SetUploadStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SetUploadStatusparseFrom(byte[] data) static SetUploadStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SetUploadStatusparseFrom(com.google.protobuf.ByteString data) static SetUploadStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SetUploadStatusparseFrom(com.google.protobuf.CodedInputStream input) static SetUploadStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SetUploadStatusparseFrom(InputStream input) static SetUploadStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SetUploadStatusparseFrom(ByteBuffer data) static SetUploadStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SetUploadStatus>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ARRAY_ID_FIELD_NUMBER
public static final int ARRAY_ID_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
REASON_FIELD_NUMBER
public static final int REASON_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getArrayId
What is being moved, as `add_tensor` answered with it: `<source_id>/@fields/<name>` for an uploaded tensor, or a label set's `<image array_id>/@labels/<name>`. An `array_id` rather than a `source_id` because what an upload tracks is always a *tensor* of a source, never the source itself -- a source is discovered, or is the scratch source the server serves, and neither takes an upload. It alone names the attempt: a name is single-use for the life of the server (`add_tensor` refuses a collision), so what it finds is what the caller created.
string array_id = 1;- Specified by:
getArrayIdin interfaceSetUploadStatusOrBuilder- Returns:
- The arrayId.
-
getArrayIdBytes
public com.google.protobuf.ByteString getArrayIdBytes()What is being moved, as `add_tensor` answered with it: `<source_id>/@fields/<name>` for an uploaded tensor, or a label set's `<image array_id>/@labels/<name>`. An `array_id` rather than a `source_id` because what an upload tracks is always a *tensor* of a source, never the source itself -- a source is discovered, or is the scratch source the server serves, and neither takes an upload. It alone names the attempt: a name is single-use for the life of the server (`add_tensor` refuses a collision), so what it finds is what the caller created.
string array_id = 1;- Specified by:
getArrayIdBytesin interfaceSetUploadStatusOrBuilder- Returns:
- The bytes for arrayId.
-
getStateValue
public int getStateValue()Where to move it: READY (publish -- seal writes, open reads) or DISCARDED (give up, and release whatever the server minted for it). Setting the state it is already in is a no-op, and moving back down the ladder is refused. PENDING and STATE_UNSPECIFIED are not settable: an upload starts PENDING and nothing returns it there yet.
.biopb.tensor.UploadStatus.State state = 2;- Specified by:
getStateValuein interfaceSetUploadStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Where to move it: READY (publish -- seal writes, open reads) or DISCARDED (give up, and release whatever the server minted for it). Setting the state it is already in is a no-op, and moving back down the ladder is refused. PENDING and STATE_UNSPECIFIED are not settable: an upload starts PENDING and nothing returns it there yet.
.biopb.tensor.UploadStatus.State state = 2;- Specified by:
getStatein interfaceSetUploadStatusOrBuilder- Returns:
- The state.
-
getReason
Why, for DISCARDED only. Consumer-facing: it is what a poller waiting on this result reads back.
string reason = 3;- Specified by:
getReasonin interfaceSetUploadStatusOrBuilder- Returns:
- The reason.
-
getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()Why, for DISCARDED only. Consumer-facing: it is what a poller waiting on this result reads back.
string reason = 3;- Specified by:
getReasonBytesin interfaceSetUploadStatusOrBuilder- Returns:
- The bytes for reason.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SetUploadStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetUploadStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetUploadStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetUploadStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetUploadStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetUploadStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SetUploadStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SetUploadStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SetUploadStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SetUploadStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SetUploadStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-