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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Account that owns this datasource.Whether this datasource is active.Generated API key for authentication (hashed in storage, plaintext only on creation).Connector type this datasource uses.Timestamp when datasource was created.Unique datasource identifier.Drive name for document storage (references Drive entity in FilesystemService).Maximum file size allowed in bytes.Human-readable datasource name.Rate limit for uploads per minute.Timestamp when datasource was last updated.booleancontainsMetadata(String key) Metadata applied to all documents from this datasource.Account that owns this datasource.com.google.protobuf.ByteStringAccount that owns this datasource.booleanWhether this datasource is active.Generated API key for authentication (hashed in storage, plaintext only on creation).com.google.protobuf.ByteStringGenerated API key for authentication (hashed in storage, plaintext only on creation).Connector type this datasource uses.com.google.protobuf.ByteStringConnector type this datasource uses.com.google.protobuf.TimestampTimestamp when datasource was created.com.google.protobuf.Timestamp.BuilderTimestamp when datasource was created.com.google.protobuf.TimestampOrBuilderTimestamp when datasource was created.Unique datasource identifier.com.google.protobuf.ByteStringUnique datasource identifier.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDrive name for document storage (references Drive entity in FilesystemService).com.google.protobuf.ByteStringDrive name for document storage (references Drive entity in FilesystemService).longMaximum file size allowed in bytes.Deprecated.intMetadata applied to all documents from this datasource.Metadata applied to all documents from this datasource.getMetadataOrDefault(String key, String defaultValue) Metadata applied to all documents from this datasource.getMetadataOrThrow(String key) Metadata applied to all documents from this datasource.Deprecated.getName()Human-readable datasource name.com.google.protobuf.ByteStringHuman-readable datasource name.longRate limit for uploads per minute.com.google.protobuf.TimestampTimestamp when datasource was last updated.com.google.protobuf.Timestamp.BuilderTimestamp when datasource was last updated.com.google.protobuf.TimestampOrBuilderTimestamp when datasource was last updated.booleanTimestamp when datasource was created.booleanTimestamp when datasource was last updated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreatedAt(com.google.protobuf.Timestamp value) Timestamp when datasource was created.mergeFrom(DataSource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdatedAt(com.google.protobuf.Timestamp value) Timestamp when datasource was last updated.putAllMetadata(Map<String, String> values) Metadata applied to all documents from this datasource.putMetadata(String key, String value) Metadata applied to all documents from this datasource.removeMetadata(String key) Metadata applied to all documents from this datasource.setAccountId(String value) Account that owns this datasource.setAccountIdBytes(com.google.protobuf.ByteString value) Account that owns this datasource.setActive(boolean value) Whether this datasource is active.Generated API key for authentication (hashed in storage, plaintext only on creation).setApiKeyBytes(com.google.protobuf.ByteString value) Generated API key for authentication (hashed in storage, plaintext only on creation).setConnectorId(String value) Connector type this datasource uses.setConnectorIdBytes(com.google.protobuf.ByteString value) Connector type this datasource uses.setCreatedAt(com.google.protobuf.Timestamp value) Timestamp when datasource was created.setCreatedAt(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp when datasource was created.setDatasourceId(String value) Unique datasource identifier.setDatasourceIdBytes(com.google.protobuf.ByteString value) Unique datasource identifier.setDriveName(String value) Drive name for document storage (references Drive entity in FilesystemService).setDriveNameBytes(com.google.protobuf.ByteString value) Drive name for document storage (references Drive entity in FilesystemService).setMaxFileSize(long value) Maximum file size allowed in bytes.Human-readable datasource name.setNameBytes(com.google.protobuf.ByteString value) Human-readable datasource name.setRateLimitPerMinute(long value) Rate limit for uploads per minute.setUpdatedAt(com.google.protobuf.Timestamp value) Timestamp when datasource was last updated.setUpdatedAt(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp when datasource was last updated.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataSource.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<DataSource.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<DataSource.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<DataSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataSource.Builder>- Throws:
IOException
-
getDatasourceId
Unique datasource identifier. Deterministic: hash(account_id + connector_id)
string datasource_id = 1 [json_name = "datasourceId"];- Specified by:
getDatasourceIdin interfaceDataSourceOrBuilder- 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:
getDatasourceIdBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for datasourceId.
-
setDatasourceId
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
Unique datasource identifier. Deterministic: hash(account_id + connector_id)
string datasource_id = 1 [json_name = "datasourceId"];- Returns:
- This builder for chaining.
-
setDatasourceIdBytes
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
Account that owns this datasource.
string account_id = 2 [json_name = "accountId"];- Specified by:
getAccountIdin interfaceDataSourceOrBuilder- Returns:
- The accountId.
-
getAccountIdBytes
public com.google.protobuf.ByteString getAccountIdBytes()Account that owns this datasource.
string account_id = 2 [json_name = "accountId"];- Specified by:
getAccountIdBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for accountId.
-
setAccountId
Account that owns this datasource.
string account_id = 2 [json_name = "accountId"];- Parameters:
value- The accountId to set.- Returns:
- This builder for chaining.
-
clearAccountId
Account that owns this datasource.
string account_id = 2 [json_name = "accountId"];- Returns:
- This builder for chaining.
-
setAccountIdBytes
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
Connector type this datasource uses.
string connector_id = 3 [json_name = "connectorId"];- Specified by:
getConnectorIdin interfaceDataSourceOrBuilder- Returns:
- The connectorId.
-
getConnectorIdBytes
public com.google.protobuf.ByteString getConnectorIdBytes()Connector type this datasource uses.
string connector_id = 3 [json_name = "connectorId"];- Specified by:
getConnectorIdBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for connectorId.
-
setConnectorId
Connector type this datasource uses.
string connector_id = 3 [json_name = "connectorId"];- Parameters:
value- The connectorId to set.- Returns:
- This builder for chaining.
-
clearConnectorId
Connector type this datasource uses.
string connector_id = 3 [json_name = "connectorId"];- Returns:
- This builder for chaining.
-
setConnectorIdBytes
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
Human-readable datasource name.
string name = 4 [json_name = "name"];- Specified by:
getNamein interfaceDataSourceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Human-readable datasource name.
string name = 4 [json_name = "name"];- Specified by:
getNameBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for name.
-
setName
Human-readable datasource name.
string name = 4 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Human-readable datasource name.
string name = 4 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
Human-readable datasource name.
string name = 4 [json_name = "name"];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getApiKey
Generated API key for authentication (hashed in storage, plaintext only on creation).
string api_key = 5 [json_name = "apiKey"];- Specified by:
getApiKeyin interfaceDataSourceOrBuilder- 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:
getApiKeyBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for apiKey.
-
setApiKey
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
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
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
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:
getDriveNamein interfaceDataSourceOrBuilder- 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:
getDriveNameBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for driveName.
-
setDriveName
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
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
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:DataSourceOrBuilderMetadata applied to all documents from this datasource.
map<string, string> metadata = 7 [json_name = "metadata"];- Specified by:
getMetadataCountin interfaceDataSourceOrBuilder
-
containsMetadata
Metadata applied to all documents from this datasource.
map<string, string> metadata = 7 [json_name = "metadata"];- Specified by:
containsMetadatain interfaceDataSourceOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceDataSourceOrBuilder
-
getMetadataMap
Metadata applied to all documents from this datasource.
map<string, string> metadata = 7 [json_name = "metadata"];- Specified by:
getMetadataMapin interfaceDataSourceOrBuilder
-
getMetadataOrDefault
Metadata applied to all documents from this datasource.
map<string, string> metadata = 7 [json_name = "metadata"];- Specified by:
getMetadataOrDefaultin interfaceDataSourceOrBuilder
-
getMetadataOrThrow
Metadata applied to all documents from this datasource.
map<string, string> metadata = 7 [json_name = "metadata"];- Specified by:
getMetadataOrThrowin interfaceDataSourceOrBuilder
-
clearMetadata
-
removeMetadata
Metadata applied to all documents from this datasource.
map<string, string> metadata = 7 [json_name = "metadata"]; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
Metadata applied to all documents from this datasource.
map<string, string> metadata = 7 [json_name = "metadata"]; -
putAllMetadata
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:
getMaxFileSizein interfaceDataSourceOrBuilder- Returns:
- The maxFileSize.
-
setMaxFileSize
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
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:
getRateLimitPerMinutein interfaceDataSourceOrBuilder- Returns:
- The rateLimitPerMinute.
-
setRateLimitPerMinute
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
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:
getActivein interfaceDataSourceOrBuilder- Returns:
- The active.
-
setActive
Whether this datasource is active.
bool active = 10 [json_name = "active"];- Parameters:
value- The active to set.- Returns:
- This builder for chaining.
-
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:
hasCreatedAtin interfaceDataSourceOrBuilder- 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:
getCreatedAtin interfaceDataSourceOrBuilder- Returns:
- The createdAt.
-
setCreatedAt
Timestamp when datasource was created.
.google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"]; -
setCreatedAt
Timestamp when datasource was created.
.google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"]; -
mergeCreatedAt
Timestamp when datasource was created.
.google.protobuf.Timestamp created_at = 11 [json_name = "createdAt"]; -
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:
getCreatedAtOrBuilderin interfaceDataSourceOrBuilder
-
hasUpdatedAt
public boolean hasUpdatedAt()Timestamp when datasource was last updated.
.google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"];- Specified by:
hasUpdatedAtin interfaceDataSourceOrBuilder- 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:
getUpdatedAtin interfaceDataSourceOrBuilder- Returns:
- The updatedAt.
-
setUpdatedAt
Timestamp when datasource was last updated.
.google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"]; -
setUpdatedAt
Timestamp when datasource was last updated.
.google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"]; -
mergeUpdatedAt
Timestamp when datasource was last updated.
.google.protobuf.Timestamp updated_at = 12 [json_name = "updatedAt"]; -
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:
getUpdatedAtOrBuilderin interfaceDataSourceOrBuilder
-