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

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

A2AMessage is one unit of communication between client and server.

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

Namespace

Google \ Cloud \ GeminiDataAnalytics \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ message_id string

Optional. The unique identifier (e.g. UUID) of the message.

↳ context_id string

Optional. The context id of the message.

↳ task_id string

Optional. The task id of the message.

↳ role int

Optional. A role for the message.

↳ content array<Part>

Optional. Content is the container of the message content.

↳ metadata Google\Protobuf\Struct

Optional. Any optional metadata to provide along with the message.

↳ extensions string[]

Optional. The URIs of extensions that are present or contributed to this Message.

getMessageId

Optional. The unique identifier (e.g. UUID) of the message.

Returns
Type Description
string

setMessageId

Optional. The unique identifier (e.g. UUID) of the message.

Parameter
Name Description
var string
Returns
Type Description
$this

getContextId

Optional. The context id of the message.

Returns
Type Description
string

setContextId

Optional. The context id of the message.

Parameter
Name Description
var string
Returns
Type Description
$this

getTaskId

Optional. The task id of the message.

Returns
Type Description
string

setTaskId

Optional. The task id of the message.

Parameter
Name Description
var string
Returns
Type Description
$this

getRole

Optional. A role for the message.

Returns
Type Description
int Enum of type Role.

setRole

Optional. A role for the message.

Parameter
Name Description
var int

Enum of type Role.

Returns
Type Description
$this

getContent

Optional. Content is the container of the message content.

Returns
Type Description
Google\Protobuf\RepeatedField<Part>

setContent

Optional. Content is the container of the message content.

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

getMetadata

Optional. Any optional metadata to provide along with the message.

Returns
Type Description
Google\Protobuf\Struct|null

hasMetadata

clearMetadata

setMetadata

Optional. Any optional metadata to provide along with the message.

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

getExtensions

Optional. The URIs of extensions that are present or contributed to this Message.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setExtensions

Optional. The URIs of extensions that are present or contributed to this Message.

Parameter
Name Description
var string[]
Returns
Type Description
$this