Package biopb.tensor

Class ChunkRef.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ChunkRef.Builder>
biopb.tensor.ChunkRef.Builder
All Implemented Interfaces:
ChunkRefOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ChunkRef

public static final class ChunkRef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChunkRef.Builder> implements ChunkRefOrBuilder
 One pixel chunk, as `stub + index`.

 A GetFlightInfo that is asked for `ticket_stub` returns the stub once, on
 the descriptor, and each endpoint's ticket carries only the `index`. The
 ticket DoGet takes is the two joined: serialized protobuf messages merge
 when concatenated, so `stub_bytes + endpoint_ticket_bytes` is one ChunkRef
 carrying both, and a client needs no codec to build it.

 The server expands `(stub.identity, index)` into the chunk_id it always
 served, so the cache, the staleness check and the upload path see the same
 bytes they did before; nothing below the ticket changed.
 
Protobuf type biopb.tensor.ChunkRef
  • 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<ChunkRef.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ChunkRef.Builder mergeFrom(ChunkRef other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ChunkRef.Builder>
    • mergeFrom

      public ChunkRef.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<ChunkRef.Builder>
      Throws:
      IOException
    • hasStub

      public boolean hasStub()
      .biopb.tensor.TicketStub stub = 1;
      Specified by:
      hasStub in interface ChunkRefOrBuilder
      Returns:
      Whether the stub field is set.
    • getStub

      public TicketStub getStub()
      .biopb.tensor.TicketStub stub = 1;
      Specified by:
      getStub in interface ChunkRefOrBuilder
      Returns:
      The stub.
    • setStub

      public ChunkRef.Builder setStub(TicketStub value)
      .biopb.tensor.TicketStub stub = 1;
    • setStub

      public ChunkRef.Builder setStub(TicketStub.Builder builderForValue)
      .biopb.tensor.TicketStub stub = 1;
    • mergeStub

      public ChunkRef.Builder mergeStub(TicketStub value)
      .biopb.tensor.TicketStub stub = 1;
    • clearStub

      public ChunkRef.Builder clearStub()
      .biopb.tensor.TicketStub stub = 1;
    • getStubBuilder

      public TicketStub.Builder getStubBuilder()
      .biopb.tensor.TicketStub stub = 1;
    • getStubOrBuilder

      public TicketStubOrBuilder getStubOrBuilder()
      .biopb.tensor.TicketStub stub = 1;
      Specified by:
      getStubOrBuilder in interface ChunkRefOrBuilder
    • getIndexList

      public List<Integer> getIndexList()
       The chunk's absolute position on the tensor's chunk grid, one entry per
       axis. Absolute rather than relative to the plan's window, so one chunk
       reads the same bytes whichever plan reached it.
       
      repeated uint32 index = 2;
      Specified by:
      getIndexList in interface ChunkRefOrBuilder
      Returns:
      A list containing the index.
    • getIndexCount

      public int getIndexCount()
       The chunk's absolute position on the tensor's chunk grid, one entry per
       axis. Absolute rather than relative to the plan's window, so one chunk
       reads the same bytes whichever plan reached it.
       
      repeated uint32 index = 2;
      Specified by:
      getIndexCount in interface ChunkRefOrBuilder
      Returns:
      The count of index.
    • getIndex

      public int getIndex(int index)
       The chunk's absolute position on the tensor's chunk grid, one entry per
       axis. Absolute rather than relative to the plan's window, so one chunk
       reads the same bytes whichever plan reached it.
       
      repeated uint32 index = 2;
      Specified by:
      getIndex in interface ChunkRefOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The index at the given index.
    • setIndex

      public ChunkRef.Builder setIndex(int index, int value)
       The chunk's absolute position on the tensor's chunk grid, one entry per
       axis. Absolute rather than relative to the plan's window, so one chunk
       reads the same bytes whichever plan reached it.
       
      repeated uint32 index = 2;
      Parameters:
      index - The index to set the value at.
      value - The index to set.
      Returns:
      This builder for chaining.
    • addIndex

      public ChunkRef.Builder addIndex(int value)
       The chunk's absolute position on the tensor's chunk grid, one entry per
       axis. Absolute rather than relative to the plan's window, so one chunk
       reads the same bytes whichever plan reached it.
       
      repeated uint32 index = 2;
      Parameters:
      value - The index to add.
      Returns:
      This builder for chaining.
    • addAllIndex

      public ChunkRef.Builder addAllIndex(Iterable<? extends Integer> values)
       The chunk's absolute position on the tensor's chunk grid, one entry per
       axis. Absolute rather than relative to the plan's window, so one chunk
       reads the same bytes whichever plan reached it.
       
      repeated uint32 index = 2;
      Parameters:
      values - The index to add.
      Returns:
      This builder for chaining.
    • clearIndex

      public ChunkRef.Builder clearIndex()
       The chunk's absolute position on the tensor's chunk grid, one entry per
       axis. Absolute rather than relative to the plan's window, so one chunk
       reads the same bytes whichever plan reached it.
       
      repeated uint32 index = 2;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ChunkRef.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<ChunkRef.Builder>
    • mergeUnknownFields

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