Google Cloud Ces V1 Client - Class Chunk (0.1.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class Chunk.

A chunk of content within a message.

Generated from protobuf message google.cloud.ces.v1.Chunk

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text string

Optional. Text data.

↳ transcript string

Optional. Transcript associated with the audio.

↳ payload Google\Protobuf\Struct

Optional. Custom payload data.

↳ image Image

Optional. Image data.

↳ tool_call ToolCall

Optional. Tool execution request.

↳ tool_response ToolResponse

Optional. Tool execution response.

↳ agent_transfer AgentTransfer

Optional. Agent transfer event.

↳ updated_variables Google\Protobuf\Struct

A struct represents variables that were updated in the conversation, keyed by variable names.

↳ default_variables Google\Protobuf\Struct

A struct represents default variables at the start of the conversation, keyed by variable names.

getText

Optional. Text data.

Returns
Type Description
string

hasText

setText

Optional. Text data.

Parameter
Name Description
var string
Returns
Type Description
$this

getTranscript

Optional. Transcript associated with the audio.

Returns
Type Description
string

hasTranscript

setTranscript

Optional. Transcript associated with the audio.

Parameter
Name Description
var string
Returns
Type Description
$this

getPayload

Optional. Custom payload data.

Returns
Type Description
Google\Protobuf\Struct|null

hasPayload

setPayload

Optional. Custom payload data.

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

getImage

Optional. Image data.

Returns
Type Description
Image|null

hasImage

setImage

Optional. Image data.

Parameter
Name Description
var Image
Returns
Type Description
$this

getToolCall

Optional. Tool execution request.

Returns
Type Description
ToolCall|null

hasToolCall

setToolCall

Optional. Tool execution request.

Parameter
Name Description
var ToolCall
Returns
Type Description
$this

getToolResponse

Optional. Tool execution response.

Returns
Type Description
ToolResponse|null

hasToolResponse

setToolResponse

Optional. Tool execution response.

Parameter
Name Description
var ToolResponse
Returns
Type Description
$this

getAgentTransfer

Optional. Agent transfer event.

Returns
Type Description
AgentTransfer|null

hasAgentTransfer

setAgentTransfer

Optional. Agent transfer event.

Parameter
Name Description
var AgentTransfer
Returns
Type Description
$this

getUpdatedVariables

A struct represents variables that were updated in the conversation, keyed by variable names.

Returns
Type Description
Google\Protobuf\Struct|null

hasUpdatedVariables

setUpdatedVariables

A struct represents variables that were updated in the conversation, keyed by variable names.

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

getDefaultVariables

A struct represents default variables at the start of the conversation, keyed by variable names.

Returns
Type Description
Google\Protobuf\Struct|null

hasDefaultVariables

setDefaultVariables

A struct represents default variables at the start of the conversation, keyed by variable names.

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

getData

Returns
Type Description
string