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 headersProtobuf type
ai.pipestream.connector.intake.v1.UploadChunkRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Chunk infoIdentity (connector-id from gRPC metadata)The actual chunk dataUnique identifier for this fileFile metadata (only needed on first chunk, but can be on all for simplicity)int64 file_size = 10 [json_name = "fileSize"];Is this the final chunk? (required when total_chunks=0)string mime_type = 9 [json_name = "mimeType"];File path/locationTotal chunks (0 if unknown, e.g.booleancontainsMetadata(String key) map<string, string> metadata = 11 [json_name = "metadata"];intChunk infoIdentity (connector-id from gRPC metadata)com.google.protobuf.ByteStringIdentity (connector-id from gRPC metadata)com.google.protobuf.ByteStringgetData()The actual chunk datastatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorUnique identifier for this filecom.google.protobuf.ByteStringUnique identifier for this fileFile metadata (only needed on first chunk, but can be on all for simplicity)com.google.protobuf.ByteStringFile metadata (only needed on first chunk, but can be on all for simplicity)longint64 file_size = 10 [json_name = "fileSize"];booleanIs this the final chunk? (required when total_chunks=0)Deprecated.intmap<string, string> metadata = 11 [json_name = "metadata"];map<string, string> metadata = 11 [json_name = "metadata"];getMetadataOrDefault(String key, String defaultValue) map<string, string> metadata = 11 [json_name = "metadata"];getMetadataOrThrow(String key) map<string, string> metadata = 11 [json_name = "metadata"];string mime_type = 9 [json_name = "mimeType"];com.google.protobuf.ByteStringstring mime_type = 9 [json_name = "mimeType"];Deprecated.getPath()File path/locationcom.google.protobuf.ByteStringFile path/locationintTotal chunks (0 if unknown, e.g.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(UploadChunkRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllMetadata(Map<String, String> values) map<string, string> metadata = 11 [json_name = "metadata"];putMetadata(String key, String value) map<string, string> metadata = 11 [json_name = "metadata"];removeMetadata(String key) map<string, string> metadata = 11 [json_name = "metadata"];setChunkNumber(int value) Chunk infosetCrawlId(String value) Identity (connector-id from gRPC metadata)setCrawlIdBytes(com.google.protobuf.ByteString value) Identity (connector-id from gRPC metadata)setData(com.google.protobuf.ByteString value) The actual chunk dataUnique identifier for this filesetFileIdBytes(com.google.protobuf.ByteString value) Unique identifier for this filesetFilename(String value) File metadata (only needed on first chunk, but can be on all for simplicity)setFilenameBytes(com.google.protobuf.ByteString value) File metadata (only needed on first chunk, but can be on all for simplicity)setFileSize(long value) int64 file_size = 10 [json_name = "fileSize"];setIsLast(boolean value) Is this the final chunk? (required when total_chunks=0)setMimeType(String value) string mime_type = 9 [json_name = "mimeType"];setMimeTypeBytes(com.google.protobuf.ByteString value) string mime_type = 9 [json_name = "mimeType"];File path/locationsetPathBytes(com.google.protobuf.ByteString value) File path/locationsetTotalChunks(int value) Total chunks (0 if unknown, e.g.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UploadChunkRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UploadChunkRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UploadChunkRequest.Builder>- Throws:
IOException
-
getCrawlId
Identity (connector-id from gRPC metadata)
string crawl_id = 1 [json_name = "crawlId"];- Specified by:
getCrawlIdin interfaceUploadChunkRequestOrBuilder- 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:
getCrawlIdBytesin interfaceUploadChunkRequestOrBuilder- Returns:
- The bytes for crawlId.
-
setCrawlId
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
Identity (connector-id from gRPC metadata)
string crawl_id = 1 [json_name = "crawlId"];- Returns:
- This builder for chaining.
-
setCrawlIdBytes
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
Unique identifier for this file
string file_id = 2 [json_name = "fileId"];- Specified by:
getFileIdin interfaceUploadChunkRequestOrBuilder- Returns:
- The fileId.
-
getFileIdBytes
public com.google.protobuf.ByteString getFileIdBytes()Unique identifier for this file
string file_id = 2 [json_name = "fileId"];- Specified by:
getFileIdBytesin interfaceUploadChunkRequestOrBuilder- Returns:
- The bytes for fileId.
-
setFileId
Unique identifier for this file
string file_id = 2 [json_name = "fileId"];- Parameters:
value- The fileId to set.- Returns:
- This builder for chaining.
-
clearFileId
Unique identifier for this file
string file_id = 2 [json_name = "fileId"];- Returns:
- This builder for chaining.
-
setFileIdBytes
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:
getChunkNumberin interfaceUploadChunkRequestOrBuilder- Returns:
- The chunkNumber.
-
setChunkNumber
Chunk info
int32 chunk_number = 3 [json_name = "chunkNumber"];- Parameters:
value- The chunkNumber to set.- Returns:
- This builder for chaining.
-
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:
getTotalChunksin interfaceUploadChunkRequestOrBuilder- Returns:
- The totalChunks.
-
setTotalChunks
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
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:
getDatain interfaceUploadChunkRequestOrBuilder- Returns:
- The data.
-
setData
The actual chunk data
bytes data = 5 [json_name = "data"];- Parameters:
value- The data to set.- Returns:
- This builder for chaining.
-
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:
getIsLastin interfaceUploadChunkRequestOrBuilder- Returns:
- The isLast.
-
setIsLast
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
Is this the final chunk? (required when total_chunks=0)
bool is_last = 6 [json_name = "isLast"];- Returns:
- This builder for chaining.
-
getFilename
File metadata (only needed on first chunk, but can be on all for simplicity)
string filename = 7 [json_name = "filename"];- Specified by:
getFilenamein interfaceUploadChunkRequestOrBuilder- 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:
getFilenameBytesin interfaceUploadChunkRequestOrBuilder- Returns:
- The bytes for filename.
-
setFilename
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
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
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
File path/location
string path = 8 [json_name = "path"];- Specified by:
getPathin interfaceUploadChunkRequestOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()File path/location
string path = 8 [json_name = "path"];- Specified by:
getPathBytesin interfaceUploadChunkRequestOrBuilder- Returns:
- The bytes for path.
-
setPath
File path/location
string path = 8 [json_name = "path"];- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
File path/location
string path = 8 [json_name = "path"];- Returns:
- This builder for chaining.
-
setPathBytes
File path/location
string path = 8 [json_name = "path"];- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getMimeType
string mime_type = 9 [json_name = "mimeType"];- Specified by:
getMimeTypein interfaceUploadChunkRequestOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()string mime_type = 9 [json_name = "mimeType"];- Specified by:
getMimeTypeBytesin interfaceUploadChunkRequestOrBuilder- Returns:
- The bytes for mimeType.
-
setMimeType
string mime_type = 9 [json_name = "mimeType"];- Parameters:
value- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
string mime_type = 9 [json_name = "mimeType"];- Returns:
- This builder for chaining.
-
setMimeTypeBytes
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:
getFileSizein interfaceUploadChunkRequestOrBuilder- Returns:
- The fileSize.
-
setFileSize
int64 file_size = 10 [json_name = "fileSize"];- Parameters:
value- The fileSize to set.- Returns:
- This builder for chaining.
-
clearFileSize
int64 file_size = 10 [json_name = "fileSize"];- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:UploadChunkRequestOrBuildermap<string, string> metadata = 11 [json_name = "metadata"];- Specified by:
getMetadataCountin interfaceUploadChunkRequestOrBuilder
-
containsMetadata
map<string, string> metadata = 11 [json_name = "metadata"];- Specified by:
containsMetadatain interfaceUploadChunkRequestOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceUploadChunkRequestOrBuilder
-
getMetadataMap
map<string, string> metadata = 11 [json_name = "metadata"];- Specified by:
getMetadataMapin interfaceUploadChunkRequestOrBuilder
-
getMetadataOrDefault
map<string, string> metadata = 11 [json_name = "metadata"];- Specified by:
getMetadataOrDefaultin interfaceUploadChunkRequestOrBuilder
-
getMetadataOrThrow
map<string, string> metadata = 11 [json_name = "metadata"];- Specified by:
getMetadataOrThrowin interfaceUploadChunkRequestOrBuilder
-
clearMetadata
-
removeMetadata
map<string, string> metadata = 11 [json_name = "metadata"]; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
map<string, string> metadata = 11 [json_name = "metadata"]; -
putAllMetadata
map<string, string> metadata = 11 [json_name = "metadata"];
-