TextMessageResponse
extends Message
in package
Generated from protobuf message <code>livekit.TextMessageResponse</code>
Table of Contents
Properties
- $error : mixed
- Generated from protobuf field <code>string error = 3;</code>
- $message_id : mixed
- Indicate the request is completed
- $session_state : mixed
- Generated from protobuf field <code>.livekit.AgentSessionState session_state = 2;</code>
Methods
- __construct() : mixed
- Constructor.
- clearSessionState() : mixed
- getError() : string
- Generated from protobuf field <code>string error = 3;</code>
- getMessageId() : string
- Indicate the request is completed
- getSessionState() : AgentSessionState|null
- Generated from protobuf field <code>.livekit.AgentSessionState session_state = 2;</code>
- hasSessionState() : mixed
- setError() : $this
- Generated from protobuf field <code>string error = 3;</code>
- setMessageId() : $this
- Indicate the request is completed
- setSessionState() : $this
- Generated from protobuf field <code>.livekit.AgentSessionState session_state = 2;</code>
Properties
$error
Generated from protobuf field <code>string error = 3;</code>
protected
mixed
$error
= ''
$message_id
Indicate the request is completed
protected
mixed
$message_id
= ''
Generated from protobuf field string message_id = 1;
$session_state
Generated from protobuf field <code>.livekit.AgentSessionState session_state = 2;</code>
protected
mixed
$session_state
= null
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
{ Optional. Data for populating the Message object.
@type string $message_id Indicate the request is completed @type \Livekit\AgentSessionState $session_state @type string $error}
clearSessionState()
public
clearSessionState() : mixed
getError()
Generated from protobuf field <code>string error = 3;</code>
public
getError() : string
Return values
stringgetMessageId()
Indicate the request is completed
public
getMessageId() : string
Generated from protobuf field string message_id = 1;
Return values
stringgetSessionState()
Generated from protobuf field <code>.livekit.AgentSessionState session_state = 2;</code>
public
getSessionState() : AgentSessionState|null
Return values
AgentSessionState|nullhasSessionState()
public
hasSessionState() : mixed
setError()
Generated from protobuf field <code>string error = 3;</code>
public
setError(string $var) : $this
Parameters
- $var : string
Return values
$thissetMessageId()
Indicate the request is completed
public
setMessageId(string $var) : $this
Generated from protobuf field string message_id = 1;
Parameters
- $var : string
Return values
$thissetSessionState()
Generated from protobuf field <code>.livekit.AgentSessionState session_state = 2;</code>
public
setSessionState(AgentSessionState $var) : $this
Parameters
- $var : AgentSessionState