Package biopb.tensor
Class SetUploadStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
biopb.tensor.SetUploadStatus.Builder
- All Implemented Interfaces:
SetUploadStatusOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SetUploadStatus
public static final class SetUploadStatus.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()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>`.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Why, for DISCARDED only.Where to move it: READY (publish -- seal writes, open reads) or DISCARDED (give up, and release whatever the server minted for it).clone()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>`.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 final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorWhy, for DISCARDED only.com.google.protobuf.ByteStringWhy, for DISCARDED only.getState()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).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(SetUploadStatus other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final SetUploadStatus.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setArrayId(String value) 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>`.setArrayIdBytes(com.google.protobuf.ByteString value) 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>`.Why, for DISCARDED only.setReasonBytes(com.google.protobuf.ByteString value) Why, for DISCARDED only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setState(UploadStatus.State value) Where to move it: READY (publish -- seal writes, open reads) or DISCARDED (give up, and release whatever the server minted for it).setStateValue(int value) Where to move it: READY (publish -- seal writes, open reads) or DISCARDED (give up, and release whatever the server minted for it).final SetUploadStatus.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<SetUploadStatus.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-
setField
public SetUploadStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-
setRepeatedField
public SetUploadStatus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-
addRepeatedField
public SetUploadStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SetUploadStatus.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-
mergeFrom
public SetUploadStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SetUploadStatus.Builder>- Throws:
IOException
-
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.
-
setArrayId
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;- Parameters:
value- The arrayId to set.- Returns:
- This builder for chaining.
-
clearArrayId
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;- Returns:
- This builder for chaining.
-
setArrayIdBytes
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;- Parameters:
value- The bytes for arrayId to set.- Returns:
- This builder for chaining.
-
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.
-
setStateValue
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;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
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.
-
setState
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;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
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;- Returns:
- This builder for chaining.
-
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.
-
setReason
Why, for DISCARDED only. Consumer-facing: it is what a poller waiting on this result reads back.
string reason = 3;- Parameters:
value- The reason to set.- Returns:
- This builder for chaining.
-
clearReason
Why, for DISCARDED only. Consumer-facing: it is what a poller waiting on this result reads back.
string reason = 3;- Returns:
- This builder for chaining.
-
setReasonBytes
Why, for DISCARDED only. Consumer-facing: it is what a poller waiting on this result reads back.
string reason = 3;- Parameters:
value- The bytes for reason to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SetUploadStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-
mergeUnknownFields
public final SetUploadStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SetUploadStatus.Builder>
-