Google Cloud Gemini Data Analytics V1beta Client - Class A2ATask (0.14.0)

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class A2ATask.

A2ATask is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.

Generated from protobuf message google.cloud.geminidataanalytics.v1beta.A2ATask

Namespace

Google \ Cloud \ GeminiDataAnalytics \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ id string

Optional. Unique identifier (e.g. UUID) for the task, generated by the server for a new task.

↳ context_id string

Optional. Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.

↳ status TaskStatus

Optional. The current status of a Task, including state and a message.

↳ artifacts array<A2AArtifact>

Optional. A set of output artifacts for a Task.

↳ history array<A2AMessage>

Optional. The history of interactions from a task.

↳ metadata Google\Protobuf\Struct

Optional. A key/value object to store custom metadata about a task.

getId

Optional. Unique identifier (e.g. UUID) for the task, generated by the server for a new task.

Returns
Type Description
string

setId

Optional. Unique identifier (e.g. UUID) for the task, generated by the server for a new task.

Parameter
Name Description
var string
Returns
Type Description
$this

getContextId

Optional. Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.

Returns
Type Description
string

setContextId

Optional. Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.

Parameter
Name Description
var string
Returns
Type Description
$this

getStatus

Optional. The current status of a Task, including state and a message.

Returns
Type Description
TaskStatus|null

hasStatus

clearStatus

setStatus

Optional. The current status of a Task, including state and a message.

Parameter
Name Description
var TaskStatus
Returns
Type Description
$this

getArtifacts

Optional. A set of output artifacts for a Task.

Returns
Type Description
Google\Protobuf\RepeatedField<A2AArtifact>

setArtifacts

Optional. A set of output artifacts for a Task.

Parameter
Name Description
var array<A2AArtifact>
Returns
Type Description
$this

getHistory

Optional. The history of interactions from a task.

Returns
Type Description
Google\Protobuf\RepeatedField<A2AMessage>

setHistory

Optional. The history of interactions from a task.

Parameter
Name Description
var array<A2AMessage>
Returns
Type Description
$this

getMetadata

Optional. A key/value object to store custom metadata about a task.

Returns
Type Description
Google\Protobuf\Struct|null

hasMetadata

clearMetadata

setMetadata

Optional. A key/value object to store custom metadata about a task.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this