Package biopb.tensor

Class DataSourceDescriptor.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
biopb.tensor.DataSourceDescriptor.Builder
All Implemented Interfaces:
DataSourceDescriptorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataSourceDescriptor

public static final class DataSourceDescriptor.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder> 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
  • 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<DataSourceDescriptor.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<DataSourceDescriptor.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<DataSourceDescriptor.Builder>
    • getDefaultInstanceForType

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

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

      public DataSourceDescriptor buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<DataSourceDescriptor.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
    • mergeFrom

      public DataSourceDescriptor.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<DataSourceDescriptor.Builder>
      Throws:
      IOException
    • 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.
    • setSourceId

      public DataSourceDescriptor.Builder setSourceId(String value)
       Unique identifier for the data source (flight identifier)
       
      string source_id = 1;
      Parameters:
      value - The sourceId to set.
      Returns:
      This builder for chaining.
    • clearSourceId

      public DataSourceDescriptor.Builder clearSourceId()
       Unique identifier for the data source (flight identifier)
       
      string source_id = 1;
      Returns:
      This builder for chaining.
    • setSourceIdBytes

      public DataSourceDescriptor.Builder setSourceIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for the data source (flight identifier)
       
      string source_id = 1;
      Parameters:
      value - The bytes for sourceId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSourceUrl

      public DataSourceDescriptor.Builder setSourceUrl(String value)
       File path, directory, or remote URL
       
      string source_url = 2;
      Parameters:
      value - The sourceUrl to set.
      Returns:
      This builder for chaining.
    • clearSourceUrl

      public DataSourceDescriptor.Builder clearSourceUrl()
       File path, directory, or remote URL
       
      string source_url = 2;
      Returns:
      This builder for chaining.
    • setSourceUrlBytes

      public DataSourceDescriptor.Builder setSourceUrlBytes(com.google.protobuf.ByteString value)
       File path, directory, or remote URL
       
      string source_url = 2;
      Parameters:
      value - The bytes for sourceUrl to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSourceType

      public DataSourceDescriptor.Builder setSourceType(String value)
       Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.
       
      string source_type = 3;
      Parameters:
      value - The sourceType to set.
      Returns:
      This builder for chaining.
    • clearSourceType

      public DataSourceDescriptor.Builder clearSourceType()
       Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.
       
      string source_type = 3;
      Returns:
      This builder for chaining.
    • setSourceTypeBytes

      public DataSourceDescriptor.Builder setSourceTypeBytes(com.google.protobuf.ByteString value)
       Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.
       
      string source_type = 3;
      Parameters:
      value - The bytes for sourceType to set.
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setTensors

      public DataSourceDescriptor.Builder setTensors(int index, TensorDescriptor value)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • setTensors

      public DataSourceDescriptor.Builder setTensors(int index, TensorDescriptor.Builder builderForValue)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • addTensors

       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • addTensors

      public DataSourceDescriptor.Builder addTensors(int index, TensorDescriptor value)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • addTensors

      public DataSourceDescriptor.Builder addTensors(TensorDescriptor.Builder builderForValue)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • addTensors

      public DataSourceDescriptor.Builder addTensors(int index, TensorDescriptor.Builder builderForValue)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • addAllTensors

      public DataSourceDescriptor.Builder addAllTensors(Iterable<? extends TensorDescriptor> values)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • clearTensors

      public DataSourceDescriptor.Builder clearTensors()
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • removeTensors

      public DataSourceDescriptor.Builder removeTensors(int index)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • getTensorsBuilder

      public TensorDescriptor.Builder getTensorsBuilder(int index)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • 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
    • 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
    • addTensorsBuilder

      public TensorDescriptor.Builder addTensorsBuilder()
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • addTensorsBuilder

      public TensorDescriptor.Builder addTensorsBuilder(int index)
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • getTensorsBuilderList

      public List<TensorDescriptor.Builder> getTensorsBuilderList()
       All tensor descriptors in this source
       metadata_json field not populated here (source-level metadata only)
       
      repeated .biopb.tensor.TensorDescriptor tensors = 4;
    • 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.
    • setMetadataJson

      public DataSourceDescriptor.Builder setMetadataJson(String value)
       Source-level OME/vendor metadata (JSON format)
       
      string metadata_json = 5;
      Parameters:
      value - The metadataJson to set.
      Returns:
      This builder for chaining.
    • clearMetadataJson

      public DataSourceDescriptor.Builder clearMetadataJson()
       Source-level OME/vendor metadata (JSON format)
       
      string metadata_json = 5;
      Returns:
      This builder for chaining.
    • setMetadataJsonBytes

      public DataSourceDescriptor.Builder setMetadataJsonBytes(com.google.protobuf.ByteString value)
       Source-level OME/vendor metadata (JSON format)
       
      string metadata_json = 5;
      Parameters:
      value - The bytes for metadataJson to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDataResident

      public DataSourceDescriptor.Builder setDataResident(boolean value)
       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;
      Parameters:
      value - The dataResident to set.
      Returns:
      This builder for chaining.
    • clearDataResident

      public DataSourceDescriptor.Builder clearDataResident()
       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;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final DataSourceDescriptor.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<DataSourceDescriptor.Builder>
    • mergeUnknownFields

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