Package biopb.tensor

Class DataSourceDescriptor

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
biopb.tensor.DataSourceDescriptor
All Implemented Interfaces:
DataSourceDescriptorOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class DataSourceDescriptor extends com.google.protobuf.GeneratedMessageV3 implements DataSourceDescriptorOrBuilder
 Describes a data source containing one or more tensors.
 Used in ListFlights response to provide full tensor metadata upfront.
 Enables multifield support where tensors within a source have different shapes.
 
Protobuf type biopb.tensor.DataSourceDescriptor
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Describes a data source containing one or more tensors.

    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
     
    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
     
    boolean
    Advisory, point-in-time hint: this source's content is local and cheap to read right now.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Source-level OME/vendor metadata (JSON format)
    com.google.protobuf.ByteString
    Source-level OME/vendor metadata (JSON format)
    com.google.protobuf.Parser<DataSourceDescriptor>
     
    int
     
    Unique identifier for the data source (flight identifier)
    com.google.protobuf.ByteString
    Unique identifier for the data source (flight identifier)
    Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.
    com.google.protobuf.ByteString
    Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.
    File path, directory, or remote URL
    com.google.protobuf.ByteString
    File path, directory, or remote URL
    getTensors(int index)
    All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
    int
    All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
    All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
    All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
    All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
    boolean
    Advisory, point-in-time hint: this source's content is local and cheap to read right now.
    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<DataSourceDescriptor>
     
     
    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

    • SOURCE_ID_FIELD_NUMBER

      public static final int SOURCE_ID_FIELD_NUMBER
      See Also:
    • SOURCE_URL_FIELD_NUMBER

      public static final int SOURCE_URL_FIELD_NUMBER
      See Also:
    • SOURCE_TYPE_FIELD_NUMBER

      public static final int SOURCE_TYPE_FIELD_NUMBER
      See Also:
    • TENSORS_FIELD_NUMBER

      public static final int TENSORS_FIELD_NUMBER
      See Also:
    • METADATA_JSON_FIELD_NUMBER

      public static final int METADATA_JSON_FIELD_NUMBER
      See Also:
    • DATA_RESIDENT_FIELD_NUMBER

      public static final int DATA_RESIDENT_FIELD_NUMBER
      See Also:
  • 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
    • getSourceId

      public String getSourceId()
       Unique identifier for the data source (flight identifier)
       
      string source_id = 1;
      Specified by:
      getSourceId in interface DataSourceDescriptorOrBuilder
      Returns:
      The sourceId.
    • getSourceIdBytes

      public com.google.protobuf.ByteString getSourceIdBytes()
       Unique identifier for the data source (flight identifier)
       
      string source_id = 1;
      Specified by:
      getSourceIdBytes in interface DataSourceDescriptorOrBuilder
      Returns:
      The bytes for sourceId.
    • getSourceUrl

      public String getSourceUrl()
       File path, directory, or remote URL
       
      string source_url = 2;
      Specified by:
      getSourceUrl in interface DataSourceDescriptorOrBuilder
      Returns:
      The sourceUrl.
    • getSourceUrlBytes

      public com.google.protobuf.ByteString getSourceUrlBytes()
       File path, directory, or remote URL
       
      string source_url = 2;
      Specified by:
      getSourceUrlBytes in interface DataSourceDescriptorOrBuilder
      Returns:
      The bytes for sourceUrl.
    • getSourceType

      public String getSourceType()
       Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.
       
      string source_type = 3;
      Specified by:
      getSourceType in interface DataSourceDescriptorOrBuilder
      Returns:
      The sourceType.
    • getSourceTypeBytes

      public com.google.protobuf.ByteString getSourceTypeBytes()
       Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.
       
      string source_type = 3;
      Specified by:
      getSourceTypeBytes in interface DataSourceDescriptorOrBuilder
      Returns:
      The bytes for sourceType.
    • getTensorsList

      public List<TensorDescriptor> getTensorsList()
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
      Specified by:
      getTensorsList in interface DataSourceDescriptorOrBuilder
    • getTensorsOrBuilderList

      public List<? extends TensorDescriptorOrBuilder> getTensorsOrBuilderList()
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
      Specified by:
      getTensorsOrBuilderList in interface DataSourceDescriptorOrBuilder
    • getTensorsCount

      public int getTensorsCount()
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
      Specified by:
      getTensorsCount in interface DataSourceDescriptorOrBuilder
    • getTensors

      public TensorDescriptor getTensors(int index)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
      Specified by:
      getTensors in interface DataSourceDescriptorOrBuilder
    • getTensorsOrBuilder

      public TensorDescriptorOrBuilder getTensorsOrBuilder(int index)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
      Specified by:
      getTensorsOrBuilder in interface DataSourceDescriptorOrBuilder
    • getMetadataJson

      public String getMetadataJson()
       Source-level OME/vendor metadata (JSON format)
       
      string metadata_json = 5;
      Specified by:
      getMetadataJson in interface DataSourceDescriptorOrBuilder
      Returns:
      The metadataJson.
    • getMetadataJsonBytes

      public com.google.protobuf.ByteString getMetadataJsonBytes()
       Source-level OME/vendor metadata (JSON format)
       
      string metadata_json = 5;
      Specified by:
      getMetadataJsonBytes in interface DataSourceDescriptorOrBuilder
      Returns:
      The bytes for metadataJson.
    • hasDataResident

      public boolean hasDataResident()
       Advisory, point-in-time hint: this source's content is local and cheap to
       read right now. VOLATILE -- a synced-folder source can re-dehydrate under
       storage pressure, so the authoritative residency gate is a fresh stat
       (adapter.is_resident()), not this stored value. `optional` so absence is
       distinguishable from false: servers predating this field leave it unset
       (residency unknown); a resident local source sets it true, a remote
       (fsspec) source false until its pixels are materialized locally.
       
      optional bool data_resident = 6;
      Specified by:
      hasDataResident in interface DataSourceDescriptorOrBuilder
      Returns:
      Whether the dataResident field is set.
    • getDataResident

      public boolean getDataResident()
       Advisory, point-in-time hint: this source's content is local and cheap to
       read right now. VOLATILE -- a synced-folder source can re-dehydrate under
       storage pressure, so the authoritative residency gate is a fresh stat
       (adapter.is_resident()), not this stored value. `optional` so absence is
       distinguishable from false: servers predating this field leave it unset
       (residency unknown); a resident local source sets it true, a remote
       (fsspec) source false until its pixels are materialized locally.
       
      optional bool data_resident = 6;
      Specified by:
      getDataResident in interface DataSourceDescriptorOrBuilder
      Returns:
      The dataResident.
    • 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 DataSourceDescriptor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSourceDescriptor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSourceDescriptor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSourceDescriptor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSourceDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSourceDescriptor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static DataSourceDescriptor parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static DataSourceDescriptor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataSourceDescriptor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static DataSourceDescriptor.Builder newBuilder()
    • newBuilder

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

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

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

      public static DataSourceDescriptor getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<DataSourceDescriptor> 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 DataSourceDescriptor getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder