Package biopb.tensor

Class TensorReadOption.Builder

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

public static final class TensorReadOption.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TensorReadOption.Builder> implements TensorReadOptionOrBuilder
 Tensor read request within a data source.
 Flattened structure - no nested messages for read options.
 Used in FlightCmd.tensor_read branch.
 
Protobuf type biopb.tensor.TensorReadOption
  • 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<TensorReadOption.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public TensorReadOption.Builder mergeFrom(TensorReadOption other)
    • isInitialized

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

      public TensorReadOption.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<TensorReadOption.Builder>
      Throws:
      IOException
    • getTensorId

      public String getTensorId()
       Which tensor to read -- normally the globally-unique array_id (see the
       tensor identity policy at the top of this file); the same value as
       TensorDescriptor.array_id. The server strips the source_id prefix (split on
       the first '/') to resolve the within-source tensor. For back-compat it also
       accepts a bare field name or the source_id; unset/empty means "the source's
       default (first) tensor" and is resolved server-side (#44).
       
      string tensor_id = 1;
      Specified by:
      getTensorId in interface TensorReadOptionOrBuilder
      Returns:
      The tensorId.
    • getTensorIdBytes

      public com.google.protobuf.ByteString getTensorIdBytes()
       Which tensor to read -- normally the globally-unique array_id (see the
       tensor identity policy at the top of this file); the same value as
       TensorDescriptor.array_id. The server strips the source_id prefix (split on
       the first '/') to resolve the within-source tensor. For back-compat it also
       accepts a bare field name or the source_id; unset/empty means "the source's
       default (first) tensor" and is resolved server-side (#44).
       
      string tensor_id = 1;
      Specified by:
      getTensorIdBytes in interface TensorReadOptionOrBuilder
      Returns:
      The bytes for tensorId.
    • setTensorId

      public TensorReadOption.Builder setTensorId(String value)
       Which tensor to read -- normally the globally-unique array_id (see the
       tensor identity policy at the top of this file); the same value as
       TensorDescriptor.array_id. The server strips the source_id prefix (split on
       the first '/') to resolve the within-source tensor. For back-compat it also
       accepts a bare field name or the source_id; unset/empty means "the source's
       default (first) tensor" and is resolved server-side (#44).
       
      string tensor_id = 1;
      Parameters:
      value - The tensorId to set.
      Returns:
      This builder for chaining.
    • clearTensorId

      public TensorReadOption.Builder clearTensorId()
       Which tensor to read -- normally the globally-unique array_id (see the
       tensor identity policy at the top of this file); the same value as
       TensorDescriptor.array_id. The server strips the source_id prefix (split on
       the first '/') to resolve the within-source tensor. For back-compat it also
       accepts a bare field name or the source_id; unset/empty means "the source's
       default (first) tensor" and is resolved server-side (#44).
       
      string tensor_id = 1;
      Returns:
      This builder for chaining.
    • setTensorIdBytes

      public TensorReadOption.Builder setTensorIdBytes(com.google.protobuf.ByteString value)
       Which tensor to read -- normally the globally-unique array_id (see the
       tensor identity policy at the top of this file); the same value as
       TensorDescriptor.array_id. The server strips the source_id prefix (split on
       the first '/') to resolve the within-source tensor. For back-compat it also
       accepts a bare field name or the source_id; unset/empty means "the source's
       default (first) tensor" and is resolved server-side (#44).
       
      string tensor_id = 1;
      Parameters:
      value - The bytes for tensorId to set.
      Returns:
      This builder for chaining.
    • hasSliceHint

      public boolean hasSliceHint()
       Optional sub-region to read
       
      .biopb.tensor.SliceHint slice_hint = 2;
      Specified by:
      hasSliceHint in interface TensorReadOptionOrBuilder
      Returns:
      Whether the sliceHint field is set.
    • getSliceHint

      public SliceHint getSliceHint()
       Optional sub-region to read
       
      .biopb.tensor.SliceHint slice_hint = 2;
      Specified by:
      getSliceHint in interface TensorReadOptionOrBuilder
      Returns:
      The sliceHint.
    • setSliceHint

      public TensorReadOption.Builder setSliceHint(SliceHint value)
       Optional sub-region to read
       
      .biopb.tensor.SliceHint slice_hint = 2;
    • setSliceHint

      public TensorReadOption.Builder setSliceHint(SliceHint.Builder builderForValue)
       Optional sub-region to read
       
      .biopb.tensor.SliceHint slice_hint = 2;
    • mergeSliceHint

      public TensorReadOption.Builder mergeSliceHint(SliceHint value)
       Optional sub-region to read
       
      .biopb.tensor.SliceHint slice_hint = 2;
    • clearSliceHint

      public TensorReadOption.Builder clearSliceHint()
       Optional sub-region to read
       
      .biopb.tensor.SliceHint slice_hint = 2;
    • getSliceHintBuilder

      public SliceHint.Builder getSliceHintBuilder()
       Optional sub-region to read
       
      .biopb.tensor.SliceHint slice_hint = 2;
    • getSliceHintOrBuilder

      public SliceHintOrBuilder getSliceHintOrBuilder()
       Optional sub-region to read
       
      .biopb.tensor.SliceHint slice_hint = 2;
      Specified by:
      getSliceHintOrBuilder in interface TensorReadOptionOrBuilder
    • getScaleHintList

      public List<Long> getScaleHintList()
       Per-dimension integer downsampling factors.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       
      repeated int64 scale_hint = 3;
      Specified by:
      getScaleHintList in interface TensorReadOptionOrBuilder
      Returns:
      A list containing the scaleHint.
    • getScaleHintCount

      public int getScaleHintCount()
       Per-dimension integer downsampling factors.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       
      repeated int64 scale_hint = 3;
      Specified by:
      getScaleHintCount in interface TensorReadOptionOrBuilder
      Returns:
      The count of scaleHint.
    • getScaleHint

      public long getScaleHint(int index)
       Per-dimension integer downsampling factors.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       
      repeated int64 scale_hint = 3;
      Specified by:
      getScaleHint in interface TensorReadOptionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The scaleHint at the given index.
    • setScaleHint

      public TensorReadOption.Builder setScaleHint(int index, long value)
       Per-dimension integer downsampling factors.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       
      repeated int64 scale_hint = 3;
      Parameters:
      index - The index to set the value at.
      value - The scaleHint to set.
      Returns:
      This builder for chaining.
    • addScaleHint

      public TensorReadOption.Builder addScaleHint(long value)
       Per-dimension integer downsampling factors.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       
      repeated int64 scale_hint = 3;
      Parameters:
      value - The scaleHint to add.
      Returns:
      This builder for chaining.
    • addAllScaleHint

      public TensorReadOption.Builder addAllScaleHint(Iterable<? extends Long> values)
       Per-dimension integer downsampling factors.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       
      repeated int64 scale_hint = 3;
      Parameters:
      values - The scaleHint to add.
      Returns:
      This builder for chaining.
    • clearScaleHint

      public TensorReadOption.Builder clearScaleHint()
       Per-dimension integer downsampling factors.
       Example: [1, 8, 8] means full resolution on first axis, 8x reduced on remaining.
       
      repeated int64 scale_hint = 3;
      Returns:
      This builder for chaining.
    • getReductionMethod

      public String getReductionMethod()
       Dynamic reduction/downsampling method: "nearest", "area", or
       "precompute" (serve a native on-disk pyramid level).
       Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area",
       "precomputed" -> "precompute", "linear" (deprecated) -> "area".
       
      string reduction_method = 4;
      Specified by:
      getReductionMethod in interface TensorReadOptionOrBuilder
      Returns:
      The reductionMethod.
    • getReductionMethodBytes

      public com.google.protobuf.ByteString getReductionMethodBytes()
       Dynamic reduction/downsampling method: "nearest", "area", or
       "precompute" (serve a native on-disk pyramid level).
       Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area",
       "precomputed" -> "precompute", "linear" (deprecated) -> "area".
       
      string reduction_method = 4;
      Specified by:
      getReductionMethodBytes in interface TensorReadOptionOrBuilder
      Returns:
      The bytes for reductionMethod.
    • setReductionMethod

      public TensorReadOption.Builder setReductionMethod(String value)
       Dynamic reduction/downsampling method: "nearest", "area", or
       "precompute" (serve a native on-disk pyramid level).
       Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area",
       "precomputed" -> "precompute", "linear" (deprecated) -> "area".
       
      string reduction_method = 4;
      Parameters:
      value - The reductionMethod to set.
      Returns:
      This builder for chaining.
    • clearReductionMethod

      public TensorReadOption.Builder clearReductionMethod()
       Dynamic reduction/downsampling method: "nearest", "area", or
       "precompute" (serve a native on-disk pyramid level).
       Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area",
       "precomputed" -> "precompute", "linear" (deprecated) -> "area".
       
      string reduction_method = 4;
      Returns:
      This builder for chaining.
    • setReductionMethodBytes

      public TensorReadOption.Builder setReductionMethodBytes(com.google.protobuf.ByteString value)
       Dynamic reduction/downsampling method: "nearest", "area", or
       "precompute" (serve a native on-disk pyramid level).
       Compatibility aliases accepted: "stride" -> "nearest", "mean" -> "area",
       "precomputed" -> "precompute", "linear" (deprecated) -> "area".
       
      string reduction_method = 4;
      Parameters:
      value - The bytes for reductionMethod to set.
      Returns:
      This builder for chaining.
    • getWithMetadata

      public boolean getWithMetadata()
       If true, server populates metadata_json with wrapped metadata.
       Wrapped structure: {"type": source_type, "dim_label": [...], "metadata": {...}}
       
      bool with_metadata = 5;
      Specified by:
      getWithMetadata in interface TensorReadOptionOrBuilder
      Returns:
      The withMetadata.
    • setWithMetadata

      public TensorReadOption.Builder setWithMetadata(boolean value)
       If true, server populates metadata_json with wrapped metadata.
       Wrapped structure: {"type": source_type, "dim_label": [...], "metadata": {...}}
       
      bool with_metadata = 5;
      Parameters:
      value - The withMetadata to set.
      Returns:
      This builder for chaining.
    • clearWithMetadata

      public TensorReadOption.Builder clearWithMetadata()
       If true, server populates metadata_json with wrapped metadata.
       Wrapped structure: {"type": source_type, "dim_label": [...], "metadata": {...}}
       
      bool with_metadata = 5;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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