Class Blob.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Blob.Builder>
com.google.protobuf.GeneratedMessage.Builder<Blob.Builder>
ai.pipestream.data.v1.Blob.Builder
All Implemented Interfaces:
BlobOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Blob

public static final class Blob.Builder extends com.google.protobuf.GeneratedMessage.Builder<Blob.Builder> 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
  • 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.Builder<Blob.Builder>
    • clear

      public Blob.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Blob.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Blob.Builder>
    • getDefaultInstanceForType

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

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

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

      public Blob.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Blob.Builder>
    • mergeFrom

      public Blob.Builder mergeFrom(Blob other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Blob.Builder>
    • mergeFrom

      public Blob.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Blob.Builder>
      Throws:
      IOException
    • getContentCase

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

      public Blob.Builder clearContent()
    • 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.
    • setBlobId

      public Blob.Builder setBlobId(String value)
       Unique identifier for this blob.
       
      string blob_id = 1 [json_name = "blobId"];
      Parameters:
      value - The blobId to set.
      Returns:
      This builder for chaining.
    • clearBlobId

      public Blob.Builder clearBlobId()
       Unique identifier for this blob.
       
      string blob_id = 1 [json_name = "blobId"];
      Returns:
      This builder for chaining.
    • setBlobIdBytes

      public Blob.Builder setBlobIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for this blob.
       
      string blob_id = 1 [json_name = "blobId"];
      Parameters:
      value - The bytes for blobId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDriveId

      public Blob.Builder setDriveId(String value)
       Drive/bucket identifier where this blob belongs.
       
      string drive_id = 2 [json_name = "driveId"];
      Parameters:
      value - The driveId to set.
      Returns:
      This builder for chaining.
    • clearDriveId

      public Blob.Builder clearDriveId()
       Drive/bucket identifier where this blob belongs.
       
      string drive_id = 2 [json_name = "driveId"];
      Returns:
      This builder for chaining.
    • setDriveIdBytes

      public Blob.Builder setDriveIdBytes(com.google.protobuf.ByteString value)
       Drive/bucket identifier where this blob belongs.
       
      string drive_id = 2 [json_name = "driveId"];
      Parameters:
      value - The bytes for driveId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setData

      public Blob.Builder setData(com.google.protobuf.ByteString value)
       Inline binary data for small files or sensitive content.
       
      bytes data = 3 [json_name = "data"];
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

      public Blob.Builder clearData()
       Inline binary data for small files or sensitive content.
       
      bytes data = 3 [json_name = "data"];
      Returns:
      This builder for chaining.
    • 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.
    • setStorageRef

      public Blob.Builder setStorageRef(FileStorageReference value)
       Reference to external S3 storage for large files.
       
      .ai.pipestream.data.v1.FileStorageReference storage_ref = 4 [json_name = "storageRef"];
    • setStorageRef

      public Blob.Builder setStorageRef(FileStorageReference.Builder builderForValue)
       Reference to external S3 storage for large files.
       
      .ai.pipestream.data.v1.FileStorageReference storage_ref = 4 [json_name = "storageRef"];
    • mergeStorageRef

      public Blob.Builder mergeStorageRef(FileStorageReference value)
       Reference to external S3 storage for large files.
       
      .ai.pipestream.data.v1.FileStorageReference storage_ref = 4 [json_name = "storageRef"];
    • clearStorageRef

      public Blob.Builder clearStorageRef()
       Reference to external S3 storage for large files.
       
      .ai.pipestream.data.v1.FileStorageReference storage_ref = 4 [json_name = "storageRef"];
    • getStorageRefBuilder

      public FileStorageReference.Builder getStorageRefBuilder()
       Reference to external S3 storage for large files.
       
      .ai.pipestream.data.v1.FileStorageReference storage_ref = 4 [json_name = "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.
    • setMimeType

      public Blob.Builder setMimeType(String value)
       MIME type of the blob content.
       
      optional string mime_type = 5 [json_name = "mimeType"];
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

      public Blob.Builder clearMimeType()
       MIME type of the blob content.
       
      optional string mime_type = 5 [json_name = "mimeType"];
      Returns:
      This builder for chaining.
    • setMimeTypeBytes

      public Blob.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
       MIME type of the blob content.
       
      optional string mime_type = 5 [json_name = "mimeType"];
      Parameters:
      value - The bytes for mimeType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setFilename

      public Blob.Builder setFilename(String value)
       Original filename if available.
       
      optional string filename = 6 [json_name = "filename"];
      Parameters:
      value - The filename to set.
      Returns:
      This builder for chaining.
    • clearFilename

      public Blob.Builder clearFilename()
       Original filename if available.
       
      optional string filename = 6 [json_name = "filename"];
      Returns:
      This builder for chaining.
    • setFilenameBytes

      public Blob.Builder setFilenameBytes(com.google.protobuf.ByteString value)
       Original filename if available.
       
      optional string filename = 6 [json_name = "filename"];
      Parameters:
      value - The bytes for filename to set.
      Returns:
      This builder for chaining.
    • 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.
    • setEncoding

      public Blob.Builder setEncoding(String value)
       Character encoding for text-based blobs.
       
      optional string encoding = 7 [json_name = "encoding"];
      Parameters:
      value - The encoding to set.
      Returns:
      This builder for chaining.
    • clearEncoding

      public Blob.Builder clearEncoding()
       Character encoding for text-based blobs.
       
      optional string encoding = 7 [json_name = "encoding"];
      Returns:
      This builder for chaining.
    • setEncodingBytes

      public Blob.Builder setEncodingBytes(com.google.protobuf.ByteString value)
       Character encoding for text-based blobs.
       
      optional string encoding = 7 [json_name = "encoding"];
      Parameters:
      value - The bytes for encoding to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSizeBytes

      public Blob.Builder setSizeBytes(long value)
       Size of the blob content in bytes.
       
      int64 size_bytes = 8 [json_name = "sizeBytes"];
      Parameters:
      value - The sizeBytes to set.
      Returns:
      This builder for chaining.
    • clearSizeBytes

      public Blob.Builder clearSizeBytes()
       Size of the blob content in bytes.
       
      int64 size_bytes = 8 [json_name = "sizeBytes"];
      Returns:
      This builder for chaining.
    • 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.
    • setChecksum

      public Blob.Builder setChecksum(String value)
       Checksum value for integrity verification.
       
      optional string checksum = 9 [json_name = "checksum"];
      Parameters:
      value - The checksum to set.
      Returns:
      This builder for chaining.
    • clearChecksum

      public Blob.Builder clearChecksum()
       Checksum value for integrity verification.
       
      optional string checksum = 9 [json_name = "checksum"];
      Returns:
      This builder for chaining.
    • setChecksumBytes

      public Blob.Builder setChecksumBytes(com.google.protobuf.ByteString value)
       Checksum value for integrity verification.
       
      optional string checksum = 9 [json_name = "checksum"];
      Parameters:
      value - The bytes for checksum to set.
      Returns:
      This builder for chaining.
    • 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.
    • setChecksumTypeValue

      public Blob.Builder setChecksumTypeValue(int value)
       Type of checksum algorithm used.
       
      .ai.pipestream.data.v1.ChecksumType checksum_type = 10 [json_name = "checksumType"];
      Parameters:
      value - The enum numeric value on the wire for checksumType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setChecksumType

      public Blob.Builder setChecksumType(ChecksumType value)
       Type of checksum algorithm used.
       
      .ai.pipestream.data.v1.ChecksumType checksum_type = 10 [json_name = "checksumType"];
      Parameters:
      value - The checksumType to set.
      Returns:
      This builder for chaining.
    • clearChecksumType

      public Blob.Builder clearChecksumType()
       Type of checksum algorithm used.
       
      .ai.pipestream.data.v1.ChecksumType checksum_type = 10 [json_name = "checksumType"];
      Returns:
      This builder for chaining.
    • 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.
    • setMetadata

      public Blob.Builder setMetadata(com.google.protobuf.Struct value)
       Additional blob metadata stored in the database.
       
      optional .google.protobuf.Struct metadata = 11 [json_name = "metadata"];
    • setMetadata

      public Blob.Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue)
       Additional blob metadata stored in the database.
       
      optional .google.protobuf.Struct metadata = 11 [json_name = "metadata"];
    • mergeMetadata

      public Blob.Builder mergeMetadata(com.google.protobuf.Struct value)
       Additional blob metadata stored in the database.
       
      optional .google.protobuf.Struct metadata = 11 [json_name = "metadata"];
    • clearMetadata

      public Blob.Builder clearMetadata()
       Additional blob metadata stored in the database.
       
      optional .google.protobuf.Struct metadata = 11 [json_name = "metadata"];
    • getMetadataBuilder

      public com.google.protobuf.Struct.Builder getMetadataBuilder()
       Additional blob metadata stored in the database.
       
      optional .google.protobuf.Struct metadata = 11 [json_name = "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