Package biopb.tensor

Class ChunkGrant.Builder

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

public static final class ChunkGrant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChunkGrant.Builder> implements ChunkGrantOrBuilder
 A seal over a TicketStub's identity, the window of chunks the plan covers,
 and an expiry. Whoever holds it may read exactly those chunks until it
 expires, with no other credential.
 
Protobuf type biopb.tensor.ChunkGrant
  • 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<ChunkGrant.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ChunkGrant.Builder mergeFrom(ChunkGrant other)
    • isInitialized

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

      public ChunkGrant.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<ChunkGrant.Builder>
      Throws:
      IOException
    • getWindowStartList

      public List<Integer> getWindowStartList()
       The plan's window on the chunk grid, [window_start, window_stop) per axis.
       A chunk_ref whose index falls outside it is refused.
       
      repeated uint32 window_start = 1;
      Specified by:
      getWindowStartList in interface ChunkGrantOrBuilder
      Returns:
      A list containing the windowStart.
    • getWindowStartCount

      public int getWindowStartCount()
       The plan's window on the chunk grid, [window_start, window_stop) per axis.
       A chunk_ref whose index falls outside it is refused.
       
      repeated uint32 window_start = 1;
      Specified by:
      getWindowStartCount in interface ChunkGrantOrBuilder
      Returns:
      The count of windowStart.
    • getWindowStart

      public int getWindowStart(int index)
       The plan's window on the chunk grid, [window_start, window_stop) per axis.
       A chunk_ref whose index falls outside it is refused.
       
      repeated uint32 window_start = 1;
      Specified by:
      getWindowStart in interface ChunkGrantOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The windowStart at the given index.
    • setWindowStart

      public ChunkGrant.Builder setWindowStart(int index, int value)
       The plan's window on the chunk grid, [window_start, window_stop) per axis.
       A chunk_ref whose index falls outside it is refused.
       
      repeated uint32 window_start = 1;
      Parameters:
      index - The index to set the value at.
      value - The windowStart to set.
      Returns:
      This builder for chaining.
    • addWindowStart

      public ChunkGrant.Builder addWindowStart(int value)
       The plan's window on the chunk grid, [window_start, window_stop) per axis.
       A chunk_ref whose index falls outside it is refused.
       
      repeated uint32 window_start = 1;
      Parameters:
      value - The windowStart to add.
      Returns:
      This builder for chaining.
    • addAllWindowStart

      public ChunkGrant.Builder addAllWindowStart(Iterable<? extends Integer> values)
       The plan's window on the chunk grid, [window_start, window_stop) per axis.
       A chunk_ref whose index falls outside it is refused.
       
      repeated uint32 window_start = 1;
      Parameters:
      values - The windowStart to add.
      Returns:
      This builder for chaining.
    • clearWindowStart

      public ChunkGrant.Builder clearWindowStart()
       The plan's window on the chunk grid, [window_start, window_stop) per axis.
       A chunk_ref whose index falls outside it is refused.
       
      repeated uint32 window_start = 1;
      Returns:
      This builder for chaining.
    • getWindowStopList

      public List<Integer> getWindowStopList()
      repeated uint32 window_stop = 2;
      Specified by:
      getWindowStopList in interface ChunkGrantOrBuilder
      Returns:
      A list containing the windowStop.
    • getWindowStopCount

      public int getWindowStopCount()
      repeated uint32 window_stop = 2;
      Specified by:
      getWindowStopCount in interface ChunkGrantOrBuilder
      Returns:
      The count of windowStop.
    • getWindowStop

      public int getWindowStop(int index)
      repeated uint32 window_stop = 2;
      Specified by:
      getWindowStop in interface ChunkGrantOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The windowStop at the given index.
    • setWindowStop

      public ChunkGrant.Builder setWindowStop(int index, int value)
      repeated uint32 window_stop = 2;
      Parameters:
      index - The index to set the value at.
      value - The windowStop to set.
      Returns:
      This builder for chaining.
    • addWindowStop

      public ChunkGrant.Builder addWindowStop(int value)
      repeated uint32 window_stop = 2;
      Parameters:
      value - The windowStop to add.
      Returns:
      This builder for chaining.
    • addAllWindowStop

      public ChunkGrant.Builder addAllWindowStop(Iterable<? extends Integer> values)
      repeated uint32 window_stop = 2;
      Parameters:
      values - The windowStop to add.
      Returns:
      This builder for chaining.
    • clearWindowStop

      public ChunkGrant.Builder clearWindowStop()
      repeated uint32 window_stop = 2;
      Returns:
      This builder for chaining.
    • getExpiresAt

      public long getExpiresAt()
       Unix seconds after which the seal is refused; 0 never expires.
       
      uint64 expires_at = 3;
      Specified by:
      getExpiresAt in interface ChunkGrantOrBuilder
      Returns:
      The expiresAt.
    • setExpiresAt

      public ChunkGrant.Builder setExpiresAt(long value)
       Unix seconds after which the seal is refused; 0 never expires.
       
      uint64 expires_at = 3;
      Parameters:
      value - The expiresAt to set.
      Returns:
      This builder for chaining.
    • clearExpiresAt

      public ChunkGrant.Builder clearExpiresAt()
       Unix seconds after which the seal is refused; 0 never expires.
       
      uint64 expires_at = 3;
      Returns:
      This builder for chaining.
    • getSeal

      public com.google.protobuf.ByteString getSeal()
       A MAC the server computes over the identity, window and expiry, keyed by a
       secret that persists across restarts. Rotating the key revokes every seal
       outstanding.
       
      bytes seal = 4;
      Specified by:
      getSeal in interface ChunkGrantOrBuilder
      Returns:
      The seal.
    • setSeal

      public ChunkGrant.Builder setSeal(com.google.protobuf.ByteString value)
       A MAC the server computes over the identity, window and expiry, keyed by a
       secret that persists across restarts. Rotating the key revokes every seal
       outstanding.
       
      bytes seal = 4;
      Parameters:
      value - The seal to set.
      Returns:
      This builder for chaining.
    • clearSeal

      public ChunkGrant.Builder clearSeal()
       A MAC the server computes over the identity, window and expiry, keyed by a
       secret that persists across restarts. Rotating the key revokes every seal
       outstanding.
       
      bytes seal = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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