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 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<SetUploadStatus.Builder>
    • clear

      public SetUploadStatus.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<SetUploadStatus.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<SetUploadStatus.Builder>
    • getDefaultInstanceForType

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

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

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

      public SetUploadStatus.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<SetUploadStatus.Builder>
    • setField

      public SetUploadStatus.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<SetUploadStatus.Builder>
    • clearField

      public SetUploadStatus.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<SetUploadStatus.Builder>
    • clearOneof

      public SetUploadStatus.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<SetUploadStatus.Builder>
    • setRepeatedField

      public SetUploadStatus.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<SetUploadStatus.Builder>
    • addRepeatedField

      public SetUploadStatus.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<SetUploadStatus.Builder>
    • mergeFrom

      public SetUploadStatus.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<SetUploadStatus.Builder>
    • mergeFrom

      public SetUploadStatus.Builder mergeFrom(SetUploadStatus other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<SetUploadStatus.Builder>
      Throws:
      IOException
    • getArrayId

      public String 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:
      getArrayId in interface SetUploadStatusOrBuilder
      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:
      getArrayIdBytes in interface SetUploadStatusOrBuilder
      Returns:
      The bytes for arrayId.
    • setArrayId

      public SetUploadStatus.Builder 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>`. 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

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

      public SetUploadStatus.Builder 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>`. 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:
      getStateValue in interface SetUploadStatusOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public SetUploadStatus.Builder 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). 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

      public UploadStatus.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:
      getState in interface SetUploadStatusOrBuilder
      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

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

      public String getReason()
       Why, for DISCARDED only. Consumer-facing: it is what a poller waiting on
       this result reads back.
       
      string reason = 3;
      Specified by:
      getReason in interface SetUploadStatusOrBuilder
      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:
      getReasonBytes in interface SetUploadStatusOrBuilder
      Returns:
      The bytes for reason.
    • setReason

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

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

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

      public final SetUploadStatus.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<SetUploadStatus.Builder>