Package biopb.tensor

Class TicketStub.Builder

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

public static final class TicketStub.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TicketStub.Builder> implements TicketStubOrBuilder
 What every chunk of one plan shares, split by how long it stays true.

 The two halves are separate fields so they can be told apart without being
 understood: a cache keys on `identity` and ignores `grant`, whose expiry and
 seal change every time the plan is made.
 
Protobuf type biopb.tensor.TicketStub
  • 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<TicketStub.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public TicketStub.Builder mergeFrom(TicketStub other)
    • isInitialized

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

      public TicketStub.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<TicketStub.Builder>
      Throws:
      IOException
    • getIdentity

      public com.google.protobuf.ByteString getIdentity()
       Which tensor, version, scale, method and grid. Opaque, server-minted, and
       stable: the same tensor, read the same way, mints the same bytes. A client
       echoes it back and a proxy wraps it, and neither reads it.
       
      bytes identity = 1;
      Specified by:
      getIdentity in interface TicketStubOrBuilder
      Returns:
      The identity.
    • setIdentity

      public TicketStub.Builder setIdentity(com.google.protobuf.ByteString value)
       Which tensor, version, scale, method and grid. Opaque, server-minted, and
       stable: the same tensor, read the same way, mints the same bytes. A client
       echoes it back and a proxy wraps it, and neither reads it.
       
      bytes identity = 1;
      Parameters:
      value - The identity to set.
      Returns:
      This builder for chaining.
    • clearIdentity

      public TicketStub.Builder clearIdentity()
       Which tensor, version, scale, method and grid. Opaque, server-minted, and
       stable: the same tensor, read the same way, mints the same bytes. A client
       echoes it back and a proxy wraps it, and neither reads it.
       
      bytes identity = 1;
      Returns:
      This builder for chaining.
    • hasGrant

      public boolean hasGrant()
       The authority to read this plan's chunks, in place of a bearer token.
       
      .biopb.tensor.ChunkGrant grant = 2;
      Specified by:
      hasGrant in interface TicketStubOrBuilder
      Returns:
      Whether the grant field is set.
    • getGrant

      public ChunkGrant getGrant()
       The authority to read this plan's chunks, in place of a bearer token.
       
      .biopb.tensor.ChunkGrant grant = 2;
      Specified by:
      getGrant in interface TicketStubOrBuilder
      Returns:
      The grant.
    • setGrant

      public TicketStub.Builder setGrant(ChunkGrant value)
       The authority to read this plan's chunks, in place of a bearer token.
       
      .biopb.tensor.ChunkGrant grant = 2;
    • setGrant

      public TicketStub.Builder setGrant(ChunkGrant.Builder builderForValue)
       The authority to read this plan's chunks, in place of a bearer token.
       
      .biopb.tensor.ChunkGrant grant = 2;
    • mergeGrant

      public TicketStub.Builder mergeGrant(ChunkGrant value)
       The authority to read this plan's chunks, in place of a bearer token.
       
      .biopb.tensor.ChunkGrant grant = 2;
    • clearGrant

      public TicketStub.Builder clearGrant()
       The authority to read this plan's chunks, in place of a bearer token.
       
      .biopb.tensor.ChunkGrant grant = 2;
    • getGrantBuilder

      public ChunkGrant.Builder getGrantBuilder()
       The authority to read this plan's chunks, in place of a bearer token.
       
      .biopb.tensor.ChunkGrant grant = 2;
    • getGrantOrBuilder

      public ChunkGrantOrBuilder getGrantOrBuilder()
       The authority to read this plan's chunks, in place of a bearer token.
       
      .biopb.tensor.ChunkGrant grant = 2;
      Specified by:
      getGrantOrBuilder in interface TicketStubOrBuilder
    • setUnknownFields

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

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