Package biopb.tensor

Class TensorDescriptor.Builder

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

public static final class TensorDescriptor.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TensorDescriptor.Builder> implements TensorDescriptorOrBuilder
 Encoded into FlightDescriptor.cmd bytes (identifies the tensor)
 
Protobuf type biopb.tensor.TensorDescriptor
  • 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<TensorDescriptor.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public TensorDescriptor.Builder mergeFrom(TensorDescriptor other)
    • isInitialized

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

      public TensorDescriptor.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<TensorDescriptor.Builder>
      Throws:
      IOException
    • getArrayId

      public String getArrayId()
       Globally-unique tensor identifier and primary key (see the tensor identity
       policy above). Constructed as source_id (single-tensor) or source_id/field
       (multi-tensor). Same value as TensorReadOption.tensor_id.
       
      string array_id = 1;
      Specified by:
      getArrayId in interface TensorDescriptorOrBuilder
      Returns:
      The arrayId.
    • getArrayIdBytes

      public com.google.protobuf.ByteString getArrayIdBytes()
       Globally-unique tensor identifier and primary key (see the tensor identity
       policy above). Constructed as source_id (single-tensor) or source_id/field
       (multi-tensor). Same value as TensorReadOption.tensor_id.
       
      string array_id = 1;
      Specified by:
      getArrayIdBytes in interface TensorDescriptorOrBuilder
      Returns:
      The bytes for arrayId.
    • setArrayId

      public TensorDescriptor.Builder setArrayId(String value)
       Globally-unique tensor identifier and primary key (see the tensor identity
       policy above). Constructed as source_id (single-tensor) or source_id/field
       (multi-tensor). Same value as TensorReadOption.tensor_id.
       
      string array_id = 1;
      Parameters:
      value - The arrayId to set.
      Returns:
      This builder for chaining.
    • clearArrayId

      public TensorDescriptor.Builder clearArrayId()
       Globally-unique tensor identifier and primary key (see the tensor identity
       policy above). Constructed as source_id (single-tensor) or source_id/field
       (multi-tensor). Same value as TensorReadOption.tensor_id.
       
      string array_id = 1;
      Returns:
      This builder for chaining.
    • setArrayIdBytes

      public TensorDescriptor.Builder setArrayIdBytes(com.google.protobuf.ByteString value)
       Globally-unique tensor identifier and primary key (see the tensor identity
       policy above). Constructed as source_id (single-tensor) or source_id/field
       (multi-tensor). Same value as TensorReadOption.tensor_id.
       
      string array_id = 1;
      Parameters:
      value - The bytes for arrayId to set.
      Returns:
      This builder for chaining.
    • getDimLabelsList

      public com.google.protobuf.ProtocolStringList getDimLabelsList()
       Maps dimension index to semantic label (e.g., ["z", "y", "x"])
       
      repeated string dim_labels = 2;
      Specified by:
      getDimLabelsList in interface TensorDescriptorOrBuilder
      Returns:
      A list containing the dimLabels.
    • getDimLabelsCount

      public int getDimLabelsCount()
       Maps dimension index to semantic label (e.g., ["z", "y", "x"])
       
      repeated string dim_labels = 2;
      Specified by:
      getDimLabelsCount in interface TensorDescriptorOrBuilder
      Returns:
      The count of dimLabels.
    • getDimLabels

      public String getDimLabels(int index)
       Maps dimension index to semantic label (e.g., ["z", "y", "x"])
       
      repeated string dim_labels = 2;
      Specified by:
      getDimLabels in interface TensorDescriptorOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dimLabels at the given index.
    • getDimLabelsBytes

      public com.google.protobuf.ByteString getDimLabelsBytes(int index)
       Maps dimension index to semantic label (e.g., ["z", "y", "x"])
       
      repeated string dim_labels = 2;
      Specified by:
      getDimLabelsBytes in interface TensorDescriptorOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dimLabels at the given index.
    • setDimLabels

      public TensorDescriptor.Builder setDimLabels(int index, String value)
       Maps dimension index to semantic label (e.g., ["z", "y", "x"])
       
      repeated string dim_labels = 2;
      Parameters:
      index - The index to set the value at.
      value - The dimLabels to set.
      Returns:
      This builder for chaining.
    • addDimLabels

      public TensorDescriptor.Builder addDimLabels(String value)
       Maps dimension index to semantic label (e.g., ["z", "y", "x"])
       
      repeated string dim_labels = 2;
      Parameters:
      value - The dimLabels to add.
      Returns:
      This builder for chaining.
    • addAllDimLabels

      public TensorDescriptor.Builder addAllDimLabels(Iterable<String> values)
       Maps dimension index to semantic label (e.g., ["z", "y", "x"])
       
      repeated string dim_labels = 2;
      Parameters:
      values - The dimLabels to add.
      Returns:
      This builder for chaining.
    • clearDimLabels

      public TensorDescriptor.Builder clearDimLabels()
       Maps dimension index to semantic label (e.g., ["z", "y", "x"])
       
      repeated string dim_labels = 2;
      Returns:
      This builder for chaining.
    • addDimLabelsBytes

      public TensorDescriptor.Builder addDimLabelsBytes(com.google.protobuf.ByteString value)
       Maps dimension index to semantic label (e.g., ["z", "y", "x"])
       
      repeated string dim_labels = 2;
      Parameters:
      value - The bytes of the dimLabels to add.
      Returns:
      This builder for chaining.
    • getShapeList

      public List<Long> getShapeList()
       Full array shape (per dimension)
       
      repeated int64 shape = 3;
      Specified by:
      getShapeList in interface TensorDescriptorOrBuilder
      Returns:
      A list containing the shape.
    • getShapeCount

      public int getShapeCount()
       Full array shape (per dimension)
       
      repeated int64 shape = 3;
      Specified by:
      getShapeCount in interface TensorDescriptorOrBuilder
      Returns:
      The count of shape.
    • getShape

      public long getShape(int index)
       Full array shape (per dimension)
       
      repeated int64 shape = 3;
      Specified by:
      getShape in interface TensorDescriptorOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The shape at the given index.
    • setShape

      public TensorDescriptor.Builder setShape(int index, long value)
       Full array shape (per dimension)
       
      repeated int64 shape = 3;
      Parameters:
      index - The index to set the value at.
      value - The shape to set.
      Returns:
      This builder for chaining.
    • addShape

      public TensorDescriptor.Builder addShape(long value)
       Full array shape (per dimension)
       
      repeated int64 shape = 3;
      Parameters:
      value - The shape to add.
      Returns:
      This builder for chaining.
    • addAllShape

      public TensorDescriptor.Builder addAllShape(Iterable<? extends Long> values)
       Full array shape (per dimension)
       
      repeated int64 shape = 3;
      Parameters:
      values - The shape to add.
      Returns:
      This builder for chaining.
    • clearShape

      public TensorDescriptor.Builder clearShape()
       Full array shape (per dimension)
       
      repeated int64 shape = 3;
      Returns:
      This builder for chaining.
    • getChunkShapeList

      public List<Long> getChunkShapeList()
       Nominal chunk size per dimension (actual may vary for edge chunks)
       
      repeated int64 chunk_shape = 4;
      Specified by:
      getChunkShapeList in interface TensorDescriptorOrBuilder
      Returns:
      A list containing the chunkShape.
    • getChunkShapeCount

      public int getChunkShapeCount()
       Nominal chunk size per dimension (actual may vary for edge chunks)
       
      repeated int64 chunk_shape = 4;
      Specified by:
      getChunkShapeCount in interface TensorDescriptorOrBuilder
      Returns:
      The count of chunkShape.
    • getChunkShape

      public long getChunkShape(int index)
       Nominal chunk size per dimension (actual may vary for edge chunks)
       
      repeated int64 chunk_shape = 4;
      Specified by:
      getChunkShape in interface TensorDescriptorOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The chunkShape at the given index.
    • setChunkShape

      public TensorDescriptor.Builder setChunkShape(int index, long value)
       Nominal chunk size per dimension (actual may vary for edge chunks)
       
      repeated int64 chunk_shape = 4;
      Parameters:
      index - The index to set the value at.
      value - The chunkShape to set.
      Returns:
      This builder for chaining.
    • addChunkShape

      public TensorDescriptor.Builder addChunkShape(long value)
       Nominal chunk size per dimension (actual may vary for edge chunks)
       
      repeated int64 chunk_shape = 4;
      Parameters:
      value - The chunkShape to add.
      Returns:
      This builder for chaining.
    • addAllChunkShape

      public TensorDescriptor.Builder addAllChunkShape(Iterable<? extends Long> values)
       Nominal chunk size per dimension (actual may vary for edge chunks)
       
      repeated int64 chunk_shape = 4;
      Parameters:
      values - The chunkShape to add.
      Returns:
      This builder for chaining.
    • clearChunkShape

      public TensorDescriptor.Builder clearChunkShape()
       Nominal chunk size per dimension (actual may vary for edge chunks)
       
      repeated int64 chunk_shape = 4;
      Returns:
      This builder for chaining.
    • getDtype

      public String getDtype()
       Element dtype (numpy-style, e.g., "uint8", "float32", "float64")
       
      string dtype = 5;
      Specified by:
      getDtype in interface TensorDescriptorOrBuilder
      Returns:
      The dtype.
    • getDtypeBytes

      public com.google.protobuf.ByteString getDtypeBytes()
       Element dtype (numpy-style, e.g., "uint8", "float32", "float64")
       
      string dtype = 5;
      Specified by:
      getDtypeBytes in interface TensorDescriptorOrBuilder
      Returns:
      The bytes for dtype.
    • setDtype

      public TensorDescriptor.Builder setDtype(String value)
       Element dtype (numpy-style, e.g., "uint8", "float32", "float64")
       
      string dtype = 5;
      Parameters:
      value - The dtype to set.
      Returns:
      This builder for chaining.
    • clearDtype

      public TensorDescriptor.Builder clearDtype()
       Element dtype (numpy-style, e.g., "uint8", "float32", "float64")
       
      string dtype = 5;
      Returns:
      This builder for chaining.
    • setDtypeBytes

      public TensorDescriptor.Builder setDtypeBytes(com.google.protobuf.ByteString value)
       Element dtype (numpy-style, e.g., "uint8", "float32", "float64")
       
      string dtype = 5;
      Parameters:
      value - The bytes for dtype to set.
      Returns:
      This builder for chaining.
    • hasSliceHint

      public boolean hasSliceHint()
       Optional slice hint - if provided, GetFlightInfo returns only chunks
       covering this range. Leave unset/null to return all chunks.
       
      .biopb.tensor.SliceHint slice_hint = 6;
      Specified by:
      hasSliceHint in interface TensorDescriptorOrBuilder
      Returns:
      Whether the sliceHint field is set.
    • getSliceHint

      public SliceHint getSliceHint()
       Optional slice hint - if provided, GetFlightInfo returns only chunks
       covering this range. Leave unset/null to return all chunks.
       
      .biopb.tensor.SliceHint slice_hint = 6;
      Specified by:
      getSliceHint in interface TensorDescriptorOrBuilder
      Returns:
      The sliceHint.
    • setSliceHint

      public TensorDescriptor.Builder setSliceHint(SliceHint value)
       Optional slice hint - if provided, GetFlightInfo returns only chunks
       covering this range. Leave unset/null to return all chunks.
       
      .biopb.tensor.SliceHint slice_hint = 6;
    • setSliceHint

      public TensorDescriptor.Builder setSliceHint(SliceHint.Builder builderForValue)
       Optional slice hint - if provided, GetFlightInfo returns only chunks
       covering this range. Leave unset/null to return all chunks.
       
      .biopb.tensor.SliceHint slice_hint = 6;
    • mergeSliceHint

      public TensorDescriptor.Builder mergeSliceHint(SliceHint value)
       Optional slice hint - if provided, GetFlightInfo returns only chunks
       covering this range. Leave unset/null to return all chunks.
       
      .biopb.tensor.SliceHint slice_hint = 6;
    • clearSliceHint

      public TensorDescriptor.Builder clearSliceHint()
       Optional slice hint - if provided, GetFlightInfo returns only chunks
       covering this range. Leave unset/null to return all chunks.
       
      .biopb.tensor.SliceHint slice_hint = 6;
    • getSliceHintBuilder

      public SliceHint.Builder getSliceHintBuilder()
       Optional slice hint - if provided, GetFlightInfo returns only chunks
       covering this range. Leave unset/null to return all chunks.
       
      .biopb.tensor.SliceHint slice_hint = 6;
    • getSliceHintOrBuilder

      public SliceHintOrBuilder getSliceHintOrBuilder()
       Optional slice hint - if provided, GetFlightInfo returns only chunks
       covering this range. Leave unset/null to return all chunks.
       
      .biopb.tensor.SliceHint slice_hint = 6;
      Specified by:
      getSliceHintOrBuilder in interface TensorDescriptorOrBuilder
    • getScaleHintList

      public List<Long> getScaleHintList()
       Per-dimension integer downsampling factors for virtual/scaled reads.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       These do not change tensor identity, only how a specific read request is planned.
       
      repeated int64 scale_hint = 7;
      Specified by:
      getScaleHintList in interface TensorDescriptorOrBuilder
      Returns:
      A list containing the scaleHint.
    • getScaleHintCount

      public int getScaleHintCount()
       Per-dimension integer downsampling factors for virtual/scaled reads.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       These do not change tensor identity, only how a specific read request is planned.
       
      repeated int64 scale_hint = 7;
      Specified by:
      getScaleHintCount in interface TensorDescriptorOrBuilder
      Returns:
      The count of scaleHint.
    • getScaleHint

      public long getScaleHint(int index)
       Per-dimension integer downsampling factors for virtual/scaled reads.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       These do not change tensor identity, only how a specific read request is planned.
       
      repeated int64 scale_hint = 7;
      Specified by:
      getScaleHint in interface TensorDescriptorOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The scaleHint at the given index.
    • setScaleHint

      public TensorDescriptor.Builder setScaleHint(int index, long value)
       Per-dimension integer downsampling factors for virtual/scaled reads.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       These do not change tensor identity, only how a specific read request is planned.
       
      repeated int64 scale_hint = 7;
      Parameters:
      index - The index to set the value at.
      value - The scaleHint to set.
      Returns:
      This builder for chaining.
    • addScaleHint

      public TensorDescriptor.Builder addScaleHint(long value)
       Per-dimension integer downsampling factors for virtual/scaled reads.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       These do not change tensor identity, only how a specific read request is planned.
       
      repeated int64 scale_hint = 7;
      Parameters:
      value - The scaleHint to add.
      Returns:
      This builder for chaining.
    • addAllScaleHint

      public TensorDescriptor.Builder addAllScaleHint(Iterable<? extends Long> values)
       Per-dimension integer downsampling factors for virtual/scaled reads.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       These do not change tensor identity, only how a specific read request is planned.
       
      repeated int64 scale_hint = 7;
      Parameters:
      values - The scaleHint to add.
      Returns:
      This builder for chaining.
    • clearScaleHint

      public TensorDescriptor.Builder clearScaleHint()
       Per-dimension integer downsampling factors for virtual/scaled reads.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       These do not change tensor identity, only how a specific read request is planned.
       
      repeated int64 scale_hint = 7;
      Returns:
      This builder for chaining.
    • getReductionMethod

      public String getReductionMethod()
       Dynamic reduction/downsampling method for scaled reads: "nearest", "area",
       or "precompute" (serve a native on-disk pyramid level).
       Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area",
       "precomputed" -> "precompute", "linear" (deprecated) -> "area".
       Advisory for caching: the server may serve an existing cached chunk
       computed under a different method at the same bounds/scale.
       
      string reduction_method = 8;
      Specified by:
      getReductionMethod in interface TensorDescriptorOrBuilder
      Returns:
      The reductionMethod.
    • getReductionMethodBytes

      public com.google.protobuf.ByteString getReductionMethodBytes()
       Dynamic reduction/downsampling method for scaled reads: "nearest", "area",
       or "precompute" (serve a native on-disk pyramid level).
       Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area",
       "precomputed" -> "precompute", "linear" (deprecated) -> "area".
       Advisory for caching: the server may serve an existing cached chunk
       computed under a different method at the same bounds/scale.
       
      string reduction_method = 8;
      Specified by:
      getReductionMethodBytes in interface TensorDescriptorOrBuilder
      Returns:
      The bytes for reductionMethod.
    • setReductionMethod

      public TensorDescriptor.Builder setReductionMethod(String value)
       Dynamic reduction/downsampling method for scaled reads: "nearest", "area",
       or "precompute" (serve a native on-disk pyramid level).
       Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area",
       "precomputed" -> "precompute", "linear" (deprecated) -> "area".
       Advisory for caching: the server may serve an existing cached chunk
       computed under a different method at the same bounds/scale.
       
      string reduction_method = 8;
      Parameters:
      value - The reductionMethod to set.
      Returns:
      This builder for chaining.
    • clearReductionMethod

      public TensorDescriptor.Builder clearReductionMethod()
       Dynamic reduction/downsampling method for scaled reads: "nearest", "area",
       or "precompute" (serve a native on-disk pyramid level).
       Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area",
       "precomputed" -> "precompute", "linear" (deprecated) -> "area".
       Advisory for caching: the server may serve an existing cached chunk
       computed under a different method at the same bounds/scale.
       
      string reduction_method = 8;
      Returns:
      This builder for chaining.
    • setReductionMethodBytes

      public TensorDescriptor.Builder setReductionMethodBytes(com.google.protobuf.ByteString value)
       Dynamic reduction/downsampling method for scaled reads: "nearest", "area",
       or "precompute" (serve a native on-disk pyramid level).
       Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area",
       "precomputed" -> "precompute", "linear" (deprecated) -> "area".
       Advisory for caching: the server may serve an existing cached chunk
       computed under a different method at the same bounds/scale.
       
      string reduction_method = 8;
      Parameters:
      value - The bytes for reductionMethod to set.
      Returns:
      This builder for chaining.
    • getMetadataJson

      public String getMetadataJson()
       Opaque JSON metadata compatible with OME-NGFF (.zattrs schema).
       Contains: multiscales, axes, coordinateTransformations, channels, etc.
       For precomputed pyramids: multiscales[].datasets[].path and scale info.
       Empty string if no metadata available.
       
      string metadata_json = 9;
      Specified by:
      getMetadataJson in interface TensorDescriptorOrBuilder
      Returns:
      The metadataJson.
    • getMetadataJsonBytes

      public com.google.protobuf.ByteString getMetadataJsonBytes()
       Opaque JSON metadata compatible with OME-NGFF (.zattrs schema).
       Contains: multiscales, axes, coordinateTransformations, channels, etc.
       For precomputed pyramids: multiscales[].datasets[].path and scale info.
       Empty string if no metadata available.
       
      string metadata_json = 9;
      Specified by:
      getMetadataJsonBytes in interface TensorDescriptorOrBuilder
      Returns:
      The bytes for metadataJson.
    • setMetadataJson

      public TensorDescriptor.Builder setMetadataJson(String value)
       Opaque JSON metadata compatible with OME-NGFF (.zattrs schema).
       Contains: multiscales, axes, coordinateTransformations, channels, etc.
       For precomputed pyramids: multiscales[].datasets[].path and scale info.
       Empty string if no metadata available.
       
      string metadata_json = 9;
      Parameters:
      value - The metadataJson to set.
      Returns:
      This builder for chaining.
    • clearMetadataJson

      public TensorDescriptor.Builder clearMetadataJson()
       Opaque JSON metadata compatible with OME-NGFF (.zattrs schema).
       Contains: multiscales, axes, coordinateTransformations, channels, etc.
       For precomputed pyramids: multiscales[].datasets[].path and scale info.
       Empty string if no metadata available.
       
      string metadata_json = 9;
      Returns:
      This builder for chaining.
    • setMetadataJsonBytes

      public TensorDescriptor.Builder setMetadataJsonBytes(com.google.protobuf.ByteString value)
       Opaque JSON metadata compatible with OME-NGFF (.zattrs schema).
       Contains: multiscales, axes, coordinateTransformations, channels, etc.
       For precomputed pyramids: multiscales[].datasets[].path and scale info.
       Empty string if no metadata available.
       
      string metadata_json = 9;
      Parameters:
      value - The bytes for metadataJson to set.
      Returns:
      This builder for chaining.
    • getPyramidList

      public List<PyramidLevel> getPyramidList()
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
      Specified by:
      getPyramidList in interface TensorDescriptorOrBuilder
    • getPyramidCount

      public int getPyramidCount()
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
      Specified by:
      getPyramidCount in interface TensorDescriptorOrBuilder
    • getPyramid

      public PyramidLevel getPyramid(int index)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
      Specified by:
      getPyramid in interface TensorDescriptorOrBuilder
    • setPyramid

      public TensorDescriptor.Builder setPyramid(int index, PyramidLevel value)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • setPyramid

      public TensorDescriptor.Builder setPyramid(int index, PyramidLevel.Builder builderForValue)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • addPyramid

      public TensorDescriptor.Builder addPyramid(PyramidLevel value)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • addPyramid

      public TensorDescriptor.Builder addPyramid(int index, PyramidLevel value)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • addPyramid

      public TensorDescriptor.Builder addPyramid(PyramidLevel.Builder builderForValue)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • addPyramid

      public TensorDescriptor.Builder addPyramid(int index, PyramidLevel.Builder builderForValue)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • addAllPyramid

      public TensorDescriptor.Builder addAllPyramid(Iterable<? extends PyramidLevel> values)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • clearPyramid

      public TensorDescriptor.Builder clearPyramid()
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • removePyramid

      public TensorDescriptor.Builder removePyramid(int index)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • getPyramidBuilder

      public PyramidLevel.Builder getPyramidBuilder(int index)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • getPyramidOrBuilder

      public PyramidLevelOrBuilder getPyramidOrBuilder(int index)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
      Specified by:
      getPyramidOrBuilder in interface TensorDescriptorOrBuilder
    • getPyramidOrBuilderList

      public List<? extends PyramidLevelOrBuilder> getPyramidOrBuilderList()
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
      Specified by:
      getPyramidOrBuilderList in interface TensorDescriptorOrBuilder
    • addPyramidBuilder

      public PyramidLevel.Builder addPyramidBuilder()
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • addPyramidBuilder

      public PyramidLevel.Builder addPyramidBuilder(int index)
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • getPyramidBuilderList

      public List<PyramidLevel.Builder> getPyramidBuilderList()
       Server-advertised resolution pyramid: the ordered levels the server
       recommends reading this tensor at, coarsest decision made server-side so
       native (precomputed) pyramids are honored and the precache worker and
       client request the same scales. Level 0 is full resolution
       (scale_hint all 1s). A client reads each level via the normal scale_hint
       read path. Populated only by GetFlightInfo (left empty in ListFlights,
       like metadata_json); empty also means "old server / decide client-side".
       
      repeated .biopb.tensor.PyramidLevel pyramid = 10;
    • getPhysicalScaleList

      public List<Double> getPhysicalScaleList()
       Per-dimension physical pixel size, aligned 1:1 with dim_labels/shape
       (same length and order). Element i is the physical extent of one sample
       along dimension i, in the unit given by physical_unit[i]. 0.0 means
       "unknown" for that dimension. This is the ~200-byte summary consumers need
       for display scale, so the common case avoids fetching the full OME tree.
       Populated by GetFlightInfo (left empty in ListFlights, like pyramid /
       metadata_json); empty also means "old server / no physical scale -> the
       full OME (metadata_json) remains the authoritative source".
       
      repeated double physical_scale = 11;
      Specified by:
      getPhysicalScaleList in interface TensorDescriptorOrBuilder
      Returns:
      A list containing the physicalScale.
    • getPhysicalScaleCount

      public int getPhysicalScaleCount()
       Per-dimension physical pixel size, aligned 1:1 with dim_labels/shape
       (same length and order). Element i is the physical extent of one sample
       along dimension i, in the unit given by physical_unit[i]. 0.0 means
       "unknown" for that dimension. This is the ~200-byte summary consumers need
       for display scale, so the common case avoids fetching the full OME tree.
       Populated by GetFlightInfo (left empty in ListFlights, like pyramid /
       metadata_json); empty also means "old server / no physical scale -> the
       full OME (metadata_json) remains the authoritative source".
       
      repeated double physical_scale = 11;
      Specified by:
      getPhysicalScaleCount in interface TensorDescriptorOrBuilder
      Returns:
      The count of physicalScale.
    • getPhysicalScale

      public double getPhysicalScale(int index)
       Per-dimension physical pixel size, aligned 1:1 with dim_labels/shape
       (same length and order). Element i is the physical extent of one sample
       along dimension i, in the unit given by physical_unit[i]. 0.0 means
       "unknown" for that dimension. This is the ~200-byte summary consumers need
       for display scale, so the common case avoids fetching the full OME tree.
       Populated by GetFlightInfo (left empty in ListFlights, like pyramid /
       metadata_json); empty also means "old server / no physical scale -> the
       full OME (metadata_json) remains the authoritative source".
       
      repeated double physical_scale = 11;
      Specified by:
      getPhysicalScale in interface TensorDescriptorOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The physicalScale at the given index.
    • setPhysicalScale

      public TensorDescriptor.Builder setPhysicalScale(int index, double value)
       Per-dimension physical pixel size, aligned 1:1 with dim_labels/shape
       (same length and order). Element i is the physical extent of one sample
       along dimension i, in the unit given by physical_unit[i]. 0.0 means
       "unknown" for that dimension. This is the ~200-byte summary consumers need
       for display scale, so the common case avoids fetching the full OME tree.
       Populated by GetFlightInfo (left empty in ListFlights, like pyramid /
       metadata_json); empty also means "old server / no physical scale -> the
       full OME (metadata_json) remains the authoritative source".
       
      repeated double physical_scale = 11;
      Parameters:
      index - The index to set the value at.
      value - The physicalScale to set.
      Returns:
      This builder for chaining.
    • addPhysicalScale

      public TensorDescriptor.Builder addPhysicalScale(double value)
       Per-dimension physical pixel size, aligned 1:1 with dim_labels/shape
       (same length and order). Element i is the physical extent of one sample
       along dimension i, in the unit given by physical_unit[i]. 0.0 means
       "unknown" for that dimension. This is the ~200-byte summary consumers need
       for display scale, so the common case avoids fetching the full OME tree.
       Populated by GetFlightInfo (left empty in ListFlights, like pyramid /
       metadata_json); empty also means "old server / no physical scale -> the
       full OME (metadata_json) remains the authoritative source".
       
      repeated double physical_scale = 11;
      Parameters:
      value - The physicalScale to add.
      Returns:
      This builder for chaining.
    • addAllPhysicalScale

      public TensorDescriptor.Builder addAllPhysicalScale(Iterable<? extends Double> values)
       Per-dimension physical pixel size, aligned 1:1 with dim_labels/shape
       (same length and order). Element i is the physical extent of one sample
       along dimension i, in the unit given by physical_unit[i]. 0.0 means
       "unknown" for that dimension. This is the ~200-byte summary consumers need
       for display scale, so the common case avoids fetching the full OME tree.
       Populated by GetFlightInfo (left empty in ListFlights, like pyramid /
       metadata_json); empty also means "old server / no physical scale -> the
       full OME (metadata_json) remains the authoritative source".
       
      repeated double physical_scale = 11;
      Parameters:
      values - The physicalScale to add.
      Returns:
      This builder for chaining.
    • clearPhysicalScale

      public TensorDescriptor.Builder clearPhysicalScale()
       Per-dimension physical pixel size, aligned 1:1 with dim_labels/shape
       (same length and order). Element i is the physical extent of one sample
       along dimension i, in the unit given by physical_unit[i]. 0.0 means
       "unknown" for that dimension. This is the ~200-byte summary consumers need
       for display scale, so the common case avoids fetching the full OME tree.
       Populated by GetFlightInfo (left empty in ListFlights, like pyramid /
       metadata_json); empty also means "old server / no physical scale -> the
       full OME (metadata_json) remains the authoritative source".
       
      repeated double physical_scale = 11;
      Returns:
      This builder for chaining.
    • getPhysicalUnitList

      public com.google.protobuf.ProtocolStringList getPhysicalUnitList()
       Per-dimension unit string for physical_scale (e.g. "micrometer", "µm"),
       aligned 1:1 with physical_scale. "" means unknown.
       
      repeated string physical_unit = 12;
      Specified by:
      getPhysicalUnitList in interface TensorDescriptorOrBuilder
      Returns:
      A list containing the physicalUnit.
    • getPhysicalUnitCount

      public int getPhysicalUnitCount()
       Per-dimension unit string for physical_scale (e.g. "micrometer", "µm"),
       aligned 1:1 with physical_scale. "" means unknown.
       
      repeated string physical_unit = 12;
      Specified by:
      getPhysicalUnitCount in interface TensorDescriptorOrBuilder
      Returns:
      The count of physicalUnit.
    • getPhysicalUnit

      public String getPhysicalUnit(int index)
       Per-dimension unit string for physical_scale (e.g. "micrometer", "µm"),
       aligned 1:1 with physical_scale. "" means unknown.
       
      repeated string physical_unit = 12;
      Specified by:
      getPhysicalUnit in interface TensorDescriptorOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The physicalUnit at the given index.
    • getPhysicalUnitBytes

      public com.google.protobuf.ByteString getPhysicalUnitBytes(int index)
       Per-dimension unit string for physical_scale (e.g. "micrometer", "µm"),
       aligned 1:1 with physical_scale. "" means unknown.
       
      repeated string physical_unit = 12;
      Specified by:
      getPhysicalUnitBytes in interface TensorDescriptorOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the physicalUnit at the given index.
    • setPhysicalUnit

      public TensorDescriptor.Builder setPhysicalUnit(int index, String value)
       Per-dimension unit string for physical_scale (e.g. "micrometer", "µm"),
       aligned 1:1 with physical_scale. "" means unknown.
       
      repeated string physical_unit = 12;
      Parameters:
      index - The index to set the value at.
      value - The physicalUnit to set.
      Returns:
      This builder for chaining.
    • addPhysicalUnit

      public TensorDescriptor.Builder addPhysicalUnit(String value)
       Per-dimension unit string for physical_scale (e.g. "micrometer", "µm"),
       aligned 1:1 with physical_scale. "" means unknown.
       
      repeated string physical_unit = 12;
      Parameters:
      value - The physicalUnit to add.
      Returns:
      This builder for chaining.
    • addAllPhysicalUnit

      public TensorDescriptor.Builder addAllPhysicalUnit(Iterable<String> values)
       Per-dimension unit string for physical_scale (e.g. "micrometer", "µm"),
       aligned 1:1 with physical_scale. "" means unknown.
       
      repeated string physical_unit = 12;
      Parameters:
      values - The physicalUnit to add.
      Returns:
      This builder for chaining.
    • clearPhysicalUnit

      public TensorDescriptor.Builder clearPhysicalUnit()
       Per-dimension unit string for physical_scale (e.g. "micrometer", "µm"),
       aligned 1:1 with physical_scale. "" means unknown.
       
      repeated string physical_unit = 12;
      Returns:
      This builder for chaining.
    • addPhysicalUnitBytes

      public TensorDescriptor.Builder addPhysicalUnitBytes(com.google.protobuf.ByteString value)
       Per-dimension unit string for physical_scale (e.g. "micrometer", "µm"),
       aligned 1:1 with physical_scale. "" means unknown.
       
      repeated string physical_unit = 12;
      Parameters:
      value - The bytes of the physicalUnit to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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