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 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<SerializedTensor.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public SerializedTensor.Builder mergeFrom(SerializedTensor other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<SerializedTensor.Builder>
      Throws:
      IOException
    • 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.
    • setLocation

      public SerializedTensor.Builder setLocation(String value)
       Flight server location URI (e.g., "grpc://localhost:8815")
       
      string location = 3;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public SerializedTensor.Builder clearLocation()
       Flight server location URI (e.g., "grpc://localhost:8815")
       
      string location = 3;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public SerializedTensor.Builder setLocationBytes(com.google.protobuf.ByteString value)
       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

      public String getAuthToken()
       Per-source capability token or the server token; empty if none.
       
      string auth_token = 4;
      Specified by:
      getAuthToken in interface SerializedTensorOrBuilder
      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:
      getAuthTokenBytes in interface SerializedTensorOrBuilder
      Returns:
      The bytes for authToken.
    • setAuthToken

      public SerializedTensor.Builder setAuthToken(String value)
       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

      public SerializedTensor.Builder clearAuthToken()
       Per-source capability token or the server token; empty if none.
       
      string auth_token = 4;
      Returns:
      This builder for chaining.
    • setAuthTokenBytes

      public SerializedTensor.Builder setAuthTokenBytes(com.google.protobuf.ByteString value)
       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:
      getFlightInfo in interface SerializedTensorOrBuilder
      Returns:
      The flightInfo.
    • setFlightInfo

      public SerializedTensor.Builder setFlightInfo(com.google.protobuf.ByteString value)
       Serialized arrow.flight.protocol.FlightInfo; see above.
       
      bytes flight_info = 7;
      Parameters:
      value - The flightInfo to set.
      Returns:
      This builder for chaining.
    • clearFlightInfo

      public SerializedTensor.Builder 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:
      getTlsAnchor in interface SerializedTensorOrBuilder
      Returns:
      The tlsAnchor.
    • setTlsAnchor

      public SerializedTensor.Builder setTlsAnchor(com.google.protobuf.ByteString value)
       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

      public SerializedTensor.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SerializedTensor.Builder>
    • mergeUnknownFields

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