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 headersProtobuf type
ai.pipestream.connector.intake.v1.UploadChunkRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classUpload a single chunk of a file Auth: connector-id and api-key sent in gRPC metadata headersNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) map<string, string> metadata = 11 [json_name = "metadata"];booleanintChunk infoIdentity (connector-id from gRPC metadata)com.google.protobuf.ByteStringIdentity (connector-id from gRPC metadata)com.google.protobuf.ByteStringgetData()The actual chunk datastatic UploadChunkRequeststatic final com.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"];com.google.protobuf.Parser<UploadChunkRequest> getPath()File path/locationcom.google.protobuf.ByteStringFile path/locationintintTotal chunks (0 if unknown, e.g.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic UploadChunkRequest.Builderstatic UploadChunkRequest.BuildernewBuilder(UploadChunkRequest prototype) protected UploadChunkRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static UploadChunkRequestparseDelimitedFrom(InputStream input) static UploadChunkRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UploadChunkRequestparseFrom(byte[] data) static UploadChunkRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UploadChunkRequestparseFrom(com.google.protobuf.ByteString data) static UploadChunkRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UploadChunkRequestparseFrom(com.google.protobuf.CodedInputStream input) static UploadChunkRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UploadChunkRequestparseFrom(InputStream input) static UploadChunkRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UploadChunkRequestparseFrom(ByteBuffer data) static UploadChunkRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<UploadChunkRequest> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CRAWL_ID_FIELD_NUMBER
public static final int CRAWL_ID_FIELD_NUMBER- See Also:
-
FILE_ID_FIELD_NUMBER
public static final int FILE_ID_FIELD_NUMBER- See Also:
-
CHUNK_NUMBER_FIELD_NUMBER
public static final int CHUNK_NUMBER_FIELD_NUMBER- See Also:
-
TOTAL_CHUNKS_FIELD_NUMBER
public static final int TOTAL_CHUNKS_FIELD_NUMBER- See Also:
-
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER- See Also:
-
IS_LAST_FIELD_NUMBER
public static final int IS_LAST_FIELD_NUMBER- See Also:
-
FILENAME_FIELD_NUMBER
public static final int FILENAME_FIELD_NUMBER- See Also:
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER- See Also:
-
MIME_TYPE_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER- See Also:
-
FILE_SIZE_FIELD_NUMBER
public static final int FILE_SIZE_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.
-
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.
-
getChunkNumber
public int getChunkNumber()Chunk info
int32 chunk_number = 3 [json_name = "chunkNumber"];- Specified by:
getChunkNumberin interfaceUploadChunkRequestOrBuilder- 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:
getTotalChunksin interfaceUploadChunkRequestOrBuilder- Returns:
- The totalChunks.
-
getData
public com.google.protobuf.ByteString getData()The actual chunk data
bytes data = 5 [json_name = "data"];- Specified by:
getDatain interfaceUploadChunkRequestOrBuilder- 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:
getIsLastin interfaceUploadChunkRequestOrBuilder- Returns:
- The isLast.
-
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.
-
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.
-
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.
-
getFileSize
public long getFileSize()int64 file_size = 10 [json_name = "fileSize"];- Specified by:
getFileSizein interfaceUploadChunkRequestOrBuilder- Returns:
- The fileSize.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static UploadChunkRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected UploadChunkRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-