Interface UploadChunkRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
UploadChunkRequest,UploadChunkRequest.Builder
@Generated
public interface UploadChunkRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(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 dataUnique 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"];getPath()File path/locationcom.google.protobuf.ByteStringFile path/locationintTotal chunks (0 if unknown, e.g.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getCrawlId
String getCrawlId()Identity (connector-id from gRPC metadata)
string crawl_id = 1 [json_name = "crawlId"];- Returns:
- The crawlId.
-
getCrawlIdBytes
com.google.protobuf.ByteString getCrawlIdBytes()Identity (connector-id from gRPC metadata)
string crawl_id = 1 [json_name = "crawlId"];- Returns:
- The bytes for crawlId.
-
getFileId
String getFileId()Unique identifier for this file
string file_id = 2 [json_name = "fileId"];- Returns:
- The fileId.
-
getFileIdBytes
com.google.protobuf.ByteString getFileIdBytes()Unique identifier for this file
string file_id = 2 [json_name = "fileId"];- Returns:
- The bytes for fileId.
-
getChunkNumber
int getChunkNumber()Chunk info
int32 chunk_number = 3 [json_name = "chunkNumber"];- Returns:
- The chunkNumber.
-
getTotalChunks
int getTotalChunks()Total chunks (0 if unknown, e.g. streaming from unknown source)
int32 total_chunks = 4 [json_name = "totalChunks"];- Returns:
- The totalChunks.
-
getData
com.google.protobuf.ByteString getData()The actual chunk data
bytes data = 5 [json_name = "data"];- Returns:
- The data.
-
getIsLast
boolean getIsLast()Is this the final chunk? (required when total_chunks=0)
bool is_last = 6 [json_name = "isLast"];- Returns:
- The isLast.
-
getFilename
String getFilename()File metadata (only needed on first chunk, but can be on all for simplicity)
string filename = 7 [json_name = "filename"];- Returns:
- The filename.
-
getFilenameBytes
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"];- Returns:
- The bytes for filename.
-
getPath
String getPath()File path/location
string path = 8 [json_name = "path"];- Returns:
- The path.
-
getPathBytes
com.google.protobuf.ByteString getPathBytes()File path/location
string path = 8 [json_name = "path"];- Returns:
- The bytes for path.
-
getMimeType
String getMimeType()string mime_type = 9 [json_name = "mimeType"];- Returns:
- The mimeType.
-
getMimeTypeBytes
com.google.protobuf.ByteString getMimeTypeBytes()string mime_type = 9 [json_name = "mimeType"];- Returns:
- The bytes for mimeType.
-
getFileSize
long getFileSize()int64 file_size = 10 [json_name = "fileSize"];- Returns:
- The fileSize.
-
getMetadataCount
int getMetadataCount()map<string, string> metadata = 11 [json_name = "metadata"]; -
containsMetadata
map<string, string> metadata = 11 [json_name = "metadata"]; -
getMetadata
Deprecated.UsegetMetadataMap()instead. -
getMetadataMap
map<string, string> metadata = 11 [json_name = "metadata"]; -
getMetadataOrDefault
map<string, string> metadata = 11 [json_name = "metadata"]; -
getMetadataOrThrow
map<string, string> metadata = 11 [json_name = "metadata"];
-