Firebase.AI.ModelContent.FileDataPart

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

Summary

Inheritance

Inherits from: Firebase.AI.ModelContent.Part

Constructors and Destructors

FileDataPart(string mimeType, System.Uri uri)
Constructs a new file data part.

Properties

MimeType
string
The IANA standard MIME type of the data.
Uri
System.Uri
The URI of the file.

Public functions

ToJson()
Dictionary< string, object > Part.

Properties

MimeType

string Firebase::AI::ModelContent::FileDataPart::MimeType

The IANA standard MIME type of the data.

Uri

System.Uri Firebase::AI::ModelContent::FileDataPart::Uri

The URI of the file.

Public functions

FileDataPart

 Firebase::AI::ModelContent::FileDataPart::FileDataPart(
  string mimeType,
  System.Uri uri
)

Constructs a new file data part.

Details
Parameters
mimeType
The IANA standard MIME type of the uploaded file, for example, "image/jpeg" or "video/mp4"; see media requirements for supported values.
uri
The "gs://"-prefixed URI of the file in Cloud Storage for Firebase, for example, "gs://bucket-name/path/image.jpg"

ToJson

Dictionary< string, object > Part. Firebase::AI::ModelContent::FileDataPart::ToJson()