Package biopb.tensor

Class SerializedTensor

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

public final class SerializedTensor extends com.google.protobuf.GeneratedMessageV3 implements SerializedTensorOrBuilder
 Serialized tensor for cross-process transfer.
 Contains connection info + chunk tickets for lazy reconstruction.
 
Protobuf type biopb.tensor.SerializedTensor
See Also:
  • Field Details

    • TENSOR_DESCRIPTOR_FIELD_NUMBER

      public static final int TENSOR_DESCRIPTOR_FIELD_NUMBER
      See Also:
    • ORIGINAL_SLICE_HINT_FIELD_NUMBER

      public static final int ORIGINAL_SLICE_HINT_FIELD_NUMBER
      See Also:
    • LOCATION_FIELD_NUMBER

      public static final int LOCATION_FIELD_NUMBER
      See Also:
    • AUTH_TOKEN_FIELD_NUMBER

      public static final int AUTH_TOKEN_FIELD_NUMBER
      See Also:
    • ENDPOINTS_FIELD_NUMBER

      public static final int ENDPOINTS_FIELD_NUMBER
      See Also:
    • SCHEMA_METADATA_FIELD_NUMBER

      public static final int SCHEMA_METADATA_FIELD_NUMBER
      See Also:
    • DEBUG_PICKLED_ARRAY_FIELD_NUMBER

      public static final int DEBUG_PICKLED_ARRAY_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasTensorDescriptor

      public boolean hasTensorDescriptor()
       Tensor metadata (shape, dtype, chunk_shape, scale_hint, reduction_method, realized slice_hint)
       
      .biopb.tensor.TensorDescriptor tensor_descriptor = 1;
      Specified by:
      hasTensorDescriptor in interface SerializedTensorOrBuilder
      Returns:
      Whether the tensorDescriptor field is set.
    • getTensorDescriptor

      public TensorDescriptor getTensorDescriptor()
       Tensor metadata (shape, dtype, chunk_shape, scale_hint, reduction_method, realized slice_hint)
       
      .biopb.tensor.TensorDescriptor tensor_descriptor = 1;
      Specified by:
      getTensorDescriptor in interface SerializedTensorOrBuilder
      Returns:
      The tensorDescriptor.
    • getTensorDescriptorOrBuilder

      public TensorDescriptorOrBuilder getTensorDescriptorOrBuilder()
       Tensor metadata (shape, dtype, chunk_shape, scale_hint, reduction_method, realized slice_hint)
       
      .biopb.tensor.TensorDescriptor tensor_descriptor = 1;
      Specified by:
      getTensorDescriptorOrBuilder in interface SerializedTensorOrBuilder
    • hasOriginalSliceHint

      public boolean hasOriginalSliceHint()
       Original user-requested slice_hint (before LCM alignment).
       Used for cropping after reconstruction.
       
      .biopb.tensor.SliceHint original_slice_hint = 2;
      Specified by:
      hasOriginalSliceHint in interface SerializedTensorOrBuilder
      Returns:
      Whether the originalSliceHint field is set.
    • getOriginalSliceHint

      public SliceHint getOriginalSliceHint()
       Original user-requested slice_hint (before LCM alignment).
       Used for cropping after reconstruction.
       
      .biopb.tensor.SliceHint original_slice_hint = 2;
      Specified by:
      getOriginalSliceHint in interface SerializedTensorOrBuilder
      Returns:
      The originalSliceHint.
    • getOriginalSliceHintOrBuilder

      public SliceHintOrBuilder getOriginalSliceHintOrBuilder()
       Original user-requested slice_hint (before LCM alignment).
       Used for cropping after reconstruction.
       
      .biopb.tensor.SliceHint original_slice_hint = 2;
      Specified by:
      getOriginalSliceHintOrBuilder in interface SerializedTensorOrBuilder
    • getLocation

      public String getLocation()
       Flight server location URI (e.g., "grpc://localhost:8815")
       
      string location = 3;
      Specified by:
      getLocation in interface SerializedTensorOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Flight server location URI (e.g., "grpc://localhost:8815")
       
      string location = 3;
      Specified by:
      getLocationBytes in interface SerializedTensorOrBuilder
      Returns:
      The bytes for location.
    • getAuthToken

      public String getAuthToken()
       Auth token (empty if no auth)
       
      string auth_token = 4;
      Specified by:
      getAuthToken in interface SerializedTensorOrBuilder
      Returns:
      The authToken.
    • getAuthTokenBytes

      public com.google.protobuf.ByteString getAuthTokenBytes()
       Auth token (empty if no auth)
       
      string auth_token = 4;
      Specified by:
      getAuthTokenBytes in interface SerializedTensorOrBuilder
      Returns:
      The bytes for authToken.
    • getEndpointsList

      public List<SerializedEndpoint> getEndpointsList()
       Serialized flight endpoints. This is optional field. If not present, client
       Should call GetFlightInfo on the server to rebuild endpoint list.
       
      repeated .biopb.tensor.SerializedEndpoint endpoints = 5;
      Specified by:
      getEndpointsList in interface SerializedTensorOrBuilder
    • getEndpointsOrBuilderList

      public List<? extends SerializedEndpointOrBuilder> getEndpointsOrBuilderList()
       Serialized flight endpoints. This is optional field. If not present, client
       Should call GetFlightInfo on the server to rebuild endpoint list.
       
      repeated .biopb.tensor.SerializedEndpoint endpoints = 5;
      Specified by:
      getEndpointsOrBuilderList in interface SerializedTensorOrBuilder
    • getEndpointsCount

      public int getEndpointsCount()
       Serialized flight endpoints. This is optional field. If not present, client
       Should call GetFlightInfo on the server to rebuild endpoint list.
       
      repeated .biopb.tensor.SerializedEndpoint endpoints = 5;
      Specified by:
      getEndpointsCount in interface SerializedTensorOrBuilder
    • getEndpoints

      public SerializedEndpoint getEndpoints(int index)
       Serialized flight endpoints. This is optional field. If not present, client
       Should call GetFlightInfo on the server to rebuild endpoint list.
       
      repeated .biopb.tensor.SerializedEndpoint endpoints = 5;
      Specified by:
      getEndpoints in interface SerializedTensorOrBuilder
    • getEndpointsOrBuilder

      public SerializedEndpointOrBuilder getEndpointsOrBuilder(int index)
       Serialized flight endpoints. This is optional field. If not present, client
       Should call GetFlightInfo on the server to rebuild endpoint list.
       
      repeated .biopb.tensor.SerializedEndpoint endpoints = 5;
      Specified by:
      getEndpointsOrBuilder in interface SerializedTensorOrBuilder
    • getSchemaMetadataCount

      public int getSchemaMetadataCount()
      Description copied from interface: SerializedTensorOrBuilder
       Schema metadata from GetFlightInfo for SHM transfer feature detection.
       Populated by get_tensor_pb() when schema has metadata.
       
      map<string, string> schema_metadata = 6;
      Specified by:
      getSchemaMetadataCount in interface SerializedTensorOrBuilder
    • containsSchemaMetadata

      public boolean containsSchemaMetadata(String key)
       Schema metadata from GetFlightInfo for SHM transfer feature detection.
       Populated by get_tensor_pb() when schema has metadata.
       
      map<string, string> schema_metadata = 6;
      Specified by:
      containsSchemaMetadata in interface SerializedTensorOrBuilder
    • getSchemaMetadata

      @Deprecated public Map<String,String> getSchemaMetadata()
      Deprecated.
      Specified by:
      getSchemaMetadata in interface SerializedTensorOrBuilder
    • getSchemaMetadataMap

      public Map<String,String> getSchemaMetadataMap()
       Schema metadata from GetFlightInfo for SHM transfer feature detection.
       Populated by get_tensor_pb() when schema has metadata.
       
      map<string, string> schema_metadata = 6;
      Specified by:
      getSchemaMetadataMap in interface SerializedTensorOrBuilder
    • getSchemaMetadataOrDefault

      public String getSchemaMetadataOrDefault(String key, String defaultValue)
       Schema metadata from GetFlightInfo for SHM transfer feature detection.
       Populated by get_tensor_pb() when schema has metadata.
       
      map<string, string> schema_metadata = 6;
      Specified by:
      getSchemaMetadataOrDefault in interface SerializedTensorOrBuilder
    • getSchemaMetadataOrThrow

      public String getSchemaMetadataOrThrow(String key)
       Schema metadata from GetFlightInfo for SHM transfer feature detection.
       Populated by get_tensor_pb() when schema has metadata.
       
      map<string, string> schema_metadata = 6;
      Specified by:
      getSchemaMetadataOrThrow in interface SerializedTensorOrBuilder
    • getDebugPickledArray

      public com.google.protobuf.ByteString getDebugPickledArray()
       A python-only debugging field carrying pickeled stream of da.array, allowing
       integration tests to bypass the Flight server and directly reconstruct the
       tensor on the client side.
       
      bytes debug_pickled_array = 100;
      Specified by:
      getDebugPickledArray in interface SerializedTensorOrBuilder
      Returns:
      The debugPickledArray.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SerializedTensor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static SerializedTensor.Builder newBuilder()
    • newBuilder

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

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

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

      public static SerializedTensor getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<SerializedTensor> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public SerializedTensor getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder