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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Binary blob with flexible storage options.
    static enum 
     

    Nested 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.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Unique identifier for this blob.
    com.google.protobuf.ByteString
    Unique identifier for this blob.
    Checksum value for integrity verification.
    com.google.protobuf.ByteString
    Checksum value for integrity verification.
    Type of checksum algorithm used.
    int
    Type of checksum algorithm used.
     
    com.google.protobuf.ByteString
    Inline binary data for small files or sensitive content.
    static Blob
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Drive/bucket identifier where this blob belongs.
    com.google.protobuf.ByteString
    Drive/bucket identifier where this blob belongs.
    Character encoding for text-based blobs.
    com.google.protobuf.ByteString
    Character encoding for text-based blobs.
    Original filename if available.
    com.google.protobuf.ByteString
    Original filename if available.
    com.google.protobuf.Struct
    Additional blob metadata stored in the database.
    com.google.protobuf.StructOrBuilder
    Additional blob metadata stored in the database.
    MIME type of the blob content.
    com.google.protobuf.ByteString
    MIME type of the blob content.
    com.google.protobuf.Parser<Blob>
     
    int
     
    long
    Size of the blob content in bytes.
    Reference to external S3 storage for large files.
    Reference to external S3 storage for large files.
    boolean
    Checksum value for integrity verification.
    boolean
    Inline binary data for small files or sensitive content.
    boolean
    Character encoding for text-based blobs.
    boolean
    Original filename if available.
    int
     
    boolean
    Additional blob metadata stored in the database.
    boolean
    MIME type of the blob content.
    boolean
    Reference to external S3 storage for large files.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Blob prototype)
     
     
    protected Blob.Builder
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static Blob
     
    static Blob
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Blob
    parseFrom(byte[] data)
     
    static Blob
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Blob
    parseFrom(com.google.protobuf.ByteString data)
     
    static Blob
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Blob
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Blob
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Blob
     
    static Blob
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Blob
     
    static Blob
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Blob>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getContentCase

      public Blob.ContentCase getContentCase()
      Specified by:
      getContentCase in interface BlobOrBuilder
    • getBlobId

      public String getBlobId()
       Unique identifier for this blob.
       
      string blob_id = 1 [json_name = "blobId"];
      Specified by:
      getBlobId in interface BlobOrBuilder
      Returns:
      The blobId.
    • getBlobIdBytes

      public com.google.protobuf.ByteString getBlobIdBytes()
       Unique identifier for this blob.
       
      string blob_id = 1 [json_name = "blobId"];
      Specified by:
      getBlobIdBytes in interface BlobOrBuilder
      Returns:
      The bytes for blobId.
    • getDriveId

      public String getDriveId()
       Drive/bucket identifier where this blob belongs.
       
      string drive_id = 2 [json_name = "driveId"];
      Specified by:
      getDriveId in interface BlobOrBuilder
      Returns:
      The driveId.
    • getDriveIdBytes

      public com.google.protobuf.ByteString getDriveIdBytes()
       Drive/bucket identifier where this blob belongs.
       
      string drive_id = 2 [json_name = "driveId"];
      Specified by:
      getDriveIdBytes in interface BlobOrBuilder
      Returns:
      The bytes for driveId.
    • hasData

      public boolean hasData()
       Inline binary data for small files or sensitive content.
       
      bytes data = 3 [json_name = "data"];
      Specified by:
      hasData in interface BlobOrBuilder
      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 [json_name = "data"];
      Specified by:
      getData in interface BlobOrBuilder
      Returns:
      The data.
    • hasStorageRef

      public boolean hasStorageRef()
       Reference to external S3 storage for large files.
       
      .ai.pipestream.data.v1.FileStorageReference storage_ref = 4 [json_name = "storageRef"];
      Specified by:
      hasStorageRef in interface BlobOrBuilder
      Returns:
      Whether the storageRef field is set.
    • getStorageRef

      public FileStorageReference getStorageRef()
       Reference to external S3 storage for large files.
       
      .ai.pipestream.data.v1.FileStorageReference storage_ref = 4 [json_name = "storageRef"];
      Specified by:
      getStorageRef in interface BlobOrBuilder
      Returns:
      The storageRef.
    • getStorageRefOrBuilder

      public FileStorageReferenceOrBuilder getStorageRefOrBuilder()
       Reference to external S3 storage for large files.
       
      .ai.pipestream.data.v1.FileStorageReference storage_ref = 4 [json_name = "storageRef"];
      Specified by:
      getStorageRefOrBuilder in interface BlobOrBuilder
    • hasMimeType

      public boolean hasMimeType()
       MIME type of the blob content.
       
      optional string mime_type = 5 [json_name = "mimeType"];
      Specified by:
      hasMimeType in interface BlobOrBuilder
      Returns:
      Whether the mimeType field is set.
    • getMimeType

      public String getMimeType()
       MIME type of the blob content.
       
      optional string mime_type = 5 [json_name = "mimeType"];
      Specified by:
      getMimeType in interface BlobOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       MIME type of the blob content.
       
      optional string mime_type = 5 [json_name = "mimeType"];
      Specified by:
      getMimeTypeBytes in interface BlobOrBuilder
      Returns:
      The bytes for mimeType.
    • hasFilename

      public boolean hasFilename()
       Original filename if available.
       
      optional string filename = 6 [json_name = "filename"];
      Specified by:
      hasFilename in interface BlobOrBuilder
      Returns:
      Whether the filename field is set.
    • getFilename

      public String getFilename()
       Original filename if available.
       
      optional string filename = 6 [json_name = "filename"];
      Specified by:
      getFilename in interface BlobOrBuilder
      Returns:
      The filename.
    • getFilenameBytes

      public com.google.protobuf.ByteString getFilenameBytes()
       Original filename if available.
       
      optional string filename = 6 [json_name = "filename"];
      Specified by:
      getFilenameBytes in interface BlobOrBuilder
      Returns:
      The bytes for filename.
    • hasEncoding

      public boolean hasEncoding()
       Character encoding for text-based blobs.
       
      optional string encoding = 7 [json_name = "encoding"];
      Specified by:
      hasEncoding in interface BlobOrBuilder
      Returns:
      Whether the encoding field is set.
    • getEncoding

      public String getEncoding()
       Character encoding for text-based blobs.
       
      optional string encoding = 7 [json_name = "encoding"];
      Specified by:
      getEncoding in interface BlobOrBuilder
      Returns:
      The encoding.
    • getEncodingBytes

      public com.google.protobuf.ByteString getEncodingBytes()
       Character encoding for text-based blobs.
       
      optional string encoding = 7 [json_name = "encoding"];
      Specified by:
      getEncodingBytes in interface BlobOrBuilder
      Returns:
      The bytes for encoding.
    • getSizeBytes

      public long getSizeBytes()
       Size of the blob content in bytes.
       
      int64 size_bytes = 8 [json_name = "sizeBytes"];
      Specified by:
      getSizeBytes in interface BlobOrBuilder
      Returns:
      The sizeBytes.
    • hasChecksum

      public boolean hasChecksum()
       Checksum value for integrity verification.
       
      optional string checksum = 9 [json_name = "checksum"];
      Specified by:
      hasChecksum in interface BlobOrBuilder
      Returns:
      Whether the checksum field is set.
    • getChecksum

      public String getChecksum()
       Checksum value for integrity verification.
       
      optional string checksum = 9 [json_name = "checksum"];
      Specified by:
      getChecksum in interface BlobOrBuilder
      Returns:
      The checksum.
    • getChecksumBytes

      public com.google.protobuf.ByteString getChecksumBytes()
       Checksum value for integrity verification.
       
      optional string checksum = 9 [json_name = "checksum"];
      Specified by:
      getChecksumBytes in interface BlobOrBuilder
      Returns:
      The bytes for checksum.
    • getChecksumTypeValue

      public int getChecksumTypeValue()
       Type of checksum algorithm used.
       
      .ai.pipestream.data.v1.ChecksumType checksum_type = 10 [json_name = "checksumType"];
      Specified by:
      getChecksumTypeValue in interface BlobOrBuilder
      Returns:
      The enum numeric value on the wire for checksumType.
    • getChecksumType

      public ChecksumType getChecksumType()
       Type of checksum algorithm used.
       
      .ai.pipestream.data.v1.ChecksumType checksum_type = 10 [json_name = "checksumType"];
      Specified by:
      getChecksumType in interface BlobOrBuilder
      Returns:
      The checksumType.
    • hasMetadata

      public boolean hasMetadata()
       Additional blob metadata stored in the database.
       
      optional .google.protobuf.Struct metadata = 11 [json_name = "metadata"];
      Specified by:
      hasMetadata in interface BlobOrBuilder
      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 [json_name = "metadata"];
      Specified by:
      getMetadata in interface BlobOrBuilder
      Returns:
      The metadata.
    • getMetadataOrBuilder

      public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
       Additional blob metadata stored in the database.
       
      optional .google.protobuf.Struct metadata = 11 [json_name = "metadata"];
      Specified by:
      getMetadataOrBuilder in interface BlobOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Blob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      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

      public static Blob parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Blob parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Blob parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Blob parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Blob parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Blob parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Blob.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Blob.Builder newBuilder()
    • newBuilder

      public static Blob.Builder newBuilder(Blob prototype)
    • toBuilder

      public Blob.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Blob.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Blob getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Blob> parser()
    • getParserForType

      public com.google.protobuf.Parser<Blob> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Blob getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder