Package ai.pipestream.data.v1
Class Blob
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.data.v1.Blob
- All Implemented Interfaces:
BlobOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Blob
extends com.google.protobuf.GeneratedMessage
implements BlobOrBuilder
Binary blob with flexible storage options. Supports both inline data storage (for small files or sensitive data) and external S3 storage references. Metadata is always stored in the database.Protobuf type
ai.pipestream.data.v1.Blob- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBinary blob with flexible storage options.static enumNested 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 TypeMethodDescriptionbooleanUnique identifier for this blob.com.google.protobuf.ByteStringUnique identifier for this blob.Checksum value for integrity verification.com.google.protobuf.ByteStringChecksum value for integrity verification.Type of checksum algorithm used.intType of checksum algorithm used.com.google.protobuf.ByteStringgetData()Inline binary data for small files or sensitive content.static Blobstatic final com.google.protobuf.Descriptors.DescriptorDrive/bucket identifier where this blob belongs.com.google.protobuf.ByteStringDrive/bucket identifier where this blob belongs.Character encoding for text-based blobs.com.google.protobuf.ByteStringCharacter encoding for text-based blobs.Original filename if available.com.google.protobuf.ByteStringOriginal filename if available.com.google.protobuf.StructAdditional blob metadata stored in the database.com.google.protobuf.StructOrBuilderAdditional blob metadata stored in the database.MIME type of the blob content.com.google.protobuf.ByteStringMIME type of the blob content.com.google.protobuf.Parser<Blob> intlongSize of the blob content in bytes.Reference to external S3 storage for large files.Reference to external S3 storage for large files.booleanChecksum value for integrity verification.booleanhasData()Inline binary data for small files or sensitive content.booleanCharacter encoding for text-based blobs.booleanOriginal filename if available.inthashCode()booleanAdditional blob metadata stored in the database.booleanMIME type of the blob content.booleanReference to external S3 storage for large files.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Blob.Builderstatic Blob.BuildernewBuilder(Blob prototype) protected Blob.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static BlobparseDelimitedFrom(InputStream input) static BlobparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BlobparseFrom(byte[] data) static BlobparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BlobparseFrom(com.google.protobuf.ByteString data) static BlobparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BlobparseFrom(com.google.protobuf.CodedInputStream input) static BlobparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BlobparseFrom(InputStream input) static BlobparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BlobparseFrom(ByteBuffer data) static BlobparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Blob> 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, internalGetMapFieldReflection, 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
-
BLOB_ID_FIELD_NUMBER
public static final int BLOB_ID_FIELD_NUMBER- See Also:
-
DRIVE_ID_FIELD_NUMBER
public static final int DRIVE_ID_FIELD_NUMBER- See Also:
-
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER- See Also:
-
STORAGE_REF_FIELD_NUMBER
public static final int STORAGE_REF_FIELD_NUMBER- See Also:
-
MIME_TYPE_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER- See Also:
-
FILENAME_FIELD_NUMBER
public static final int FILENAME_FIELD_NUMBER- See Also:
-
ENCODING_FIELD_NUMBER
public static final int ENCODING_FIELD_NUMBER- See Also:
-
SIZE_BYTES_FIELD_NUMBER
public static final int SIZE_BYTES_FIELD_NUMBER- See Also:
-
CHECKSUM_FIELD_NUMBER
public static final int CHECKSUM_FIELD_NUMBER- See Also:
-
CHECKSUM_TYPE_FIELD_NUMBER
public static final int CHECKSUM_TYPE_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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getContentCase
- Specified by:
getContentCasein interfaceBlobOrBuilder
-
getBlobId
Unique identifier for this blob.
string blob_id = 1;- Specified by:
getBlobIdin interfaceBlobOrBuilder- Returns:
- The blobId.
-
getBlobIdBytes
public com.google.protobuf.ByteString getBlobIdBytes()Unique identifier for this blob.
string blob_id = 1;- Specified by:
getBlobIdBytesin interfaceBlobOrBuilder- Returns:
- The bytes for blobId.
-
getDriveId
Drive/bucket identifier where this blob belongs.
string drive_id = 2;- Specified by:
getDriveIdin interfaceBlobOrBuilder- Returns:
- The driveId.
-
getDriveIdBytes
public com.google.protobuf.ByteString getDriveIdBytes()Drive/bucket identifier where this blob belongs.
string drive_id = 2;- Specified by:
getDriveIdBytesin interfaceBlobOrBuilder- Returns:
- The bytes for driveId.
-
hasData
public boolean hasData()Inline binary data for small files or sensitive content.
bytes data = 3;- Specified by:
hasDatain interfaceBlobOrBuilder- Returns:
- Whether the data field is set.
-
getData
public com.google.protobuf.ByteString getData()Inline binary data for small files or sensitive content.
bytes data = 3;- Specified by:
getDatain interfaceBlobOrBuilder- Returns:
- The data.
-
hasStorageRef
public boolean hasStorageRef()Reference to external S3 storage for large files.
.ai.pipestream.data.v1.FileStorageReference storage_ref = 4;- Specified by:
hasStorageRefin interfaceBlobOrBuilder- Returns:
- Whether the storageRef field is set.
-
getStorageRef
Reference to external S3 storage for large files.
.ai.pipestream.data.v1.FileStorageReference storage_ref = 4;- Specified by:
getStorageRefin interfaceBlobOrBuilder- Returns:
- The storageRef.
-
getStorageRefOrBuilder
Reference to external S3 storage for large files.
.ai.pipestream.data.v1.FileStorageReference storage_ref = 4;- Specified by:
getStorageRefOrBuilderin interfaceBlobOrBuilder
-
hasMimeType
public boolean hasMimeType()MIME type of the blob content.
optional string mime_type = 5;- Specified by:
hasMimeTypein interfaceBlobOrBuilder- Returns:
- Whether the mimeType field is set.
-
getMimeType
MIME type of the blob content.
optional string mime_type = 5;- Specified by:
getMimeTypein interfaceBlobOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()MIME type of the blob content.
optional string mime_type = 5;- Specified by:
getMimeTypeBytesin interfaceBlobOrBuilder- Returns:
- The bytes for mimeType.
-
hasFilename
public boolean hasFilename()Original filename if available.
optional string filename = 6;- Specified by:
hasFilenamein interfaceBlobOrBuilder- Returns:
- Whether the filename field is set.
-
getFilename
Original filename if available.
optional string filename = 6;- Specified by:
getFilenamein interfaceBlobOrBuilder- Returns:
- The filename.
-
getFilenameBytes
public com.google.protobuf.ByteString getFilenameBytes()Original filename if available.
optional string filename = 6;- Specified by:
getFilenameBytesin interfaceBlobOrBuilder- Returns:
- The bytes for filename.
-
hasEncoding
public boolean hasEncoding()Character encoding for text-based blobs.
optional string encoding = 7;- Specified by:
hasEncodingin interfaceBlobOrBuilder- Returns:
- Whether the encoding field is set.
-
getEncoding
Character encoding for text-based blobs.
optional string encoding = 7;- Specified by:
getEncodingin interfaceBlobOrBuilder- Returns:
- The encoding.
-
getEncodingBytes
public com.google.protobuf.ByteString getEncodingBytes()Character encoding for text-based blobs.
optional string encoding = 7;- Specified by:
getEncodingBytesin interfaceBlobOrBuilder- Returns:
- The bytes for encoding.
-
getSizeBytes
public long getSizeBytes()Size of the blob content in bytes.
int64 size_bytes = 8;- Specified by:
getSizeBytesin interfaceBlobOrBuilder- Returns:
- The sizeBytes.
-
hasChecksum
public boolean hasChecksum()Checksum value for integrity verification.
optional string checksum = 9;- Specified by:
hasChecksumin interfaceBlobOrBuilder- Returns:
- Whether the checksum field is set.
-
getChecksum
Checksum value for integrity verification.
optional string checksum = 9;- Specified by:
getChecksumin interfaceBlobOrBuilder- Returns:
- The checksum.
-
getChecksumBytes
public com.google.protobuf.ByteString getChecksumBytes()Checksum value for integrity verification.
optional string checksum = 9;- Specified by:
getChecksumBytesin interfaceBlobOrBuilder- Returns:
- The bytes for checksum.
-
getChecksumTypeValue
public int getChecksumTypeValue()Type of checksum algorithm used.
.ai.pipestream.data.v1.ChecksumType checksum_type = 10;- Specified by:
getChecksumTypeValuein interfaceBlobOrBuilder- Returns:
- The enum numeric value on the wire for checksumType.
-
getChecksumType
Type of checksum algorithm used.
.ai.pipestream.data.v1.ChecksumType checksum_type = 10;- Specified by:
getChecksumTypein interfaceBlobOrBuilder- Returns:
- The checksumType.
-
hasMetadata
public boolean hasMetadata()Additional blob metadata stored in the database.
optional .google.protobuf.Struct metadata = 11;- Specified by:
hasMetadatain interfaceBlobOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.Struct getMetadata()Additional blob metadata stored in the database.
optional .google.protobuf.Struct metadata = 11;- Specified by:
getMetadatain interfaceBlobOrBuilder- Returns:
- The metadata.
-
getMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()Additional blob metadata stored in the database.
optional .google.protobuf.Struct metadata = 11;- Specified by:
getMetadataOrBuilderin interfaceBlobOrBuilder
-
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 Blob parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Blob parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Blob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Blob parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Blob parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Blob parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Blob parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Blob 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
- 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
-