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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSerialized tensor for cross-process transfer.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanSchema metadata from GetFlightInfo for SHM transfer feature detection.booleanAuth token (empty if no auth)com.google.protobuf.ByteStringAuth token (empty if no auth)com.google.protobuf.ByteStringA 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.static SerializedTensorstatic final com.google.protobuf.Descriptors.DescriptorgetEndpoints(int index) Serialized flight endpoints.intSerialized flight endpoints.Serialized flight endpoints.getEndpointsOrBuilder(int index) Serialized flight endpoints.List<? extends SerializedEndpointOrBuilder>Serialized flight endpoints.Flight server location URI (e.g., "grpc://localhost:8815")com.google.protobuf.ByteStringFlight server location URI (e.g., "grpc://localhost:8815")Original user-requested slice_hint (before LCM alignment).Original user-requested slice_hint (before LCM alignment).com.google.protobuf.Parser<SerializedTensor>Deprecated.intSchema metadata from GetFlightInfo for SHM transfer feature detection.Schema metadata from GetFlightInfo for SHM transfer feature detection.getSchemaMetadataOrDefault(String key, String defaultValue) Schema metadata from GetFlightInfo for SHM transfer feature detection.Schema metadata from GetFlightInfo for SHM transfer feature detection.intTensor metadata (shape, dtype, chunk_shape, scale_hint, reduction_method, realized slice_hint)Tensor metadata (shape, dtype, chunk_shape, scale_hint, reduction_method, realized slice_hint)inthashCode()booleanOriginal user-requested slice_hint (before LCM alignment).booleanTensor metadata (shape, dtype, chunk_shape, scale_hint, reduction_method, realized slice_hint)protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic SerializedTensor.Builderstatic SerializedTensor.BuildernewBuilder(SerializedTensor prototype) protected SerializedTensor.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static SerializedTensorparseDelimitedFrom(InputStream input) static SerializedTensorparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SerializedTensorparseFrom(byte[] data) static SerializedTensorparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SerializedTensorparseFrom(com.google.protobuf.ByteString data) static SerializedTensorparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SerializedTensorparseFrom(com.google.protobuf.CodedInputStream input) static SerializedTensorparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SerializedTensorparseFrom(InputStream input) static SerializedTensorparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SerializedTensorparseFrom(ByteBuffer data) static SerializedTensorparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SerializedTensor>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.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:
hasTensorDescriptorin interfaceSerializedTensorOrBuilder- Returns:
- Whether the tensorDescriptor field is set.
-
getTensorDescriptor
Tensor metadata (shape, dtype, chunk_shape, scale_hint, reduction_method, realized slice_hint)
.biopb.tensor.TensorDescriptor tensor_descriptor = 1;- Specified by:
getTensorDescriptorin interfaceSerializedTensorOrBuilder- Returns:
- The tensorDescriptor.
-
getTensorDescriptorOrBuilder
Tensor metadata (shape, dtype, chunk_shape, scale_hint, reduction_method, realized slice_hint)
.biopb.tensor.TensorDescriptor tensor_descriptor = 1;- Specified by:
getTensorDescriptorOrBuilderin interfaceSerializedTensorOrBuilder
-
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:
hasOriginalSliceHintin interfaceSerializedTensorOrBuilder- Returns:
- Whether the originalSliceHint field is set.
-
getOriginalSliceHint
Original user-requested slice_hint (before LCM alignment). Used for cropping after reconstruction.
.biopb.tensor.SliceHint original_slice_hint = 2;- Specified by:
getOriginalSliceHintin interfaceSerializedTensorOrBuilder- Returns:
- The originalSliceHint.
-
getOriginalSliceHintOrBuilder
Original user-requested slice_hint (before LCM alignment). Used for cropping after reconstruction.
.biopb.tensor.SliceHint original_slice_hint = 2;- Specified by:
getOriginalSliceHintOrBuilderin interfaceSerializedTensorOrBuilder
-
getLocation
Flight server location URI (e.g., "grpc://localhost:8815")
string location = 3;- Specified by:
getLocationin interfaceSerializedTensorOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()Flight server location URI (e.g., "grpc://localhost:8815")
string location = 3;- Specified by:
getLocationBytesin interfaceSerializedTensorOrBuilder- Returns:
- The bytes for location.
-
getAuthToken
Auth token (empty if no auth)
string auth_token = 4;- Specified by:
getAuthTokenin interfaceSerializedTensorOrBuilder- Returns:
- The authToken.
-
getAuthTokenBytes
public com.google.protobuf.ByteString getAuthTokenBytes()Auth token (empty if no auth)
string auth_token = 4;- Specified by:
getAuthTokenBytesin interfaceSerializedTensorOrBuilder- Returns:
- The bytes for authToken.
-
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:
getEndpointsListin interfaceSerializedTensorOrBuilder
-
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:
getEndpointsOrBuilderListin interfaceSerializedTensorOrBuilder
-
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:
getEndpointsCountin interfaceSerializedTensorOrBuilder
-
getEndpoints
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:
getEndpointsin interfaceSerializedTensorOrBuilder
-
getEndpointsOrBuilder
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:
getEndpointsOrBuilderin interfaceSerializedTensorOrBuilder
-
getSchemaMetadataCount
public int getSchemaMetadataCount()Description copied from interface:SerializedTensorOrBuilderSchema 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:
getSchemaMetadataCountin interfaceSerializedTensorOrBuilder
-
containsSchemaMetadata
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:
containsSchemaMetadatain interfaceSerializedTensorOrBuilder
-
getSchemaMetadata
Deprecated.UsegetSchemaMetadataMap()instead.- Specified by:
getSchemaMetadatain interfaceSerializedTensorOrBuilder
-
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:
getSchemaMetadataMapin interfaceSerializedTensorOrBuilder
-
getSchemaMetadataOrDefault
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:
getSchemaMetadataOrDefaultin interfaceSerializedTensorOrBuilder
-
getSchemaMetadataOrThrow
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:
getSchemaMetadataOrThrowin interfaceSerializedTensorOrBuilder
-
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:
getDebugPickledArrayin interfaceSerializedTensorOrBuilder- Returns:
- The debugPickledArray.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static SerializedTensor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SerializedTensor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-