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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
    • clear

      public UploadStatus.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
    • getDefaultInstanceForType

      public UploadStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UploadStatus build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UploadStatus buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public UploadStatus.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
    • setField

      public UploadStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
    • clearField

      public UploadStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
    • clearOneof

      public UploadStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
    • setRepeatedField

      public UploadStatus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
    • addRepeatedField

      public UploadStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
    • mergeFrom

      public UploadStatus.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UploadStatus.Builder>
    • mergeFrom

      public UploadStatus.Builder mergeFrom(UploadStatus other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UploadStatus.Builder>
      Throws:
      IOException
    • getStateValue

      public int getStateValue()
      .biopb.tensor.UploadStatus.State state = 1;
      Specified by:
      getStateValue in interface UploadStatusOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public UploadStatus.Builder setStateValue(int value)
      .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

      public UploadStatus.State getState()
      .biopb.tensor.UploadStatus.State state = 1;
      Specified by:
      getState in interface UploadStatusOrBuilder
      Returns:
      The state.
    • setState

      public UploadStatus.Builder setState(UploadStatus.State value)
      .biopb.tensor.UploadStatus.State state = 1;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public UploadStatus.Builder 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:
      getExpectedChunks in interface UploadStatusOrBuilder
      Returns:
      The expectedChunks.
    • setExpectedChunks

      public UploadStatus.Builder setExpectedChunks(long value)
       The chunk grid declared at create time.
       
      int64 expected_chunks = 2;
      Parameters:
      value - The expectedChunks to set.
      Returns:
      This builder for chaining.
    • clearExpectedChunks

      public UploadStatus.Builder 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:
      getUploadedChunks in interface UploadStatusOrBuilder
      Returns:
      The uploadedChunks.
    • setUploadedChunks

      public UploadStatus.Builder setUploadedChunks(long value)
       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

      public UploadStatus.Builder 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

      public String 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:
      getReason in interface UploadStatusOrBuilder
      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:
      getReasonBytes in interface UploadStatusOrBuilder
      Returns:
      The bytes for reason.
    • setReason

      public UploadStatus.Builder setReason(String value)
       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

      public UploadStatus.Builder 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

      public UploadStatus.Builder setReasonBytes(com.google.protobuf.ByteString value)
       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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>
    • mergeUnknownFields

      public final UploadStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UploadStatus.Builder>