InlineDataPart

class InlineDataPart : Part


Represents binary data with an associated MIME type sent to and received from requests.

Summary

Public companion functions

InlineDataPart
@PublicPreviewAPI
createWithThinking(
    inlineData: ByteArray,
    mimeType: String,
    displayName: String?,
    isThought: Boolean,
    thoughtSignature: String?
)

Creates an InlineDataPart with advanced thinking metadata.

Public constructors

InlineDataPart(inlineData: ByteArray, mimeType: String)
InlineDataPart(
    inlineData: ByteArray,
    mimeType: String,
    displayName: String
)

Public companion functions

createWithThinking

@PublicPreviewAPI
fun createWithThinking(
    inlineData: ByteArray,
    mimeType: String,
    displayName: String?,
    isThought: Boolean,
    thoughtSignature: String?
): InlineDataPart

Creates an InlineDataPart with advanced thinking metadata.

Parameters
inlineData: ByteArray

The binary data as a ByteArray.

mimeType: String

An IANA standard MIME type.

displayName: String?

The name of the file, including the extension.

isThought: Boolean

Indicates whether the response is a thought.

thoughtSignature: String?

The signature associated with the thought, if any.

Public constructors

InlineDataPart

InlineDataPart(inlineData: ByteArray, mimeType: String)
Parameters
inlineData: ByteArray

the binary data as a ByteArray

mimeType: String

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

InlineDataPart

InlineDataPart(
    inlineData: ByteArray,
    mimeType: String,
    displayName: String
)
Parameters
inlineData: ByteArray

the binary data as a ByteArray

mimeType: String

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

displayName: String

the name of the file, including the extension

Public properties

displayName

val displayNameString?

inlineData

val inlineDataByteArray

isThought

open val isThoughtBoolean

mimeType

val mimeTypeString

thoughtSignature

val thoughtSignatureString?