Google Cloud Discovery Engine V1 Client - Class AssistantContent (1.7.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class AssistantContent.

Multi-modal content.

Generated from protobuf message google.cloud.discoveryengine.v1.AssistantContent

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ text
string

Inline text.

↳ inline_data
AssistantContent\Blob

Inline binary data.

↳ file
AssistantContent\File

A file, e.g., an audio summary.

↳ executable_code
AssistantContent\ExecutableCode

Code generated by the model that is meant to be executed.

↳ code_execution_result
AssistantContent\CodeExecutionResult

Result of executing an ExecutableCode.

↳ role
string

The producer of the content. Can be "model" or "user".

↳ thought
bool

Optional. Indicates if the part is thought from the model.

getText

Inline text.

Returns
Type
Description
string

hasText

setText

Inline text.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getInlineData

Inline binary data.

Returns
Type
Description

hasInlineData

setInlineData

Inline binary data.

Parameter
Name
Description
Returns
Type
Description
$this

getFile

A file, e.g., an audio summary.

Returns
Type
Description

hasFile

setFile

A file, e.g., an audio summary.

Parameter
Name
Description
Returns
Type
Description
$this

getExecutableCode

Code generated by the model that is meant to be executed.

Returns
Type
Description

hasExecutableCode

setExecutableCode

Code generated by the model that is meant to be executed.

Parameter
Name
Description
Returns
Type
Description
$this

getCodeExecutionResult

Result of executing an ExecutableCode.

Returns
Type
Description

hasCodeExecutionResult

setCodeExecutionResult

Result of executing an ExecutableCode.

Parameter
Name
Description
Returns
Type
Description
$this

getRole

The producer of the content. Can be "model" or "user".

Returns
Type
Description
string

setRole

The producer of the content. Can be "model" or "user".

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getThought

Optional. Indicates if the part is thought from the model.

Returns
Type
Description
bool

setThought

Optional. Indicates if the part is thought from the model.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getData

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: