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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    DataSource 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.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Metadata applied to all documents from this datasource.
    boolean
     
    Account that owns this datasource.
    com.google.protobuf.ByteString
    Account that owns this datasource.
    boolean
    Whether this datasource is active.
    Generated API key for authentication (hashed in storage, plaintext only on creation).
    com.google.protobuf.ByteString
    Generated API key for authentication (hashed in storage, plaintext only on creation).
    Connector type this datasource uses.
    com.google.protobuf.ByteString
    Connector type this datasource uses.
    com.google.protobuf.Timestamp
    Timestamp when datasource was created.
    com.google.protobuf.TimestampOrBuilder
    Timestamp when datasource was created.
    Unique datasource identifier.
    com.google.protobuf.ByteString
    Unique datasource identifier.
    static DataSource
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Drive name for document storage (references Drive entity in FilesystemService).
    com.google.protobuf.ByteString
    Drive name for document storage (references Drive entity in FilesystemService).
    long
    Maximum file size allowed in bytes.
    Deprecated.
    int
    Metadata 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.
    Metadata applied to all documents from this datasource.
    Human-readable datasource name.
    com.google.protobuf.ByteString
    Human-readable datasource name.
    com.google.protobuf.Parser<DataSource>
     
    long
    Rate limit for uploads per minute.
    int
     
    com.google.protobuf.Timestamp
    Timestamp when datasource was last updated.
    com.google.protobuf.TimestampOrBuilder
    Timestamp when datasource was last updated.
    boolean
    Timestamp when datasource was created.
    int
     
    boolean
    Timestamp when datasource was last updated.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static DataSource
     
    static DataSource
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static DataSource
    parseFrom(byte[] data)
     
    static DataSource
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static DataSource
    parseFrom(com.google.protobuf.ByteString data)
     
    static DataSource
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static DataSource
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static DataSource
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static DataSource
     
    static DataSource
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static DataSource
     
    static DataSource
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<DataSource>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods 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:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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.
    • 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.
    • getActive

      public boolean getActive()
       Whether this datasource is active.
       
      bool active = 10 [json_name = "active"];
      Specified by:
      getActive in interface DataSourceOrBuilder
      Returns:
      The active.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static DataSource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataSource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static DataSource.Builder newBuilder()
    • newBuilder

      public static DataSource.Builder newBuilder(DataSource prototype)
    • toBuilder

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

      protected DataSource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DataSource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DataSource> parser()
    • getParserForType

      public com.google.protobuf.Parser<DataSource> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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