Class CreateDataSourceRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.connector.intake.v1.CreateDataSourceRequest
All Implemented Interfaces:
CreateDataSourceRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CreateDataSourceRequest extends com.google.protobuf.GeneratedMessage implements CreateDataSourceRequestOrBuilder
 Request to create a new datasource for an account.
 
Protobuf type ai.pipestream.connector.intake.v1.CreateDataSourceRequest
See Also:
  • Field Details

    • 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:
    • 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:
  • 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
    • getAccountId

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

      public com.google.protobuf.ByteString getAccountIdBytes()
       Account that will own this datasource.
       
      string account_id = 1 [json_name = "accountId"];
      Specified by:
      getAccountIdBytes in interface CreateDataSourceRequestOrBuilder
      Returns:
      The bytes for accountId.
    • getConnectorId

      public String getConnectorId()
       Connector type to bind (e.g., "s3", "file-crawler").
       
      string connector_id = 2 [json_name = "connectorId"];
      Specified by:
      getConnectorId in interface CreateDataSourceRequestOrBuilder
      Returns:
      The connectorId.
    • getConnectorIdBytes

      public com.google.protobuf.ByteString getConnectorIdBytes()
       Connector type to bind (e.g., "s3", "file-crawler").
       
      string connector_id = 2 [json_name = "connectorId"];
      Specified by:
      getConnectorIdBytes in interface CreateDataSourceRequestOrBuilder
      Returns:
      The bytes for connectorId.
    • getName

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

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

      public String getDriveName()
       Drive name for document storage (must exist, created via FilesystemService).
       
      string drive_name = 4 [json_name = "driveName"];
      Specified by:
      getDriveName in interface CreateDataSourceRequestOrBuilder
      Returns:
      The driveName.
    • getDriveNameBytes

      public com.google.protobuf.ByteString getDriveNameBytes()
       Drive name for document storage (must exist, created via FilesystemService).
       
      string drive_name = 4 [json_name = "driveName"];
      Specified by:
      getDriveNameBytes in interface CreateDataSourceRequestOrBuilder
      Returns:
      The bytes for driveName.
    • getMetadataCount

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

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

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

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

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

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

      public long getMaxFileSize()
       Maximum file size allowed in bytes (0 = no limit).
       
      int64 max_file_size = 6 [json_name = "maxFileSize"];
      Specified by:
      getMaxFileSize in interface CreateDataSourceRequestOrBuilder
      Returns:
      The maxFileSize.
    • getRateLimitPerMinute

      public long getRateLimitPerMinute()
       Rate limit for uploads per minute (0 = no limit).
       
      int64 rate_limit_per_minute = 7 [json_name = "rateLimitPerMinute"];
      Specified by:
      getRateLimitPerMinute in interface CreateDataSourceRequestOrBuilder
      Returns:
      The rateLimitPerMinute.
    • 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 CreateDataSourceRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateDataSourceRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateDataSourceRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateDataSourceRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateDataSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateDataSourceRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

      public static CreateDataSourceRequest.Builder newBuilder()
    • newBuilder

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

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

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

      public static CreateDataSourceRequest getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<CreateDataSourceRequest> 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 CreateDataSourceRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder