Package ai.pipestream.data.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Account context for multi-tenant lookup.Document identifier.Node that produced this version (determines storage location).Account context for multi-tenant lookup.com.google.protobuf.ByteStringAccount context for multi-tenant lookup.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDocId()Document identifier.com.google.protobuf.ByteStringDocument identifier.Node that produced this version (determines storage location).com.google.protobuf.ByteStringNode that produced this version (determines storage location).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DocumentReference other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAccountId(String value) Account context for multi-tenant lookup.setAccountIdBytes(com.google.protobuf.ByteString value) Account context for multi-tenant lookup.Document identifier.setDocIdBytes(com.google.protobuf.ByteString value) Document identifier.setSourceNodeId(String value) Node that produced this version (determines storage location).setSourceNodeIdBytes(com.google.protobuf.ByteString value) Node that produced this version (determines storage location).Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DocumentReference.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DocumentReference.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DocumentReference.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DocumentReference.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DocumentReference.Builder>- Throws:
IOException
-
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:
getDocIdin interfaceDocumentReferenceOrBuilder- 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:
getDocIdBytesin interfaceDocumentReferenceOrBuilder- Returns:
- The bytes for docId.
-
setDocId
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
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
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
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:
getSourceNodeIdin interfaceDocumentReferenceOrBuilder- 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:
getSourceNodeIdBytesin interfaceDocumentReferenceOrBuilder- Returns:
- The bytes for sourceNodeId.
-
setSourceNodeId
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
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
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
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:
getAccountIdin interfaceDocumentReferenceOrBuilder- 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:
getAccountIdBytesin interfaceDocumentReferenceOrBuilder- Returns:
- The bytes for accountId.
-
setAccountId
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
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
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.
-