Google Cloud Ces V1 Client - Class Chunk (0.2.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.

↳ blob
Blob

Optional. Blob data.

↳ 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

getBlob

Optional. Blob data.

Returns
Type
Description
Blob |null

hasBlob

setBlob

Optional. Blob data.

Parameter
Name
Description
var
Returns
Type
Description
$this

getPayload

Optional. Custom payload data.

Returns
Type
Description

hasPayload

setPayload

Optional. Custom payload data.

Parameter
Name
Description
Returns
Type
Description
$this

getImage

Optional. Image data.

Returns
Type
Description
Image |null

hasImage

setImage

Optional. Image data.

Parameter
Name
Description
var
Returns
Type
Description
$this

getToolCall

Optional. Tool execution request.

Returns
Type
Description
ToolCall |null

hasToolCall

setToolCall

Optional. Tool execution request.

Parameter
Name
Description
var
Returns
Type
Description
$this

getToolResponse

Optional. Tool execution response.

Returns
Type
Description
ToolResponse |null

hasToolResponse

setToolResponse

Optional. Tool execution response.

Parameter
Name
Description
Returns
Type
Description
$this

getAgentTransfer

Optional. Agent transfer event.

Returns
Type
Description

hasAgentTransfer

setAgentTransfer

Optional. Agent transfer event.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdatedVariables

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

Returns
Type
Description

hasUpdatedVariables

setUpdatedVariables

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

Parameter
Name
Description
Returns
Type
Description
$this

getDefaultVariables

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

Returns
Type
Description

hasDefaultVariables

setDefaultVariables

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

Parameter
Name
Description
Returns
Type
Description
$this

getData

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