FileDataPart

public final class FileDataPart implements Part


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

Summary

Public fields

final @NonNull String

an IANA standard MIME type.

final @NonNull String

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

Public constructors

Public fields

mimeType

public final @NonNull String mimeType

an IANA standard MIME type. For supported value see the vertex documentation

uri

public final @NonNull String uri

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

Public constructors

FileDataPart

public FileDataPart(@NonNull String uri, @NonNull String mimeType)
Parameters
@NonNull String uri

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

@NonNull String mimeType

an IANA standard MIME type. For supported MIME type values see the Firebase documentation