Package biopb.tensor
Class SerializedTensor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
biopb.tensor.SerializedTensor.Builder
- All Implemented Interfaces:
SerializedTensorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SerializedTensor
public static final class SerializedTensor.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Per-source capability token or the server token; empty if none.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Serialized arrow.flight.protocol.FlightInfo; see above.Flight server location URI (e.g., "grpc://localhost:8815")clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) PEM trust anchor the sender verified the server with: the pinned leaf or a configured CA.clone()Per-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 final com.google.protobuf.Descriptors.Descriptorcom.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.ByteStringPEM trust anchor the sender verified the server with: the pinned leaf or a configured CA.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(SerializedTensor other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final SerializedTensor.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAuthToken(String value) Per-source capability token or the server token; empty if none.setAuthTokenBytes(com.google.protobuf.ByteString value) Per-source capability token or the server token; empty if none.setFlightInfo(com.google.protobuf.ByteString value) Serialized arrow.flight.protocol.FlightInfo; see above.setLocation(String value) Flight server location URI (e.g., "grpc://localhost:8815")setLocationBytes(com.google.protobuf.ByteString value) Flight server location URI (e.g., "grpc://localhost:8815")setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTlsAnchor(com.google.protobuf.ByteString value) PEM trust anchor the sender verified the server with: the pinned leaf or a configured CA.final SerializedTensor.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<SerializedTensor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-
setField
public SerializedTensor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-
setRepeatedField
public SerializedTensor.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-
addRepeatedField
public SerializedTensor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SerializedTensor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-
mergeFrom
public SerializedTensor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SerializedTensor.Builder>- Throws:
IOException
-
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.
-
setLocation
Flight server location URI (e.g., "grpc://localhost:8815")
string location = 3;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
Flight server location URI (e.g., "grpc://localhost:8815")
string location = 3;- Returns:
- This builder for chaining.
-
setLocationBytes
Flight server location URI (e.g., "grpc://localhost:8815")
string location = 3;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
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.
-
setAuthToken
Per-source capability token or the server token; empty if none.
string auth_token = 4;- Parameters:
value- The authToken to set.- Returns:
- This builder for chaining.
-
clearAuthToken
Per-source capability token or the server token; empty if none.
string auth_token = 4;- Returns:
- This builder for chaining.
-
setAuthTokenBytes
Per-source capability token or the server token; empty if none.
string auth_token = 4;- Parameters:
value- The bytes for authToken to set.- Returns:
- This builder for chaining.
-
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.
-
setFlightInfo
Serialized arrow.flight.protocol.FlightInfo; see above.
bytes flight_info = 7;- Parameters:
value- The flightInfo to set.- Returns:
- This builder for chaining.
-
clearFlightInfo
Serialized arrow.flight.protocol.FlightInfo; see above.
bytes flight_info = 7;- Returns:
- This builder for chaining.
-
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.
-
setTlsAnchor
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;- Parameters:
value- The tlsAnchor to set.- Returns:
- This builder for chaining.
-
clearTlsAnchor
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final SerializedTensor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-
mergeUnknownFields
public final SerializedTensor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
-