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
A tensor handed across processes: the answer a GetFlightInfo gave, and the
connection facts to act on it.
The structure is Arrow's own. `flight_info` is a serialized
`arrow.flight.protocol.FlightInfo`, exactly as the tensor server answers a
`tensor_read` GetFlightInfo: its `descriptor.command` is the resolved
`TensorDescriptor`; each endpoint is the chunk ticket with its `ChunkBounds`
in `app_metadata`; the schema carries the wire-protocol and transfer
metadata; and the FlightInfo's own `app_metadata` is the requested
`SliceHint` when the read was sliced, so the consumer crops the chunk-aligned
realized region back to what was asked for. A FlightInfo with no endpoints
is a source declared before its chunks exist (the fast-return handle): the
consumer calls GetFlightInfo with the embedded descriptor when it reads.
What Arrow does not carry is where and as whom. A FlightInfo with no
endpoints names no server, and every endpoint this server mints has an empty
location list ("the server you asked"), which a forwarded handle cannot mean.
Protobuf type biopb.tensor.SerializedTensor- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA tensor handed across processes: the answer a GetFlightInfo gave, and the connection facts to act on it.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 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 TypeMethodDescriptionbooleanPer-source capability token or the server token; empty if none.com.google.protobuf.ByteStringPer-source capability token or the server token; empty if none.static SerializedTensorstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringSerialized arrow.flight.protocol.FlightInfo; see above.Flight server location URI (e.g., "grpc://localhost:8815")com.google.protobuf.ByteStringFlight server location URI (e.g., "grpc://localhost:8815")com.google.protobuf.Parser<SerializedTensor>intcom.google.protobuf.ByteStringPEM trust anchor the sender verified the server with: the pinned leaf or a configured CA.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal 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, internalGetMapFieldReflection, 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
-
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:
-
FLIGHT_INFO_FIELD_NUMBER
public static final int FLIGHT_INFO_FIELD_NUMBER- See Also:
-
TLS_ANCHOR_FIELD_NUMBER
public static final int TLS_ANCHOR_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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
Per-source capability token or the server token; empty if none.
string auth_token = 4;- Specified by:
getAuthTokenin interfaceSerializedTensorOrBuilder- Returns:
- The authToken.
-
getAuthTokenBytes
public com.google.protobuf.ByteString getAuthTokenBytes()Per-source capability token or the server token; empty if none.
string auth_token = 4;- Specified by:
getAuthTokenBytesin interfaceSerializedTensorOrBuilder- Returns:
- The bytes for authToken.
-
getFlightInfo
public com.google.protobuf.ByteString getFlightInfo()Serialized arrow.flight.protocol.FlightInfo; see above.
bytes flight_info = 7;- Specified by:
getFlightInfoin interfaceSerializedTensorOrBuilder- Returns:
- The flightInfo.
-
getTlsAnchor
public com.google.protobuf.ByteString getTlsAnchor()PEM trust anchor the sender verified the server with: the pinned leaf or a configured CA. Public material. The consumer applies it to `location` itself, deriving any hostname override on its own network, instead of trusting the first certificate it sees. Empty for a plaintext location or a sender that trusted the system store.
bytes tls_anchor = 8;- Specified by:
getTlsAnchorin interfaceSerializedTensorOrBuilder- Returns:
- The tlsAnchor.
-
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
-