Class UploadBlobRequest

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

@Generated public final class UploadBlobRequest extends com.google.protobuf.GeneratedMessage implements UploadBlobRequestOrBuilder
 Request to upload raw file content with minimal metadata.

 Simple path for basic file uploads where the service constructs the PipeDoc wrapper.
 
Protobuf type ai.pipestream.connector.intake.v1.UploadBlobRequest
See Also:
  • Field Details

  • 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()
       DataSource identifier (deterministic: hash of account_id + connector_id).
       
      string datasource_id = 1 [json_name = "datasourceId"];
      Specified by:
      getDatasourceId in interface UploadBlobRequestOrBuilder
      Returns:
      The datasourceId.
    • getDatasourceIdBytes

      public com.google.protobuf.ByteString getDatasourceIdBytes()
       DataSource identifier (deterministic: hash of account_id + connector_id).
       
      string datasource_id = 1 [json_name = "datasourceId"];
      Specified by:
      getDatasourceIdBytes in interface UploadBlobRequestOrBuilder
      Returns:
      The bytes for datasourceId.
    • getApiKey

      public String getApiKey()
       API key for authentication.
       
      string api_key = 2 [json_name = "apiKey"];
      Specified by:
      getApiKey in interface UploadBlobRequestOrBuilder
      Returns:
      The apiKey.
    • getApiKeyBytes

      public com.google.protobuf.ByteString getApiKeyBytes()
       API key for authentication.
       
      string api_key = 2 [json_name = "apiKey"];
      Specified by:
      getApiKeyBytes in interface UploadBlobRequestOrBuilder
      Returns:
      The bytes for apiKey.
    • getSessionId

      public String getSessionId()
       Optional session ID for grouping related uploads.
       
      string session_id = 3 [json_name = "sessionId"];
      Specified by:
      getSessionId in interface UploadBlobRequestOrBuilder
      Returns:
      The sessionId.
    • getSessionIdBytes

      public com.google.protobuf.ByteString getSessionIdBytes()
       Optional session ID for grouping related uploads.
       
      string session_id = 3 [json_name = "sessionId"];
      Specified by:
      getSessionIdBytes in interface UploadBlobRequestOrBuilder
      Returns:
      The bytes for sessionId.
    • getFilename

      public String getFilename()
       Original filename.
       
      string filename = 4 [json_name = "filename"];
      Specified by:
      getFilename in interface UploadBlobRequestOrBuilder
      Returns:
      The filename.
    • getFilenameBytes

      public com.google.protobuf.ByteString getFilenameBytes()
       Original filename.
       
      string filename = 4 [json_name = "filename"];
      Specified by:
      getFilenameBytes in interface UploadBlobRequestOrBuilder
      Returns:
      The bytes for filename.
    • getMimeType

      public String getMimeType()
       MIME type of the content.
       
      string mime_type = 5 [json_name = "mimeType"];
      Specified by:
      getMimeType in interface UploadBlobRequestOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       MIME type of the content.
       
      string mime_type = 5 [json_name = "mimeType"];
      Specified by:
      getMimeTypeBytes in interface UploadBlobRequestOrBuilder
      Returns:
      The bytes for mimeType.
    • getPath

      public String getPath()
       Virtual path in the datasource's namespace (e.g., "/folder/file.txt").
       
      string path = 6 [json_name = "path"];
      Specified by:
      getPath in interface UploadBlobRequestOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Virtual path in the datasource's namespace (e.g., "/folder/file.txt").
       
      string path = 6 [json_name = "path"];
      Specified by:
      getPathBytes in interface UploadBlobRequestOrBuilder
      Returns:
      The bytes for path.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: UploadBlobRequestOrBuilder
       Additional metadata key-value pairs.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataCount in interface UploadBlobRequestOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Additional metadata key-value pairs.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
      Specified by:
      containsMetadata in interface UploadBlobRequestOrBuilder
    • getMetadata

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

      public Map<String,String> getMetadataMap()
       Additional metadata key-value pairs.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataMap in interface UploadBlobRequestOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Additional metadata key-value pairs.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataOrDefault in interface UploadBlobRequestOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Additional metadata key-value pairs.
       
      map<string, string> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataOrThrow in interface UploadBlobRequestOrBuilder
    • getContent

      public com.google.protobuf.ByteString getContent()
       Raw file content (up to 2GB).
       
      bytes content = 8 [json_name = "content"];
      Specified by:
      getContent in interface UploadBlobRequestOrBuilder
      Returns:
      The content.
    • getSourceDocId

      public String getSourceDocId()
       Source document identifier from the origin system.
       Used to generate deterministic doc_id: hash(datasource_id + source_doc_id)
       If not provided, path or filename will be used.
       
      string source_doc_id = 9 [json_name = "sourceDocId"];
      Specified by:
      getSourceDocId in interface UploadBlobRequestOrBuilder
      Returns:
      The sourceDocId.
    • getSourceDocIdBytes

      public com.google.protobuf.ByteString getSourceDocIdBytes()
       Source document identifier from the origin system.
       Used to generate deterministic doc_id: hash(datasource_id + source_doc_id)
       If not provided, path or filename will be used.
       
      string source_doc_id = 9 [json_name = "sourceDocId"];
      Specified by:
      getSourceDocIdBytes in interface UploadBlobRequestOrBuilder
      Returns:
      The bytes for sourceDocId.
    • 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 UploadBlobRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static UploadBlobRequest.Builder newBuilder()
    • newBuilder

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

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

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

      public static UploadBlobRequest getDefaultInstance()
    • parser

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

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