Class UploadChunkRequest

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

@Generated public final class UploadChunkRequest extends com.google.protobuf.GeneratedMessage implements UploadChunkRequestOrBuilder
 Upload a single chunk of a file
 Auth: connector-id and api-key sent in gRPC metadata headers
 
Protobuf type ai.pipestream.connector.intake.v1.UploadChunkRequest
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
    • getCrawlId

      public String getCrawlId()
       Identity (connector-id from gRPC metadata)
       
      string crawl_id = 1 [json_name = "crawlId"];
      Specified by:
      getCrawlId in interface UploadChunkRequestOrBuilder
      Returns:
      The crawlId.
    • getCrawlIdBytes

      public com.google.protobuf.ByteString getCrawlIdBytes()
       Identity (connector-id from gRPC metadata)
       
      string crawl_id = 1 [json_name = "crawlId"];
      Specified by:
      getCrawlIdBytes in interface UploadChunkRequestOrBuilder
      Returns:
      The bytes for crawlId.
    • getFileId

      public String getFileId()
       Unique identifier for this file
       
      string file_id = 2 [json_name = "fileId"];
      Specified by:
      getFileId in interface UploadChunkRequestOrBuilder
      Returns:
      The fileId.
    • getFileIdBytes

      public com.google.protobuf.ByteString getFileIdBytes()
       Unique identifier for this file
       
      string file_id = 2 [json_name = "fileId"];
      Specified by:
      getFileIdBytes in interface UploadChunkRequestOrBuilder
      Returns:
      The bytes for fileId.
    • getChunkNumber

      public int getChunkNumber()
       Chunk info
       
      int32 chunk_number = 3 [json_name = "chunkNumber"];
      Specified by:
      getChunkNumber in interface UploadChunkRequestOrBuilder
      Returns:
      The chunkNumber.
    • getTotalChunks

      public int getTotalChunks()
       Total chunks (0 if unknown, e.g. streaming from unknown source)
       
      int32 total_chunks = 4 [json_name = "totalChunks"];
      Specified by:
      getTotalChunks in interface UploadChunkRequestOrBuilder
      Returns:
      The totalChunks.
    • getData

      public com.google.protobuf.ByteString getData()
       The actual chunk data
       
      bytes data = 5 [json_name = "data"];
      Specified by:
      getData in interface UploadChunkRequestOrBuilder
      Returns:
      The data.
    • getIsLast

      public boolean getIsLast()
       Is this the final chunk? (required when total_chunks=0)
       
      bool is_last = 6 [json_name = "isLast"];
      Specified by:
      getIsLast in interface UploadChunkRequestOrBuilder
      Returns:
      The isLast.
    • getFilename

      public String getFilename()
       File metadata (only needed on first chunk, but can be on all for simplicity)
       
      string filename = 7 [json_name = "filename"];
      Specified by:
      getFilename in interface UploadChunkRequestOrBuilder
      Returns:
      The filename.
    • getFilenameBytes

      public com.google.protobuf.ByteString getFilenameBytes()
       File metadata (only needed on first chunk, but can be on all for simplicity)
       
      string filename = 7 [json_name = "filename"];
      Specified by:
      getFilenameBytes in interface UploadChunkRequestOrBuilder
      Returns:
      The bytes for filename.
    • getPath

      public String getPath()
       File path/location
       
      string path = 8 [json_name = "path"];
      Specified by:
      getPath in interface UploadChunkRequestOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       File path/location
       
      string path = 8 [json_name = "path"];
      Specified by:
      getPathBytes in interface UploadChunkRequestOrBuilder
      Returns:
      The bytes for path.
    • getMimeType

      public String getMimeType()
      string mime_type = 9 [json_name = "mimeType"];
      Specified by:
      getMimeType in interface UploadChunkRequestOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
      string mime_type = 9 [json_name = "mimeType"];
      Specified by:
      getMimeTypeBytes in interface UploadChunkRequestOrBuilder
      Returns:
      The bytes for mimeType.
    • getFileSize

      public long getFileSize()
      int64 file_size = 10 [json_name = "fileSize"];
      Specified by:
      getFileSize in interface UploadChunkRequestOrBuilder
      Returns:
      The fileSize.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: UploadChunkRequestOrBuilder
      map<string, string> metadata = 11 [json_name = "metadata"];
      Specified by:
      getMetadataCount in interface UploadChunkRequestOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
      map<string, string> metadata = 11 [json_name = "metadata"];
      Specified by:
      containsMetadata in interface UploadChunkRequestOrBuilder
    • getMetadata

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

      public Map<String,String> getMetadataMap()
      map<string, string> metadata = 11 [json_name = "metadata"];
      Specified by:
      getMetadataMap in interface UploadChunkRequestOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
      map<string, string> metadata = 11 [json_name = "metadata"];
      Specified by:
      getMetadataOrDefault in interface UploadChunkRequestOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
      map<string, string> metadata = 11 [json_name = "metadata"];
      Specified by:
      getMetadataOrThrow in interface UploadChunkRequestOrBuilder
    • 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 UploadChunkRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static UploadChunkRequest.Builder newBuilder()
    • newBuilder

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

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

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

      public static UploadChunkRequest getDefaultInstance()
    • parser

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

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