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 Summary
Modifier and TypeMethodDescriptionaddAllTensors(Iterable<? extends TensorDescriptor> values) All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTensors(int index, TensorDescriptor value) All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)addTensors(int index, TensorDescriptor.Builder builderForValue) All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)addTensors(TensorDescriptor value) All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)addTensors(TensorDescriptor.Builder builderForValue) 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)addTensorsBuilder(int index) All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)build()clear()Advisory, point-in-time hint: this source's content is local and cheap to read right now.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Source-level OME/vendor metadata (JSON format)clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Unique identifier for the data source (flight identifier)Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.File path, directory, or remote URLAll tensor descriptors in this source metadata_json field not populated here (source-level metadata only)clone()booleanAdvisory, point-in-time hint: this source's content is local and cheap to read right now.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSource-level OME/vendor metadata (JSON format)com.google.protobuf.ByteStringSource-level OME/vendor metadata (JSON format)Unique identifier for the data source (flight identifier)com.google.protobuf.ByteStringUnique identifier for the data source (flight identifier)Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.com.google.protobuf.ByteStringSource type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.File path, directory, or remote URLcom.google.protobuf.ByteStringFile path, directory, or remote URLgetTensors(int index) All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)getTensorsBuilder(int index) 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)intAll 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)getTensorsOrBuilder(int index) All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)List<? extends TensorDescriptorOrBuilder>All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)booleanAdvisory, point-in-time hint: this source's content is local and cheap to read right now.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(DataSourceDescriptor other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeTensors(int index) All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)setDataResident(boolean value) Advisory, point-in-time hint: this source's content is local and cheap to read right now.setMetadataJson(String value) Source-level OME/vendor metadata (JSON format)setMetadataJsonBytes(com.google.protobuf.ByteString value) Source-level OME/vendor metadata (JSON format)setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSourceId(String value) Unique identifier for the data source (flight identifier)setSourceIdBytes(com.google.protobuf.ByteString value) Unique identifier for the data source (flight identifier)setSourceType(String value) Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.setSourceTypeBytes(com.google.protobuf.ByteString value) Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.setSourceUrl(String value) File path, directory, or remote URLsetSourceUrlBytes(com.google.protobuf.ByteString value) File path, directory, or remote URLsetTensors(int index, TensorDescriptor value) All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)setTensors(int index, TensorDescriptor.Builder builderForValue) All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-
setField
public DataSourceDescriptor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-
clearField
public DataSourceDescriptor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-
clearOneof
public DataSourceDescriptor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-
setRepeatedField
public DataSourceDescriptor.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-
addRepeatedField
public DataSourceDescriptor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataSourceDescriptor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataSourceDescriptor.Builder>- Throws:
IOException
-
getSourceId
Unique identifier for the data source (flight identifier)
string source_id = 1;- Specified by:
getSourceIdin interfaceDataSourceDescriptorOrBuilder- Returns:
- The sourceId.
-
getSourceIdBytes
public com.google.protobuf.ByteString getSourceIdBytes()Unique identifier for the data source (flight identifier)
string source_id = 1;- Specified by:
getSourceIdBytesin interfaceDataSourceDescriptorOrBuilder- Returns:
- The bytes for sourceId.
-
setSourceId
Unique identifier for the data source (flight identifier)
string source_id = 1;- Parameters:
value- The sourceId to set.- Returns:
- This builder for chaining.
-
clearSourceId
Unique identifier for the data source (flight identifier)
string source_id = 1;- Returns:
- This builder for chaining.
-
setSourceIdBytes
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
File path, directory, or remote URL
string source_url = 2;- Specified by:
getSourceUrlin interfaceDataSourceDescriptorOrBuilder- Returns:
- The sourceUrl.
-
getSourceUrlBytes
public com.google.protobuf.ByteString getSourceUrlBytes()File path, directory, or remote URL
string source_url = 2;- Specified by:
getSourceUrlBytesin interfaceDataSourceDescriptorOrBuilder- Returns:
- The bytes for sourceUrl.
-
setSourceUrl
File path, directory, or remote URL
string source_url = 2;- Parameters:
value- The sourceUrl to set.- Returns:
- This builder for chaining.
-
clearSourceUrl
File path, directory, or remote URL
string source_url = 2;- Returns:
- This builder for chaining.
-
setSourceUrlBytes
File path, directory, or remote URL
string source_url = 2;- Parameters:
value- The bytes for sourceUrl to set.- Returns:
- This builder for chaining.
-
getSourceType
Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.
string source_type = 3;- Specified by:
getSourceTypein interfaceDataSourceDescriptorOrBuilder- 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:
getSourceTypeBytesin interfaceDataSourceDescriptorOrBuilder- Returns:
- The bytes for sourceType.
-
setSourceType
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
Source type: "aics", "micromanager", "ome-zarr", "zarr", "hdf5", etc.
string source_type = 3;- Returns:
- This builder for chaining.
-
setSourceTypeBytes
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
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4;- Specified by:
getTensorsListin interfaceDataSourceDescriptorOrBuilder
-
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:
getTensorsCountin interfaceDataSourceDescriptorOrBuilder
-
getTensors
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4;- Specified by:
getTensorsin interfaceDataSourceDescriptorOrBuilder
-
setTensors
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4; -
setTensors
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
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
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4; -
addAllTensors
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4; -
clearTensors
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4; -
removeTensors
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4; -
getTensorsBuilder
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4; -
getTensorsOrBuilder
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4;- Specified by:
getTensorsOrBuilderin interfaceDataSourceDescriptorOrBuilder
-
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:
getTensorsOrBuilderListin interfaceDataSourceDescriptorOrBuilder
-
addTensorsBuilder
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4; -
addTensorsBuilder
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4; -
getTensorsBuilderList
All tensor descriptors in this source metadata_json field not populated here (source-level metadata only)
repeated .biopb.tensor.TensorDescriptor tensors = 4; -
getMetadataJson
Source-level OME/vendor metadata (JSON format)
string metadata_json = 5;- Specified by:
getMetadataJsonin interfaceDataSourceDescriptorOrBuilder- Returns:
- The metadataJson.
-
getMetadataJsonBytes
public com.google.protobuf.ByteString getMetadataJsonBytes()Source-level OME/vendor metadata (JSON format)
string metadata_json = 5;- Specified by:
getMetadataJsonBytesin interfaceDataSourceDescriptorOrBuilder- Returns:
- The bytes for metadataJson.
-
setMetadataJson
Source-level OME/vendor metadata (JSON format)
string metadata_json = 5;- Parameters:
value- The metadataJson to set.- Returns:
- This builder for chaining.
-
clearMetadataJson
Source-level OME/vendor metadata (JSON format)
string metadata_json = 5;- Returns:
- This builder for chaining.
-
setMetadataJsonBytes
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:
hasDataResidentin interfaceDataSourceDescriptorOrBuilder- 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:
getDataResidentin interfaceDataSourceDescriptorOrBuilder- Returns:
- The dataResident.
-
setDataResident
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-
mergeUnknownFields
public final DataSourceDescriptor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSourceDescriptor.Builder>
-