Class DataSource
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.connector.intake.v1.DataSource
- All Implemented Interfaces:
DataSourceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class DataSource
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDataSource represents an account's binding to a connector type.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) Metadata applied to all documents from this datasource.booleanAccount 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.TimestampOrBuilderTimestamp when datasource was created.Unique datasource identifier.com.google.protobuf.ByteStringUnique datasource identifier.static DataSourcestatic final com.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.getName()Human-readable datasource name.com.google.protobuf.ByteStringHuman-readable datasource name.com.google.protobuf.Parser<DataSource> longRate limit for uploads per minute.intcom.google.protobuf.TimestampTimestamp when datasource was last updated.com.google.protobuf.TimestampOrBuilderTimestamp when datasource was last updated.booleanTimestamp when datasource was created.inthashCode()booleanTimestamp when datasource was last updated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic DataSource.Builderstatic DataSource.BuildernewBuilder(DataSource prototype) protected DataSource.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DataSourceparseDelimitedFrom(InputStream input) static DataSourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataSourceparseFrom(byte[] data) static DataSourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataSourceparseFrom(com.google.protobuf.ByteString data) static DataSourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataSourceparseFrom(com.google.protobuf.CodedInputStream input) static DataSourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataSourceparseFrom(InputStream input) static DataSourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataSourceparseFrom(ByteBuffer data) static DataSourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DataSource> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DATASOURCE_ID_FIELD_NUMBER
public static final int DATASOURCE_ID_FIELD_NUMBER- See Also:
-
ACCOUNT_ID_FIELD_NUMBER
public static final int ACCOUNT_ID_FIELD_NUMBER- See Also:
-
CONNECTOR_ID_FIELD_NUMBER
public static final int CONNECTOR_ID_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
API_KEY_FIELD_NUMBER
public static final int API_KEY_FIELD_NUMBER- See Also:
-
DRIVE_NAME_FIELD_NUMBER
public static final int DRIVE_NAME_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
MAX_FILE_SIZE_FIELD_NUMBER
public static final int MAX_FILE_SIZE_FIELD_NUMBER- See Also:
-
RATE_LIMIT_PER_MINUTE_FIELD_NUMBER
public static final int RATE_LIMIT_PER_MINUTE_FIELD_NUMBER- See Also:
-
ACTIVE_FIELD_NUMBER
public static final int ACTIVE_FIELD_NUMBER- See Also:
-
CREATED_AT_FIELD_NUMBER
public static final int CREATED_AT_FIELD_NUMBER- See Also:
-
UPDATED_AT_FIELD_NUMBER
public static final int UPDATED_AT_FIELD_NUMBER- See Also:
-
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
getActive
public boolean getActive()Whether this datasource is active.
bool active = 10 [json_name = "active"];- Specified by:
getActivein interfaceDataSourceOrBuilder- Returns:
- The active.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DataSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DataSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DataSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DataSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DataSource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-