TextMessageRequest
extends Message
in package
Generated from protobuf message <code>livekit.TextMessageRequest</code>
Table of Contents
Properties
- $agent_name : mixed
- Generated from protobuf field <code>string agent_name = 3;</code>
- $message_id : mixed
- Generated from protobuf field <code>string message_id = 1;</code>
- $metadata : mixed
- Generated from protobuf field <code>string metadata = 4;</code>
- $session_id : mixed
- Generated from protobuf field <code>string session_id = 2;</code>
- $session_state : mixed
- Generated from protobuf field <code>.livekit.AgentSessionState session_state = 5;</code>
- $text : mixed
- Generated from protobuf field <code>string text = 6;</code>
Methods
- __construct() : mixed
- Constructor.
- clearSessionState() : mixed
- getAgentName() : string
- Generated from protobuf field <code>string agent_name = 3;</code>
- getMessageId() : string
- Generated from protobuf field <code>string message_id = 1;</code>
- getMetadata() : string
- Generated from protobuf field <code>string metadata = 4;</code>
- getSessionId() : string
- Generated from protobuf field <code>string session_id = 2;</code>
- getSessionState() : AgentSessionState|null
- Generated from protobuf field <code>.livekit.AgentSessionState session_state = 5;</code>
- getText() : string
- Generated from protobuf field <code>string text = 6;</code>
- hasSessionState() : mixed
- setAgentName() : $this
- Generated from protobuf field <code>string agent_name = 3;</code>
- setMessageId() : $this
- Generated from protobuf field <code>string message_id = 1;</code>
- setMetadata() : $this
- Generated from protobuf field <code>string metadata = 4;</code>
- setSessionId() : $this
- Generated from protobuf field <code>string session_id = 2;</code>
- setSessionState() : $this
- Generated from protobuf field <code>.livekit.AgentSessionState session_state = 5;</code>
- setText() : $this
- Generated from protobuf field <code>string text = 6;</code>
Properties
$agent_name
Generated from protobuf field <code>string agent_name = 3;</code>
protected
mixed
$agent_name
= ''
$message_id
Generated from protobuf field <code>string message_id = 1;</code>
protected
mixed
$message_id
= ''
$metadata
Generated from protobuf field <code>string metadata = 4;</code>
protected
mixed
$metadata
= ''
$session_id
Generated from protobuf field <code>string session_id = 2;</code>
protected
mixed
$session_id
= ''
$session_state
Generated from protobuf field <code>.livekit.AgentSessionState session_state = 5;</code>
protected
mixed
$session_state
= null
$text
Generated from protobuf field <code>string text = 6;</code>
protected
mixed
$text
= ''
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 @type string $session_id @type string $agent_name @type string $metadata @type \Livekit\AgentSessionState $session_state @type string $text}
clearSessionState()
public
clearSessionState() : mixed
getAgentName()
Generated from protobuf field <code>string agent_name = 3;</code>
public
getAgentName() : string
Return values
stringgetMessageId()
Generated from protobuf field <code>string message_id = 1;</code>
public
getMessageId() : string
Return values
stringgetMetadata()
Generated from protobuf field <code>string metadata = 4;</code>
public
getMetadata() : string
Return values
stringgetSessionId()
Generated from protobuf field <code>string session_id = 2;</code>
public
getSessionId() : string
Return values
stringgetSessionState()
Generated from protobuf field <code>.livekit.AgentSessionState session_state = 5;</code>
public
getSessionState() : AgentSessionState|null
Return values
AgentSessionState|nullgetText()
Generated from protobuf field <code>string text = 6;</code>
public
getText() : string
Return values
stringhasSessionState()
public
hasSessionState() : mixed
setAgentName()
Generated from protobuf field <code>string agent_name = 3;</code>
public
setAgentName(string $var) : $this
Parameters
- $var : string
Return values
$thissetMessageId()
Generated from protobuf field <code>string message_id = 1;</code>
public
setMessageId(string $var) : $this
Parameters
- $var : string
Return values
$thissetMetadata()
Generated from protobuf field <code>string metadata = 4;</code>
public
setMetadata(string $var) : $this
Parameters
- $var : string
Return values
$thissetSessionId()
Generated from protobuf field <code>string session_id = 2;</code>
public
setSessionId(string $var) : $this
Parameters
- $var : string
Return values
$thissetSessionState()
Generated from protobuf field <code>.livekit.AgentSessionState session_state = 5;</code>
public
setSessionState(AgentSessionState $var) : $this
Parameters
- $var : AgentSessionState
Return values
$thissetText()
Generated from protobuf field <code>string text = 6;</code>
public
setText(string $var) : $this
Parameters
- $var : string