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 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<OwnershipContext.Builder>
    • clear

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

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

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

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

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

      public OwnershipContext.Builder mergeFrom(OwnershipContext other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<OwnershipContext.Builder>
      Throws:
      IOException
    • getAccountId

      public String getAccountId()
       Account that owns this document.
       
      string account_id = 1 [json_name = "accountId"];
      Specified by:
      getAccountId in interface OwnershipContextOrBuilder
      Returns:
      The accountId.
    • getAccountIdBytes

      public com.google.protobuf.ByteString getAccountIdBytes()
       Account that owns this document.
       
      string account_id = 1 [json_name = "accountId"];
      Specified by:
      getAccountIdBytes in interface OwnershipContextOrBuilder
      Returns:
      The bytes for accountId.
    • setAccountId

      public OwnershipContext.Builder setAccountId(String value)
       Account that owns this document.
       
      string account_id = 1 [json_name = "accountId"];
      Parameters:
      value - The accountId to set.
      Returns:
      This builder for chaining.
    • clearAccountId

      public OwnershipContext.Builder clearAccountId()
       Account that owns this document.
       
      string account_id = 1 [json_name = "accountId"];
      Returns:
      This builder for chaining.
    • setAccountIdBytes

      public OwnershipContext.Builder setAccountIdBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getDatasourceId in interface OwnershipContextOrBuilder
      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:
      getDatasourceIdBytes in interface OwnershipContextOrBuilder
      Returns:
      The bytes for datasourceId.
    • setDatasourceId

      public OwnershipContext.Builder setDatasourceId(String value)
       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

      public OwnershipContext.Builder 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

      public OwnershipContext.Builder setDatasourceIdBytes(com.google.protobuf.ByteString value)
       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:
      hasConnectorId in interface OwnershipContextOrBuilder
      Returns:
      Whether the connectorId field is set.
    • getConnectorId

      public String 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:
      getConnectorId in interface OwnershipContextOrBuilder
      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:
      getConnectorIdBytes in interface OwnershipContextOrBuilder
      Returns:
      The bytes for connectorId.
    • setConnectorId

      public OwnershipContext.Builder setConnectorId(String value)
       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

      public OwnershipContext.Builder 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

      public OwnershipContext.Builder setConnectorIdBytes(com.google.protobuf.ByteString value)
       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.