Class UploadBlobRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UploadBlobRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<UploadBlobRequest.Builder>
ai.pipestream.connector.intake.v1.UploadBlobRequest.Builder
- All Implemented Interfaces:
UploadBlobRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
UploadBlobRequest
public static final class UploadBlobRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UploadBlobRequest.Builder>
implements UploadBlobRequestOrBuilder
Request to upload raw file content with minimal metadata. Simple path for basic file uploads where the service constructs the PipeDoc wrapper.Protobuf type
ai.pipestream.connector.intake.v1.UploadBlobRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()API key for authentication.Raw file content (up to 2GB).DataSource identifier (deterministic: hash of account_id + connector_id).Original filename.MIME type of the content.Virtual path in the datasource's namespace (e.g., "/folder/file.txt").Optional session ID for grouping related uploads.Source document identifier from the origin system.booleancontainsMetadata(String key) Additional metadata key-value pairs.API key for authentication.com.google.protobuf.ByteStringAPI key for authentication.com.google.protobuf.ByteStringRaw file content (up to 2GB).DataSource identifier (deterministic: hash of account_id + connector_id).com.google.protobuf.ByteStringDataSource identifier (deterministic: hash of account_id + connector_id).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOriginal filename.com.google.protobuf.ByteStringOriginal filename.Deprecated.intAdditional metadata key-value pairs.Additional metadata key-value pairs.getMetadataOrDefault(String key, String defaultValue) Additional metadata key-value pairs.getMetadataOrThrow(String key) Additional metadata key-value pairs.MIME type of the content.com.google.protobuf.ByteStringMIME type of the content.Deprecated.getPath()Virtual path in the datasource's namespace (e.g., "/folder/file.txt").com.google.protobuf.ByteStringVirtual path in the datasource's namespace (e.g., "/folder/file.txt").Optional session ID for grouping related uploads.com.google.protobuf.ByteStringOptional session ID for grouping related uploads.Source document identifier from the origin system.com.google.protobuf.ByteStringSource document identifier from the origin system.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(UploadBlobRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllMetadata(Map<String, String> values) Additional metadata key-value pairs.putMetadata(String key, String value) Additional metadata key-value pairs.removeMetadata(String key) Additional metadata key-value pairs.API key for authentication.setApiKeyBytes(com.google.protobuf.ByteString value) API key for authentication.setContent(com.google.protobuf.ByteString value) Raw file content (up to 2GB).setDatasourceId(String value) DataSource identifier (deterministic: hash of account_id + connector_id).setDatasourceIdBytes(com.google.protobuf.ByteString value) DataSource identifier (deterministic: hash of account_id + connector_id).setFilename(String value) Original filename.setFilenameBytes(com.google.protobuf.ByteString value) Original filename.setMimeType(String value) MIME type of the content.setMimeTypeBytes(com.google.protobuf.ByteString value) MIME type of the content.Virtual path in the datasource's namespace (e.g., "/folder/file.txt").setPathBytes(com.google.protobuf.ByteString value) Virtual path in the datasource's namespace (e.g., "/folder/file.txt").setSessionId(String value) Optional session ID for grouping related uploads.setSessionIdBytes(com.google.protobuf.ByteString value) Optional session ID for grouping related uploads.setSourceDocId(String value) Source document identifier from the origin system.setSourceDocIdBytes(com.google.protobuf.ByteString value) Source document identifier from the origin system.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<UploadBlobRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<UploadBlobRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UploadBlobRequest.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<UploadBlobRequest.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<UploadBlobRequest.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<UploadBlobRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UploadBlobRequest.Builder>
-
mergeFrom
public UploadBlobRequest.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<UploadBlobRequest.Builder>- Throws:
IOException
-
getDatasourceId
DataSource identifier (deterministic: hash of account_id + connector_id).
string datasource_id = 1 [json_name = "datasourceId"];- Specified by:
getDatasourceIdin interfaceUploadBlobRequestOrBuilder- Returns:
- The datasourceId.
-
getDatasourceIdBytes
public com.google.protobuf.ByteString getDatasourceIdBytes()DataSource identifier (deterministic: hash of account_id + connector_id).
string datasource_id = 1 [json_name = "datasourceId"];- Specified by:
getDatasourceIdBytesin interfaceUploadBlobRequestOrBuilder- Returns:
- The bytes for datasourceId.
-
setDatasourceId
DataSource identifier (deterministic: hash of account_id + connector_id).
string datasource_id = 1 [json_name = "datasourceId"];- Parameters:
value- The datasourceId to set.- Returns:
- This builder for chaining.
-
clearDatasourceId
DataSource identifier (deterministic: hash of account_id + connector_id).
string datasource_id = 1 [json_name = "datasourceId"];- Returns:
- This builder for chaining.
-
setDatasourceIdBytes
DataSource identifier (deterministic: hash of account_id + connector_id).
string datasource_id = 1 [json_name = "datasourceId"];- Parameters:
value- The bytes for datasourceId to set.- Returns:
- This builder for chaining.
-
getApiKey
API key for authentication.
string api_key = 2 [json_name = "apiKey"];- Specified by:
getApiKeyin interfaceUploadBlobRequestOrBuilder- Returns:
- The apiKey.
-
getApiKeyBytes
public com.google.protobuf.ByteString getApiKeyBytes()API key for authentication.
string api_key = 2 [json_name = "apiKey"];- Specified by:
getApiKeyBytesin interfaceUploadBlobRequestOrBuilder- Returns:
- The bytes for apiKey.
-
setApiKey
API key for authentication.
string api_key = 2 [json_name = "apiKey"];- Parameters:
value- The apiKey to set.- Returns:
- This builder for chaining.
-
clearApiKey
API key for authentication.
string api_key = 2 [json_name = "apiKey"];- Returns:
- This builder for chaining.
-
setApiKeyBytes
API key for authentication.
string api_key = 2 [json_name = "apiKey"];- Parameters:
value- The bytes for apiKey to set.- Returns:
- This builder for chaining.
-
getSessionId
Optional session ID for grouping related uploads.
string session_id = 3 [json_name = "sessionId"];- Specified by:
getSessionIdin interfaceUploadBlobRequestOrBuilder- Returns:
- The sessionId.
-
getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()Optional session ID for grouping related uploads.
string session_id = 3 [json_name = "sessionId"];- Specified by:
getSessionIdBytesin interfaceUploadBlobRequestOrBuilder- Returns:
- The bytes for sessionId.
-
setSessionId
Optional session ID for grouping related uploads.
string session_id = 3 [json_name = "sessionId"];- Parameters:
value- The sessionId to set.- Returns:
- This builder for chaining.
-
clearSessionId
Optional session ID for grouping related uploads.
string session_id = 3 [json_name = "sessionId"];- Returns:
- This builder for chaining.
-
setSessionIdBytes
Optional session ID for grouping related uploads.
string session_id = 3 [json_name = "sessionId"];- Parameters:
value- The bytes for sessionId to set.- Returns:
- This builder for chaining.
-
getFilename
Original filename.
string filename = 4 [json_name = "filename"];- Specified by:
getFilenamein interfaceUploadBlobRequestOrBuilder- Returns:
- The filename.
-
getFilenameBytes
public com.google.protobuf.ByteString getFilenameBytes()Original filename.
string filename = 4 [json_name = "filename"];- Specified by:
getFilenameBytesin interfaceUploadBlobRequestOrBuilder- Returns:
- The bytes for filename.
-
setFilename
Original filename.
string filename = 4 [json_name = "filename"];- Parameters:
value- The filename to set.- Returns:
- This builder for chaining.
-
clearFilename
Original filename.
string filename = 4 [json_name = "filename"];- Returns:
- This builder for chaining.
-
setFilenameBytes
Original filename.
string filename = 4 [json_name = "filename"];- Parameters:
value- The bytes for filename to set.- Returns:
- This builder for chaining.
-
getMimeType
MIME type of the content.
string mime_type = 5 [json_name = "mimeType"];- Specified by:
getMimeTypein interfaceUploadBlobRequestOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()MIME type of the content.
string mime_type = 5 [json_name = "mimeType"];- Specified by:
getMimeTypeBytesin interfaceUploadBlobRequestOrBuilder- Returns:
- The bytes for mimeType.
-
setMimeType
MIME type of the content.
string mime_type = 5 [json_name = "mimeType"];- Parameters:
value- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
MIME type of the content.
string mime_type = 5 [json_name = "mimeType"];- Returns:
- This builder for chaining.
-
setMimeTypeBytes
MIME type of the content.
string mime_type = 5 [json_name = "mimeType"];- Parameters:
value- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-
getPath
Virtual path in the datasource's namespace (e.g., "/folder/file.txt").
string path = 6 [json_name = "path"];- Specified by:
getPathin interfaceUploadBlobRequestOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Virtual path in the datasource's namespace (e.g., "/folder/file.txt").
string path = 6 [json_name = "path"];- Specified by:
getPathBytesin interfaceUploadBlobRequestOrBuilder- Returns:
- The bytes for path.
-
setPath
Virtual path in the datasource's namespace (e.g., "/folder/file.txt").
string path = 6 [json_name = "path"];- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
Virtual path in the datasource's namespace (e.g., "/folder/file.txt").
string path = 6 [json_name = "path"];- Returns:
- This builder for chaining.
-
setPathBytes
Virtual path in the datasource's namespace (e.g., "/folder/file.txt").
string path = 6 [json_name = "path"];- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:UploadBlobRequestOrBuilderAdditional metadata key-value pairs.
map<string, string> metadata = 7 [json_name = "metadata"];- Specified by:
getMetadataCountin interfaceUploadBlobRequestOrBuilder
-
containsMetadata
Additional metadata key-value pairs.
map<string, string> metadata = 7 [json_name = "metadata"];- Specified by:
containsMetadatain interfaceUploadBlobRequestOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceUploadBlobRequestOrBuilder
-
getMetadataMap
Additional metadata key-value pairs.
map<string, string> metadata = 7 [json_name = "metadata"];- Specified by:
getMetadataMapin interfaceUploadBlobRequestOrBuilder
-
getMetadataOrDefault
Additional metadata key-value pairs.
map<string, string> metadata = 7 [json_name = "metadata"];- Specified by:
getMetadataOrDefaultin interfaceUploadBlobRequestOrBuilder
-
getMetadataOrThrow
Additional metadata key-value pairs.
map<string, string> metadata = 7 [json_name = "metadata"];- Specified by:
getMetadataOrThrowin interfaceUploadBlobRequestOrBuilder
-
clearMetadata
-
removeMetadata
Additional metadata key-value pairs.
map<string, string> metadata = 7 [json_name = "metadata"]; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
Additional metadata key-value pairs.
map<string, string> metadata = 7 [json_name = "metadata"]; -
putAllMetadata
Additional metadata key-value pairs.
map<string, string> metadata = 7 [json_name = "metadata"]; -
getContent
public com.google.protobuf.ByteString getContent()Raw file content (up to 2GB).
bytes content = 8 [json_name = "content"];- Specified by:
getContentin interfaceUploadBlobRequestOrBuilder- Returns:
- The content.
-
setContent
Raw file content (up to 2GB).
bytes content = 8 [json_name = "content"];- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
clearContent
Raw file content (up to 2GB).
bytes content = 8 [json_name = "content"];- Returns:
- This builder for chaining.
-
getSourceDocId
Source document identifier from the origin system. Used to generate deterministic doc_id: hash(datasource_id + source_doc_id) If not provided, path or filename will be used.
string source_doc_id = 9 [json_name = "sourceDocId"];- Specified by:
getSourceDocIdin interfaceUploadBlobRequestOrBuilder- Returns:
- The sourceDocId.
-
getSourceDocIdBytes
public com.google.protobuf.ByteString getSourceDocIdBytes()Source document identifier from the origin system. Used to generate deterministic doc_id: hash(datasource_id + source_doc_id) If not provided, path or filename will be used.
string source_doc_id = 9 [json_name = "sourceDocId"];- Specified by:
getSourceDocIdBytesin interfaceUploadBlobRequestOrBuilder- Returns:
- The bytes for sourceDocId.
-
setSourceDocId
Source document identifier from the origin system. Used to generate deterministic doc_id: hash(datasource_id + source_doc_id) If not provided, path or filename will be used.
string source_doc_id = 9 [json_name = "sourceDocId"];- Parameters:
value- The sourceDocId to set.- Returns:
- This builder for chaining.
-
clearSourceDocId
Source document identifier from the origin system. Used to generate deterministic doc_id: hash(datasource_id + source_doc_id) If not provided, path or filename will be used.
string source_doc_id = 9 [json_name = "sourceDocId"];- Returns:
- This builder for chaining.
-
setSourceDocIdBytes
Source document identifier from the origin system. Used to generate deterministic doc_id: hash(datasource_id + source_doc_id) If not provided, path or filename will be used.
string source_doc_id = 9 [json_name = "sourceDocId"];- Parameters:
value- The bytes for sourceDocId to set.- Returns:
- This builder for chaining.
-