Class DocumentReference.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DocumentReference.Builder>
com.google.protobuf.GeneratedMessage.Builder<DocumentReference.Builder>
ai.pipestream.data.v1.DocumentReference.Builder
All Implemented Interfaces:
DocumentReferenceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DocumentReference

public static final class DocumentReference.Builder extends com.google.protobuf.GeneratedMessage.Builder<DocumentReference.Builder> implements DocumentReferenceOrBuilder
 Reference to a document stored in the repository (S3 offload).

 Used when the full PipeDoc is stored in S3/repository and only a reference
 is needed in the stream for efficient message passing.
 Engine uses this to hydrate the document via repo-service.
 
Protobuf type ai.pipestream.data.v1.DocumentReference
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DocumentReference.Builder>
    • clear

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

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

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

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

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

      public DocumentReference.Builder mergeFrom(DocumentReference other)
    • isInitialized

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

      public DocumentReference.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<DocumentReference.Builder>
      Throws:
      IOException
    • getDocId

      public String getDocId()
       Document identifier.
      
       The logical document identifier that persists across all versions/hops.
       Deterministic: hash(datasource_id + source_doc_id)
       
      string doc_id = 1 [json_name = "docId"];
      Specified by:
      getDocId in interface DocumentReferenceOrBuilder
      Returns:
      The docId.
    • getDocIdBytes

      public com.google.protobuf.ByteString getDocIdBytes()
       Document identifier.
      
       The logical document identifier that persists across all versions/hops.
       Deterministic: hash(datasource_id + source_doc_id)
       
      string doc_id = 1 [json_name = "docId"];
      Specified by:
      getDocIdBytes in interface DocumentReferenceOrBuilder
      Returns:
      The bytes for docId.
    • setDocId

      public DocumentReference.Builder setDocId(String value)
       Document identifier.
      
       The logical document identifier that persists across all versions/hops.
       Deterministic: hash(datasource_id + source_doc_id)
       
      string doc_id = 1 [json_name = "docId"];
      Parameters:
      value - The docId to set.
      Returns:
      This builder for chaining.
    • clearDocId

      public DocumentReference.Builder clearDocId()
       Document identifier.
      
       The logical document identifier that persists across all versions/hops.
       Deterministic: hash(datasource_id + source_doc_id)
       
      string doc_id = 1 [json_name = "docId"];
      Returns:
      This builder for chaining.
    • setDocIdBytes

      public DocumentReference.Builder setDocIdBytes(com.google.protobuf.ByteString value)
       Document identifier.
      
       The logical document identifier that persists across all versions/hops.
       Deterministic: hash(datasource_id + source_doc_id)
       
      string doc_id = 1 [json_name = "docId"];
      Parameters:
      value - The bytes for docId to set.
      Returns:
      This builder for chaining.
    • getSourceNodeId

      public String getSourceNodeId()
       Node that produced this version (determines storage location).
      
       Identifies exactly which node produced the version of the document being referenced.
       This is critical for fetching the correct state from the Repository.
       
      string source_node_id = 2 [json_name = "sourceNodeId"];
      Specified by:
      getSourceNodeId in interface DocumentReferenceOrBuilder
      Returns:
      The sourceNodeId.
    • getSourceNodeIdBytes

      public com.google.protobuf.ByteString getSourceNodeIdBytes()
       Node that produced this version (determines storage location).
      
       Identifies exactly which node produced the version of the document being referenced.
       This is critical for fetching the correct state from the Repository.
       
      string source_node_id = 2 [json_name = "sourceNodeId"];
      Specified by:
      getSourceNodeIdBytes in interface DocumentReferenceOrBuilder
      Returns:
      The bytes for sourceNodeId.
    • setSourceNodeId

      public DocumentReference.Builder setSourceNodeId(String value)
       Node that produced this version (determines storage location).
      
       Identifies exactly which node produced the version of the document being referenced.
       This is critical for fetching the correct state from the Repository.
       
      string source_node_id = 2 [json_name = "sourceNodeId"];
      Parameters:
      value - The sourceNodeId to set.
      Returns:
      This builder for chaining.
    • clearSourceNodeId

      public DocumentReference.Builder clearSourceNodeId()
       Node that produced this version (determines storage location).
      
       Identifies exactly which node produced the version of the document being referenced.
       This is critical for fetching the correct state from the Repository.
       
      string source_node_id = 2 [json_name = "sourceNodeId"];
      Returns:
      This builder for chaining.
    • setSourceNodeIdBytes

      public DocumentReference.Builder setSourceNodeIdBytes(com.google.protobuf.ByteString value)
       Node that produced this version (determines storage location).
      
       Identifies exactly which node produced the version of the document being referenced.
       This is critical for fetching the correct state from the Repository.
       
      string source_node_id = 2 [json_name = "sourceNodeId"];
      Parameters:
      value - The bytes for sourceNodeId to set.
      Returns:
      This builder for chaining.
    • getAccountId

      public String getAccountId()
       Account context for multi-tenant lookup.
      
       Ensures that hydration requests are scoped to the correct tenant,
       preventing cross-account data access.
       
      string account_id = 3 [json_name = "accountId"];
      Specified by:
      getAccountId in interface DocumentReferenceOrBuilder
      Returns:
      The accountId.
    • getAccountIdBytes

      public com.google.protobuf.ByteString getAccountIdBytes()
       Account context for multi-tenant lookup.
      
       Ensures that hydration requests are scoped to the correct tenant,
       preventing cross-account data access.
       
      string account_id = 3 [json_name = "accountId"];
      Specified by:
      getAccountIdBytes in interface DocumentReferenceOrBuilder
      Returns:
      The bytes for accountId.
    • setAccountId

      public DocumentReference.Builder setAccountId(String value)
       Account context for multi-tenant lookup.
      
       Ensures that hydration requests are scoped to the correct tenant,
       preventing cross-account data access.
       
      string account_id = 3 [json_name = "accountId"];
      Parameters:
      value - The accountId to set.
      Returns:
      This builder for chaining.
    • clearAccountId

      public DocumentReference.Builder clearAccountId()
       Account context for multi-tenant lookup.
      
       Ensures that hydration requests are scoped to the correct tenant,
       preventing cross-account data access.
       
      string account_id = 3 [json_name = "accountId"];
      Returns:
      This builder for chaining.
    • setAccountIdBytes

      public DocumentReference.Builder setAccountIdBytes(com.google.protobuf.ByteString value)
       Account context for multi-tenant lookup.
      
       Ensures that hydration requests are scoped to the correct tenant,
       preventing cross-account data access.
       
      string account_id = 3 [json_name = "accountId"];
      Parameters:
      value - The bytes for accountId to set.
      Returns:
      This builder for chaining.