Class UploadChunkRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UploadChunkRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
ai.pipestream.connector.intake.v1.UploadChunkRequest.Builder
All Implemented Interfaces:
UploadChunkRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UploadChunkRequest

public static final class UploadChunkRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder> 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
  • 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.Builder<UploadChunkRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
    • getDefaultInstanceForType

      public UploadChunkRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public UploadChunkRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UploadChunkRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
    • mergeFrom

      public UploadChunkRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UploadChunkRequest.Builder>
      Throws:
      IOException
    • 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.
    • setCrawlId

      public UploadChunkRequest.Builder setCrawlId(String value)
       Identity (connector-id from gRPC metadata)
       
      string crawl_id = 1 [json_name = "crawlId"];
      Parameters:
      value - The crawlId to set.
      Returns:
      This builder for chaining.
    • clearCrawlId

      public UploadChunkRequest.Builder clearCrawlId()
       Identity (connector-id from gRPC metadata)
       
      string crawl_id = 1 [json_name = "crawlId"];
      Returns:
      This builder for chaining.
    • setCrawlIdBytes

      public UploadChunkRequest.Builder setCrawlIdBytes(com.google.protobuf.ByteString value)
       Identity (connector-id from gRPC metadata)
       
      string crawl_id = 1 [json_name = "crawlId"];
      Parameters:
      value - The bytes for crawlId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setFileId

      public UploadChunkRequest.Builder setFileId(String value)
       Unique identifier for this file
       
      string file_id = 2 [json_name = "fileId"];
      Parameters:
      value - The fileId to set.
      Returns:
      This builder for chaining.
    • clearFileId

      public UploadChunkRequest.Builder clearFileId()
       Unique identifier for this file
       
      string file_id = 2 [json_name = "fileId"];
      Returns:
      This builder for chaining.
    • setFileIdBytes

      public UploadChunkRequest.Builder setFileIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for this file
       
      string file_id = 2 [json_name = "fileId"];
      Parameters:
      value - The bytes for fileId to set.
      Returns:
      This builder for chaining.
    • getChunkNumber

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

      public UploadChunkRequest.Builder setChunkNumber(int value)
       Chunk info
       
      int32 chunk_number = 3 [json_name = "chunkNumber"];
      Parameters:
      value - The chunkNumber to set.
      Returns:
      This builder for chaining.
    • clearChunkNumber

      public UploadChunkRequest.Builder clearChunkNumber()
       Chunk info
       
      int32 chunk_number = 3 [json_name = "chunkNumber"];
      Returns:
      This builder for chaining.
    • 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.
    • setTotalChunks

      public UploadChunkRequest.Builder setTotalChunks(int value)
       Total chunks (0 if unknown, e.g. streaming from unknown source)
       
      int32 total_chunks = 4 [json_name = "totalChunks"];
      Parameters:
      value - The totalChunks to set.
      Returns:
      This builder for chaining.
    • clearTotalChunks

      public UploadChunkRequest.Builder clearTotalChunks()
       Total chunks (0 if unknown, e.g. streaming from unknown source)
       
      int32 total_chunks = 4 [json_name = "totalChunks"];
      Returns:
      This builder for chaining.
    • 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.
    • setData

      public UploadChunkRequest.Builder setData(com.google.protobuf.ByteString value)
       The actual chunk data
       
      bytes data = 5 [json_name = "data"];
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

      public UploadChunkRequest.Builder clearData()
       The actual chunk data
       
      bytes data = 5 [json_name = "data"];
      Returns:
      This builder for chaining.
    • 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.
    • setIsLast

      public UploadChunkRequest.Builder setIsLast(boolean value)
       Is this the final chunk? (required when total_chunks=0)
       
      bool is_last = 6 [json_name = "isLast"];
      Parameters:
      value - The isLast to set.
      Returns:
      This builder for chaining.
    • clearIsLast

      public UploadChunkRequest.Builder clearIsLast()
       Is this the final chunk? (required when total_chunks=0)
       
      bool is_last = 6 [json_name = "isLast"];
      Returns:
      This builder for chaining.
    • 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.
    • setFilename

      public UploadChunkRequest.Builder setFilename(String value)
       File metadata (only needed on first chunk, but can be on all for simplicity)
       
      string filename = 7 [json_name = "filename"];
      Parameters:
      value - The filename to set.
      Returns:
      This builder for chaining.
    • clearFilename

      public UploadChunkRequest.Builder clearFilename()
       File metadata (only needed on first chunk, but can be on all for simplicity)
       
      string filename = 7 [json_name = "filename"];
      Returns:
      This builder for chaining.
    • setFilenameBytes

      public UploadChunkRequest.Builder setFilenameBytes(com.google.protobuf.ByteString value)
       File metadata (only needed on first chunk, but can be on all for simplicity)
       
      string filename = 7 [json_name = "filename"];
      Parameters:
      value - The bytes for filename to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPath

      public UploadChunkRequest.Builder setPath(String value)
       File path/location
       
      string path = 8 [json_name = "path"];
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public UploadChunkRequest.Builder clearPath()
       File path/location
       
      string path = 8 [json_name = "path"];
      Returns:
      This builder for chaining.
    • setPathBytes

      public UploadChunkRequest.Builder setPathBytes(com.google.protobuf.ByteString value)
       File path/location
       
      string path = 8 [json_name = "path"];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • 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.
    • setMimeType

      public UploadChunkRequest.Builder setMimeType(String value)
      string mime_type = 9 [json_name = "mimeType"];
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

      public UploadChunkRequest.Builder clearMimeType()
      string mime_type = 9 [json_name = "mimeType"];
      Returns:
      This builder for chaining.
    • setMimeTypeBytes

      public UploadChunkRequest.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
      string mime_type = 9 [json_name = "mimeType"];
      Parameters:
      value - The bytes for mimeType to set.
      Returns:
      This builder for chaining.
    • getFileSize

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

      public UploadChunkRequest.Builder setFileSize(long value)
      int64 file_size = 10 [json_name = "fileSize"];
      Parameters:
      value - The fileSize to set.
      Returns:
      This builder for chaining.
    • clearFileSize

      public UploadChunkRequest.Builder clearFileSize()
      int64 file_size = 10 [json_name = "fileSize"];
      Returns:
      This builder for chaining.
    • 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
    • clearMetadata

      public UploadChunkRequest.Builder clearMetadata()
    • removeMetadata

      public UploadChunkRequest.Builder removeMetadata(String key)
      map<string, string> metadata = 11 [json_name = "metadata"];
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public UploadChunkRequest.Builder putMetadata(String key, String value)
      map<string, string> metadata = 11 [json_name = "metadata"];
    • putAllMetadata

      public UploadChunkRequest.Builder putAllMetadata(Map<String,String> values)
      map<string, string> metadata = 11 [json_name = "metadata"];