Package ai.pipestream.data.v1
Class OwnershipContext.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OwnershipContext.Builder>
com.google.protobuf.GeneratedMessage.Builder<OwnershipContext.Builder>
ai.pipestream.data.v1.OwnershipContext.Builder
- All Implemented Interfaces:
OwnershipContextOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
OwnershipContext
public static final class OwnershipContext.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OwnershipContext.Builder>
implements OwnershipContextOrBuilder
Ownership context for a document. Tracks which account and datasource created or owns this document. Essential for security auditing, access control, and traceability.Protobuf type
ai.pipestream.data.v1.OwnershipContext-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Account that owns this document.Connector type that created this document (e.g., "s3", "file-crawler").DataSource (account + connector type binding) that produced this document.Account that owns this document.com.google.protobuf.ByteStringAccount that owns this document.Connector type that created this document (e.g., "s3", "file-crawler").com.google.protobuf.ByteStringConnector type that created this document (e.g., "s3", "file-crawler").DataSource (account + connector type binding) that produced this document.com.google.protobuf.ByteStringDataSource (account + connector type binding) that produced this document.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanConnector type that created this document (e.g., "s3", "file-crawler").protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(OwnershipContext other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAccountId(String value) Account that owns this document.setAccountIdBytes(com.google.protobuf.ByteString value) Account that owns this document.setConnectorId(String value) Connector type that created this document (e.g., "s3", "file-crawler").setConnectorIdBytes(com.google.protobuf.ByteString value) Connector type that created this document (e.g., "s3", "file-crawler").setDatasourceId(String value) DataSource (account + connector type binding) that produced this document.setDatasourceIdBytes(com.google.protobuf.ByteString value) DataSource (account + connector type binding) that produced this document.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<OwnershipContext.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<OwnershipContext.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<OwnershipContext.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<OwnershipContext.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OwnershipContext.Builder>
-
mergeFrom
public OwnershipContext.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<OwnershipContext.Builder>- Throws:
IOException
-
getAccountId
Account that owns this document.
string account_id = 1 [json_name = "accountId"];- Specified by:
getAccountIdin interfaceOwnershipContextOrBuilder- Returns:
- The accountId.
-
getAccountIdBytes
public com.google.protobuf.ByteString getAccountIdBytes()Account that owns this document.
string account_id = 1 [json_name = "accountId"];- Specified by:
getAccountIdBytesin interfaceOwnershipContextOrBuilder- Returns:
- The bytes for accountId.
-
setAccountId
Account that owns this document.
string account_id = 1 [json_name = "accountId"];- Parameters:
value- The accountId to set.- Returns:
- This builder for chaining.
-
clearAccountId
Account that owns this document.
string account_id = 1 [json_name = "accountId"];- Returns:
- This builder for chaining.
-
setAccountIdBytes
Account that owns this document.
string account_id = 1 [json_name = "accountId"];- Parameters:
value- The bytes for accountId to set.- Returns:
- This builder for chaining.
-
getDatasourceId
DataSource (account + connector type binding) that produced this document. Deterministic: hash(account_id + connector_id)
string datasource_id = 2 [json_name = "datasourceId"];- Specified by:
getDatasourceIdin interfaceOwnershipContextOrBuilder- Returns:
- The datasourceId.
-
getDatasourceIdBytes
public com.google.protobuf.ByteString getDatasourceIdBytes()DataSource (account + connector type binding) that produced this document. Deterministic: hash(account_id + connector_id)
string datasource_id = 2 [json_name = "datasourceId"];- Specified by:
getDatasourceIdBytesin interfaceOwnershipContextOrBuilder- Returns:
- The bytes for datasourceId.
-
setDatasourceId
DataSource (account + connector type binding) that produced this document. Deterministic: hash(account_id + connector_id)
string datasource_id = 2 [json_name = "datasourceId"];- Parameters:
value- The datasourceId to set.- Returns:
- This builder for chaining.
-
clearDatasourceId
DataSource (account + connector type binding) that produced this document. Deterministic: hash(account_id + connector_id)
string datasource_id = 2 [json_name = "datasourceId"];- Returns:
- This builder for chaining.
-
setDatasourceIdBytes
DataSource (account + connector type binding) that produced this document. Deterministic: hash(account_id + connector_id)
string datasource_id = 2 [json_name = "datasourceId"];- Parameters:
value- The bytes for datasourceId to set.- Returns:
- This builder for chaining.
-
hasConnectorId
public boolean hasConnectorId()Connector type that created this document (e.g., "s3", "file-crawler"). Optional since it's derivable from datasource, but useful for filtering.
optional string connector_id = 3 [json_name = "connectorId"];- Specified by:
hasConnectorIdin interfaceOwnershipContextOrBuilder- Returns:
- Whether the connectorId field is set.
-
getConnectorId
Connector type that created this document (e.g., "s3", "file-crawler"). Optional since it's derivable from datasource, but useful for filtering.
optional string connector_id = 3 [json_name = "connectorId"];- Specified by:
getConnectorIdin interfaceOwnershipContextOrBuilder- Returns:
- The connectorId.
-
getConnectorIdBytes
public com.google.protobuf.ByteString getConnectorIdBytes()Connector type that created this document (e.g., "s3", "file-crawler"). Optional since it's derivable from datasource, but useful for filtering.
optional string connector_id = 3 [json_name = "connectorId"];- Specified by:
getConnectorIdBytesin interfaceOwnershipContextOrBuilder- Returns:
- The bytes for connectorId.
-
setConnectorId
Connector type that created this document (e.g., "s3", "file-crawler"). Optional since it's derivable from datasource, but useful for filtering.
optional string connector_id = 3 [json_name = "connectorId"];- Parameters:
value- The connectorId to set.- Returns:
- This builder for chaining.
-
clearConnectorId
Connector type that created this document (e.g., "s3", "file-crawler"). Optional since it's derivable from datasource, but useful for filtering.
optional string connector_id = 3 [json_name = "connectorId"];- Returns:
- This builder for chaining.
-
setConnectorIdBytes
Connector type that created this document (e.g., "s3", "file-crawler"). Optional since it's derivable from datasource, but useful for filtering.
optional string connector_id = 3 [json_name = "connectorId"];- Parameters:
value- The bytes for connectorId to set.- Returns:
- This builder for chaining.
-