Package biopb.tensor
Class UploadStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
biopb.tensor.UploadStatus.Builder
- All Implemented Interfaces:
UploadStatusOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UploadStatus
public static final class UploadStatus.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
implements UploadStatusOrBuilder
How far the upload backing a tensor has got. Reported on the descriptor GetFlightInfo returns rather than by an action, because `do_action` takes full access while GetFlightInfo is source-scoped: a holder of the per-source read capability the fast-return path hands out must be able to poll its own result to READY (biopb/biopb#1048).Protobuf type
biopb.tensor.UploadStatus-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The chunk grid declared at create time.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Why the upload was discarded; empty otherwise..biopb.tensor.UploadStatus.State state = 1;Distinct chunks that have landed; frozen at the count reached once DISCARDED.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe chunk grid declared at create time.Why the upload was discarded; empty otherwise.com.google.protobuf.ByteStringWhy the upload was discarded; empty otherwise.getState().biopb.tensor.UploadStatus.State state = 1;int.biopb.tensor.UploadStatus.State state = 1;longDistinct chunks that have landed; frozen at the count reached once DISCARDED.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(UploadStatus other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final UploadStatus.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setExpectedChunks(long value) The chunk grid declared at create time.Why the upload was discarded; empty otherwise.setReasonBytes(com.google.protobuf.ByteString value) Why the upload was discarded; empty otherwise.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setState(UploadStatus.State value) .biopb.tensor.UploadStatus.State state = 1;setStateValue(int value) .biopb.tensor.UploadStatus.State state = 1;final UploadStatus.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUploadedChunks(long value) Distinct chunks that have landed; frozen at the count reached once DISCARDED.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<UploadStatus.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<UploadStatus.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<UploadStatus.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<UploadStatus.Builder>
-
setField
public UploadStatus.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<UploadStatus.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
-
setRepeatedField
public UploadStatus.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<UploadStatus.Builder>
-
addRepeatedField
public UploadStatus.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<UploadStatus.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UploadStatus.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
-
mergeFrom
public UploadStatus.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<UploadStatus.Builder>- Throws:
IOException
-
getStateValue
public int getStateValue().biopb.tensor.UploadStatus.State state = 1;- Specified by:
getStateValuein interfaceUploadStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
.biopb.tensor.UploadStatus.State state = 1;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
.biopb.tensor.UploadStatus.State state = 1;- Specified by:
getStatein interfaceUploadStatusOrBuilder- Returns:
- The state.
-
setState
.biopb.tensor.UploadStatus.State state = 1;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
.biopb.tensor.UploadStatus.State state = 1;- Returns:
- This builder for chaining.
-
getExpectedChunks
public long getExpectedChunks()The chunk grid declared at create time.
int64 expected_chunks = 2;- Specified by:
getExpectedChunksin interfaceUploadStatusOrBuilder- Returns:
- The expectedChunks.
-
setExpectedChunks
The chunk grid declared at create time.
int64 expected_chunks = 2;- Parameters:
value- The expectedChunks to set.- Returns:
- This builder for chaining.
-
clearExpectedChunks
The chunk grid declared at create time.
int64 expected_chunks = 2;- Returns:
- This builder for chaining.
-
getUploadedChunks
public long getUploadedChunks()Distinct chunks that have landed; frozen at the count reached once DISCARDED. Never a completeness test: a `cache:` source takes arbitrary bounds, and a set with zero-filled regions is complete with fewer chunks than the grid has cells. READY is the completeness signal.
int64 uploaded_chunks = 3;- Specified by:
getUploadedChunksin interfaceUploadStatusOrBuilder- Returns:
- The uploadedChunks.
-
setUploadedChunks
Distinct chunks that have landed; frozen at the count reached once DISCARDED. Never a completeness test: a `cache:` source takes arbitrary bounds, and a set with zero-filled regions is complete with fewer chunks than the grid has cells. READY is the completeness signal.
int64 uploaded_chunks = 3;- Parameters:
value- The uploadedChunks to set.- Returns:
- This builder for chaining.
-
clearUploadedChunks
Distinct chunks that have landed; frozen at the count reached once DISCARDED. Never a completeness test: a `cache:` source takes arbitrary bounds, and a set with zero-filled regions is complete with fewer chunks than the grid has cells. READY is the completeness signal.
int64 uploaded_chunks = 3;- Returns:
- This builder for chaining.
-
getReason
Why the upload was discarded; empty otherwise. Consumer-facing -- it is a message to whoever was waiting on the result, not a log line, so a producer should not put a raw traceback in it.
string reason = 4;- Specified by:
getReasonin interfaceUploadStatusOrBuilder- Returns:
- The reason.
-
getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()Why the upload was discarded; empty otherwise. Consumer-facing -- it is a message to whoever was waiting on the result, not a log line, so a producer should not put a raw traceback in it.
string reason = 4;- Specified by:
getReasonBytesin interfaceUploadStatusOrBuilder- Returns:
- The bytes for reason.
-
setReason
Why the upload was discarded; empty otherwise. Consumer-facing -- it is a message to whoever was waiting on the result, not a log line, so a producer should not put a raw traceback in it.
string reason = 4;- Parameters:
value- The reason to set.- Returns:
- This builder for chaining.
-
clearReason
Why the upload was discarded; empty otherwise. Consumer-facing -- it is a message to whoever was waiting on the result, not a log line, so a producer should not put a raw traceback in it.
string reason = 4;- Returns:
- This builder for chaining.
-
setReasonBytes
Why the upload was discarded; empty otherwise. Consumer-facing -- it is a message to whoever was waiting on the result, not a log line, so a producer should not put a raw traceback in it.
string reason = 4;- Parameters:
value- The bytes for reason to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final UploadStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
-
mergeUnknownFields
public final UploadStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
-