Interface FunctionResponseBlobOrBuilder (3.79.0)

public interface FunctionResponseBlobOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getData()

public abstract ByteString getData()

Required. Raw bytes.

bytes data = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The data.

getDisplayName()

public abstract String getDisplayName()

Optional. Display name of the blob.

Used to provide a label or filename to distinguish blobs.

This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

Optional. Display name of the blob.

Used to provide a label or filename to distinguish blobs.

This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getMimeType()

public abstract String getMimeType()

Required. The IANA standard MIME type of the source data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public abstract ByteString getMimeTypeBytes()

Required. The IANA standard MIME type of the source data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for mimeType.