Class DataSource.Builder

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

public static final class DataSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataSource.Builder> implements DataSourceOrBuilder
 DataSource represents an account's binding to a connector type.

 Each account can have one DataSource per connector type. The DataSource has
 its own API key and configuration, allowing per-account customization.
 Storage configuration is handled via Drive references (FilesystemService).
 
Protobuf type ai.pipestream.connector.intake.v1.DataSource
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public DataSource.Builder mergeFrom(DataSource other)
    • isInitialized

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

      public DataSource.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<DataSource.Builder>
      Throws:
      IOException
    • getDatasourceId

      public String getDatasourceId()
       Unique datasource identifier.
       Deterministic: hash(account_id + connector_id)
       
      string datasource_id = 1 [json_name = "datasourceId"];
      Specified by:
      getDatasourceId in interface DataSourceOrBuilder
      Returns:
      The datasourceId.
    • getDatasourceIdBytes

      public com.google.protobuf.ByteString getDatasourceIdBytes()
       Unique datasource identifier.
       Deterministic: hash(account_id + connector_id)
       
      string datasource_id = 1 [json_name = "datasourceId"];
      Specified by:
      getDatasourceIdBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for datasourceId.
    • setDatasourceId

      public DataSource.Builder setDatasourceId(String value)
       Unique datasource identifier.
       Deterministic: hash(account_id + connector_id)
       
      string datasource_id = 1 [json_name = "datasourceId"];
      Parameters:
      value - The datasourceId to set.
      Returns:
      This builder for chaining.
    • clearDatasourceId

      public DataSource.Builder clearDatasourceId()
       Unique datasource identifier.
       Deterministic: hash(account_id + connector_id)
       
      string datasource_id = 1 [json_name = "datasourceId"];
      Returns:
      This builder for chaining.
    • setDatasourceIdBytes

      public DataSource.Builder setDatasourceIdBytes(com.google.protobuf.ByteString value)
       Unique datasource identifier.
       Deterministic: hash(account_id + connector_id)
       
      string datasource_id = 1 [json_name = "datasourceId"];
      Parameters:
      value - The bytes for datasourceId to set.
      Returns:
      This builder for chaining.
    • getAccountId

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

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

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

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

      public DataSource.Builder setAccountIdBytes(com.google.protobuf.ByteString value)
       Account that owns this datasource.
       
      string account_id = 2 [json_name = "accountId"];
      Parameters:
      value - The bytes for accountId to set.
      Returns:
      This builder for chaining.
    • getConnectorId

      public String getConnectorId()
       Connector type this datasource uses.
       
      string connector_id = 3 [json_name = "connectorId"];
      Specified by:
      getConnectorId in interface DataSourceOrBuilder
      Returns:
      The connectorId.
    • getConnectorIdBytes

      public com.google.protobuf.ByteString getConnectorIdBytes()
       Connector type this datasource uses.
       
      string connector_id = 3 [json_name = "connectorId"];
      Specified by:
      getConnectorIdBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for connectorId.
    • setConnectorId

      public DataSource.Builder setConnectorId(String value)
       Connector type this datasource uses.
       
      string connector_id = 3 [json_name = "connectorId"];
      Parameters:
      value - The connectorId to set.
      Returns:
      This builder for chaining.
    • clearConnectorId

      public DataSource.Builder clearConnectorId()
       Connector type this datasource uses.
       
      string connector_id = 3 [json_name = "connectorId"];
      Returns:
      This builder for chaining.
    • setConnectorIdBytes

      public DataSource.Builder setConnectorIdBytes(com.google.protobuf.ByteString value)
       Connector type this datasource uses.
       
      string connector_id = 3 [json_name = "connectorId"];
      Parameters:
      value - The bytes for connectorId to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Human-readable datasource name.
       
      string name = 4 [json_name = "name"];
      Specified by:
      getName in interface DataSourceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Human-readable datasource name.
       
      string name = 4 [json_name = "name"];
      Specified by:
      getNameBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DataSource.Builder setName(String value)
       Human-readable datasource name.
       
      string name = 4 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DataSource.Builder clearName()
       Human-readable datasource name.
       
      string name = 4 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public DataSource.Builder setNameBytes(com.google.protobuf.ByteString value)
       Human-readable datasource name.
       
      string name = 4 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getApiKey

      public String getApiKey()
       Generated API key for authentication (hashed in storage, plaintext only on creation).
       
      string api_key = 5 [json_name = "apiKey"];
      Specified by:
      getApiKey in interface DataSourceOrBuilder
      Returns:
      The apiKey.
    • getApiKeyBytes

      public com.google.protobuf.ByteString getApiKeyBytes()
       Generated API key for authentication (hashed in storage, plaintext only on creation).
       
      string api_key = 5 [json_name = "apiKey"];
      Specified by:
      getApiKeyBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for apiKey.
    • setApiKey

      public DataSource.Builder setApiKey(String value)
       Generated API key for authentication (hashed in storage, plaintext only on creation).
       
      string api_key = 5 [json_name = "apiKey"];
      Parameters:
      value - The apiKey to set.
      Returns:
      This builder for chaining.
    • clearApiKey

      public DataSource.Builder clearApiKey()
       Generated API key for authentication (hashed in storage, plaintext only on creation).
       
      string api_key = 5 [json_name = "apiKey"];
      Returns:
      This builder for chaining.
    • setApiKeyBytes

      public DataSource.Builder setApiKeyBytes(com.google.protobuf.ByteString value)
       Generated API key for authentication (hashed in storage, plaintext only on creation).
       
      string api_key = 5 [json_name = "apiKey"];
      Parameters:
      value - The bytes for apiKey to set.
      Returns:
      This builder for chaining.
    • getDriveName

      public String getDriveName()
       Drive name for document storage (references Drive entity in FilesystemService).
       The Drive contains S3 bucket, KMS keys, and credentials via Infisical.
       
      string drive_name = 6 [json_name = "driveName"];
      Specified by:
      getDriveName in interface DataSourceOrBuilder
      Returns:
      The driveName.
    • getDriveNameBytes

      public com.google.protobuf.ByteString getDriveNameBytes()
       Drive name for document storage (references Drive entity in FilesystemService).
       The Drive contains S3 bucket, KMS keys, and credentials via Infisical.
       
      string drive_name = 6 [json_name = "driveName"];
      Specified by:
      getDriveNameBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for driveName.
    • setDriveName

      public DataSource.Builder setDriveName(String value)
       Drive name for document storage (references Drive entity in FilesystemService).
       The Drive contains S3 bucket, KMS keys, and credentials via Infisical.
       
      string drive_name = 6 [json_name = "driveName"];
      Parameters:
      value - The driveName to set.
      Returns:
      This builder for chaining.
    • clearDriveName

      public DataSource.Builder clearDriveName()
       Drive name for document storage (references Drive entity in FilesystemService).
       The Drive contains S3 bucket, KMS keys, and credentials via Infisical.
       
      string drive_name = 6 [json_name = "driveName"];
      Returns:
      This builder for chaining.
    • setDriveNameBytes

      public DataSource.Builder setDriveNameBytes(com.google.protobuf.ByteString value)
       Drive name for document storage (references Drive entity in FilesystemService).
       The Drive contains S3 bucket, KMS keys, and credentials via Infisical.
       
      string drive_name = 6 [json_name = "driveName"];
      Parameters:
      value - The bytes for driveName to set.
      Returns:
      This builder for chaining.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: DataSourceOrBuilder
       Metadata applied to all documents from this datasource.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataCount in interface DataSourceOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Metadata applied to all documents from this datasource.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
      Specified by:
      containsMetadata in interface DataSourceOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface DataSourceOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
       Metadata applied to all documents from this datasource.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataMap in interface DataSourceOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Metadata applied to all documents from this datasource.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataOrDefault in interface DataSourceOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Metadata applied to all documents from this datasource.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataOrThrow in interface DataSourceOrBuilder
    • clearMetadata

      public DataSource.Builder clearMetadata()
    • removeMetadata

      public DataSource.Builder removeMetadata(String key)
       Metadata applied to all documents from this datasource.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public DataSource.Builder putMetadata(String key, String value)
       Metadata applied to all documents from this datasource.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
    • putAllMetadata

      public DataSource.Builder putAllMetadata(Map<String,String> values)
       Metadata applied to all documents from this datasource.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
    • getMaxFileSize

      public long getMaxFileSize()
       Maximum file size allowed in bytes.
       
      int64 max_file_size = 8 [json_name = "maxFileSize"];
      Specified by:
      getMaxFileSize in interface DataSourceOrBuilder
      Returns:
      The maxFileSize.
    • setMaxFileSize

      public DataSource.Builder setMaxFileSize(long value)
       Maximum file size allowed in bytes.
       
      int64 max_file_size = 8 [json_name = "maxFileSize"];
      Parameters:
      value - The maxFileSize to set.
      Returns:
      This builder for chaining.
    • clearMaxFileSize

      public DataSource.Builder clearMaxFileSize()
       Maximum file size allowed in bytes.
       
      int64 max_file_size = 8 [json_name = "maxFileSize"];
      Returns:
      This builder for chaining.
    • getRateLimitPerMinute

      public long getRateLimitPerMinute()
       Rate limit for uploads per minute.
       
      int64 rate_limit_per_minute = 9 [json_name = "rateLimitPerMinute"];
      Specified by:
      getRateLimitPerMinute in interface DataSourceOrBuilder
      Returns:
      The rateLimitPerMinute.
    • setRateLimitPerMinute

      public DataSource.Builder setRateLimitPerMinute(long value)
       Rate limit for uploads per minute.
       
      int64 rate_limit_per_minute = 9 [json_name = "rateLimitPerMinute"];
      Parameters:
      value - The rateLimitPerMinute to set.
      Returns:
      This builder for chaining.
    • clearRateLimitPerMinute

      public DataSource.Builder clearRateLimitPerMinute()
       Rate limit for uploads per minute.
       
      int64 rate_limit_per_minute = 9 [json_name = "rateLimitPerMinute"];
      Returns:
      This builder for chaining.
    • getActive

      public boolean getActive()
       Whether this datasource is active.
       
      bool active = 10 [json_name = "active"];
      Specified by:
      getActive in interface DataSourceOrBuilder
      Returns:
      The active.
    • setActive

      public DataSource.Builder setActive(boolean value)
       Whether this datasource is active.
       
      bool active = 10 [json_name = "active"];
      Parameters:
      value - The active to set.
      Returns:
      This builder for chaining.
    • clearActive

      public DataSource.Builder clearActive()
       Whether this datasource is active.
       
      bool active = 10 [json_name = "active"];
      Returns:
      This builder for chaining.
    • hasCreatedAt

      public boolean hasCreatedAt()
       Timestamp when datasource was created.
       
      .google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"];
      Specified by:
      hasCreatedAt in interface DataSourceOrBuilder
      Returns:
      Whether the createdAt field is set.
    • getCreatedAt

      public com.google.protobuf.Timestamp getCreatedAt()
       Timestamp when datasource was created.
       
      .google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"];
      Specified by:
      getCreatedAt in interface DataSourceOrBuilder
      Returns:
      The createdAt.
    • setCreatedAt

      public DataSource.Builder setCreatedAt(com.google.protobuf.Timestamp value)
       Timestamp when datasource was created.
       
      .google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"];
    • setCreatedAt

      public DataSource.Builder setCreatedAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when datasource was created.
       
      .google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"];
    • mergeCreatedAt

      public DataSource.Builder mergeCreatedAt(com.google.protobuf.Timestamp value)
       Timestamp when datasource was created.
       
      .google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"];
    • clearCreatedAt

      public DataSource.Builder clearCreatedAt()
       Timestamp when datasource was created.
       
      .google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"];
    • getCreatedAtBuilder

      public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder()
       Timestamp when datasource was created.
       
      .google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"];
    • getCreatedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder()
       Timestamp when datasource was created.
       
      .google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"];
      Specified by:
      getCreatedAtOrBuilder in interface DataSourceOrBuilder
    • hasUpdatedAt

      public boolean hasUpdatedAt()
       Timestamp when datasource was last updated.
       
      .google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"];
      Specified by:
      hasUpdatedAt in interface DataSourceOrBuilder
      Returns:
      Whether the updatedAt field is set.
    • getUpdatedAt

      public com.google.protobuf.Timestamp getUpdatedAt()
       Timestamp when datasource was last updated.
       
      .google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"];
      Specified by:
      getUpdatedAt in interface DataSourceOrBuilder
      Returns:
      The updatedAt.
    • setUpdatedAt

      public DataSource.Builder setUpdatedAt(com.google.protobuf.Timestamp value)
       Timestamp when datasource was last updated.
       
      .google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"];
    • setUpdatedAt

      public DataSource.Builder setUpdatedAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when datasource was last updated.
       
      .google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"];
    • mergeUpdatedAt

      public DataSource.Builder mergeUpdatedAt(com.google.protobuf.Timestamp value)
       Timestamp when datasource was last updated.
       
      .google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"];
    • clearUpdatedAt

      public DataSource.Builder clearUpdatedAt()
       Timestamp when datasource was last updated.
       
      .google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"];
    • getUpdatedAtBuilder

      public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder()
       Timestamp when datasource was last updated.
       
      .google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"];
    • getUpdatedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder()
       Timestamp when datasource was last updated.
       
      .google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"];
      Specified by:
      getUpdatedAtOrBuilder in interface DataSourceOrBuilder