Google Cloud Dialogflow Cx V3 Client - Class Agent (0.2.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class Agent.

Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way.

After you create an agent, you can add Intents, Entity Types, Flows, Fulfillments, Webhooks, TransitionRouteGroups and so on to manage the conversation flows.

Generated from protobuf message google.cloud.dialogflow.cx.v3.Agent

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

↳ display_name string

Required. The human-readable name of the agent, unique within the location.

↳ default_language_code string

Required. Immutable. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.

↳ supported_language_codes array

The list of all languages supported by the agent (except for the default_language_code).

↳ time_zone string

Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris.

↳ description string

The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.

↳ avatar_uri string

The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

↳ speech_to_text_settings Google\Cloud\Dialogflow\Cx\V3\SpeechToTextSettings

Speech recognition related settings.

↳ start_flow string

Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

↳ security_settings string

Name of the SecuritySettings reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>.

↳ enable_stackdriver_logging bool

Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.

↳ enable_spell_correction bool

Indicates if automatic spell correction is enabled in detect intent requests.

↳ locked bool

Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for RestoreAgent.

↳ advanced_settings Google\Cloud\Dialogflow\Cx\V3\AdvancedSettings

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

↳ git_integration_settings Google\Cloud\Dialogflow\Cx\V3\Agent\GitIntegrationSettings

Git integration settings for this agent.

↳ text_to_speech_settings Google\Cloud\Dialogflow\Cx\V3\TextToSpeechSettings

Settings on instructing the speech synthesizer on how to generate the output audio content.

↳ gen_app_builder_settings Google\Cloud\Dialogflow\Cx\V3\Agent\GenAppBuilderSettings

Gen App Builder-related agent-level settings.

↳ answer_feedback_settings Google\Cloud\Dialogflow\Cx\V3\Agent\AnswerFeedbackSettings

Optional. Answer feedback collection settings.

getName

The unique identifier of the agent.

Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

Returns
TypeDescription
string

setName

The unique identifier of the agent.

Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Required. The human-readable name of the agent, unique within the location.

Returns
TypeDescription
string

setDisplayName

Required. The human-readable name of the agent, unique within the location.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDefaultLanguageCode

Required. Immutable. The default language of the agent as a language tag.

See Language Support for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.

Returns
TypeDescription
string

setDefaultLanguageCode

Required. Immutable. The default language of the agent as a language tag.

See Language Support for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSupportedLanguageCodes

The list of all languages supported by the agent (except for the default_language_code).

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSupportedLanguageCodes

The list of all languages supported by the agent (except for the default_language_code).

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getTimeZone

Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris.

Returns
TypeDescription
string

setTimeZone

Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.

Returns
TypeDescription
string

setDescription

The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAvatarUri

The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

Returns
TypeDescription
string

setAvatarUri

The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSpeechToTextSettings

Speech recognition related settings.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\SpeechToTextSettings|null

hasSpeechToTextSettings

clearSpeechToTextSettings

setSpeechToTextSettings

Speech recognition related settings.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\SpeechToTextSettings
Returns
TypeDescription
$this

getStartFlow

Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

Returns
TypeDescription
string

setStartFlow

Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSecuritySettings

Name of the SecuritySettings reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>.

Returns
TypeDescription
string

setSecuritySettings

Name of the SecuritySettings reference for the agent. Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEnableStackdriverLogging

Indicates if stackdriver logging is enabled for the agent.

Please use agent.advanced_settings instead.

Returns
TypeDescription
bool

setEnableStackdriverLogging

Indicates if stackdriver logging is enabled for the agent.

Please use agent.advanced_settings instead.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getEnableSpellCorrection

Indicates if automatic spell correction is enabled in detect intent requests.

Returns
TypeDescription
bool

setEnableSpellCorrection

Indicates if automatic spell correction is enabled in detect intent requests.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLocked

Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for RestoreAgent.

Returns
TypeDescription
bool

setLocked

Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for RestoreAgent.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getAdvancedSettings

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\AdvancedSettings|null

hasAdvancedSettings

clearAdvancedSettings

setAdvancedSettings

Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\AdvancedSettings
Returns
TypeDescription
$this

getGitIntegrationSettings

Git integration settings for this agent.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\Agent\GitIntegrationSettings|null

hasGitIntegrationSettings

clearGitIntegrationSettings

setGitIntegrationSettings

Git integration settings for this agent.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\Agent\GitIntegrationSettings
Returns
TypeDescription
$this

getTextToSpeechSettings

Settings on instructing the speech synthesizer on how to generate the output audio content.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\TextToSpeechSettings|null

hasTextToSpeechSettings

clearTextToSpeechSettings

setTextToSpeechSettings

Settings on instructing the speech synthesizer on how to generate the output audio content.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\TextToSpeechSettings
Returns
TypeDescription
$this

getGenAppBuilderSettings

Gen App Builder-related agent-level settings.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\Agent\GenAppBuilderSettings|null

hasGenAppBuilderSettings

clearGenAppBuilderSettings

setGenAppBuilderSettings

Gen App Builder-related agent-level settings.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\Agent\GenAppBuilderSettings
Returns
TypeDescription
$this

getAnswerFeedbackSettings

Optional. Answer feedback collection settings.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\Agent\AnswerFeedbackSettings|null

hasAnswerFeedbackSettings

clearAnswerFeedbackSettings

setAnswerFeedbackSettings

Optional. Answer feedback collection settings.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\Agent\AnswerFeedbackSettings
Returns
TypeDescription
$this