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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Body 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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.ByteString
    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>`.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Parser<SetUploadStatus>
     
    Why, for DISCARDED only.
    com.google.protobuf.ByteString
    Why, for DISCARDED only.
    int
     
    Where to move it: READY (publish -- seal writes, open reads) or DISCARDED (give up, and release whatever the server minted for it).
    int
    Where to move it: READY (publish -- seal writes, open reads) or DISCARDED (give up, and release whatever the server minted for it).
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<SetUploadStatus>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static SetUploadStatus parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SetUploadStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SetUploadStatus parseDelimitedFrom(InputStream input) throws IOException
      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

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

      public static SetUploadStatus.Builder newBuilder()
    • newBuilder

      public static SetUploadStatus.Builder newBuilder(SetUploadStatus prototype)
    • toBuilder

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

      protected SetUploadStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static SetUploadStatus getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SetUploadStatus> parser()
    • getParserForType

      public com.google.protobuf.Parser<SetUploadStatus> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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