Google Cloud Dialogflow V2 Client - Class Config (2.8.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Config.

The config of the session.

Generated from protobuf message google.cloud.dialogflow.v2.BidiStreamingAnalyzeContentRequest.Config

Namespace

Google \ Cloud \ Dialogflow \ V2 \ BidiStreamingAnalyzeContentRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ participant string

Required. The name of the participant to fetch response for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.

↳ voice_session_config Config\VoiceSessionConfig

Configure a voice-based session.

↳ initial_virtual_agent_parameters Google\Protobuf\Struct

Optional. Parameters to be passed to the virtual agent at the beginning.

↳ initial_virtual_agent_query_params Google\Cloud\Dialogflow\V2\QueryParameters

Optional. Initial parameters for the virtual-agent.

getParticipant

Required. The name of the participant to fetch response for.

Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.

Returns
Type Description
string

setParticipant

Required. The name of the participant to fetch response for.

Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>.

Parameter
Name Description
var string
Returns
Type Description
$this

getVoiceSessionConfig

Configure a voice-based session.

Returns
Type Description
Config\VoiceSessionConfig|null

hasVoiceSessionConfig

setVoiceSessionConfig

Configure a voice-based session.

Parameter
Name Description
var Config\VoiceSessionConfig
Returns
Type Description
$this

getInitialVirtualAgentParameters

Optional. Parameters to be passed to the virtual agent at the beginning.

Returns
Type Description
Google\Protobuf\Struct|null

hasInitialVirtualAgentParameters

clearInitialVirtualAgentParameters

setInitialVirtualAgentParameters

Optional. Parameters to be passed to the virtual agent at the beginning.

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

getInitialVirtualAgentQueryParams

Optional. Initial parameters for the virtual-agent.

Returns
Type Description
Google\Cloud\Dialogflow\V2\QueryParameters|null

hasInitialVirtualAgentQueryParams

clearInitialVirtualAgentQueryParams

setInitialVirtualAgentQueryParams

Optional. Initial parameters for the virtual-agent.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\QueryParameters
Returns
Type Description
$this

getConfig

Returns
Type Description
string