FirebaseVertexAI Framework Reference

FileDataPart

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct FileDataPart : Part

File data stored in Cloud Storage for Firebase, referenced by URI.

  • uri

    Undocumented

    Declaration

    Swift

    public var uri: String { get }
  • Undocumented

    Declaration

    Swift

    public var mimeType: String { get }
  • Constructs a new file data part.

    Declaration

    Swift

    public init(uri: String, mimeType: String)

    Parameters

    uri

    The "gs://"-prefixed URI of the file in Cloud Storage for Firebase, for example, "gs://bucket-name/path/image.jpg".

    mimeType

    The IANA standard MIME type of the uploaded file, for example, "image/jpeg" or "video/mp4"; see media requirements for supported values.