Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Agent

Returns a new instance of GoogleCloudDialogflowCxV3beta1Agent.



4064
4065
4066
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4064

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#advanced_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettings

Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level. Overriding occurs at the sub-setting level. For example, the playback_interruption_settings at fulfillment level only overrides the playback_interruption_settings at the agent level, leaving other settings at the agent level unchanged. DTMF settings does not override each other. DTMF settings set at different levels define DTMF detections running in parallel. Hierarchy: Agent->Flow->Page->Fulfillment/Parameter. Corresponds to the JSON property advancedSettings



3946
3947
3948
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3946

def advanced_settings
  @advanced_settings
end

#answer_feedback_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings

Settings for answer feedback collection. Corresponds to the JSON property answerFeedbackSettings



3951
3952
3953
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3951

def answer_feedback_settings
  @answer_feedback_settings
end

#avatar_uriString

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

Returns:

  • (String)


3958
3959
3960
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3958

def avatar_uri
  @avatar_uri
end

#default_language_codeString

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. Corresponds to the JSON property defaultLanguageCode

Returns:

  • (String)


3966
3967
3968
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3966

def default_language_code
  @default_language_code
end

#descriptionString

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

Returns:

  • (String)


3972
3973
3974
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3972

def description
  @description
end

#display_nameString

Required. The human-readable name of the agent, unique within the location. Corresponds to the JSON property displayName

Returns:

  • (String)


3977
3978
3979
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3977

def display_name
  @display_name
end

#enable_spell_correctionBoolean Also known as: enable_spell_correction?

Indicates if automatic spell correction is enabled in detect intent requests. Corresponds to the JSON property enableSpellCorrection

Returns:

  • (Boolean)


3982
3983
3984
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3982

def enable_spell_correction
  @enable_spell_correction
end

#enable_stackdriver_loggingBoolean Also known as: enable_stackdriver_logging?

Indicates if stackdriver logging is enabled for the agent. Please use agent. advanced_settings instead. Corresponds to the JSON property enableStackdriverLogging

Returns:

  • (Boolean)


3989
3990
3991
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3989

def enable_stackdriver_logging
  @enable_stackdriver_logging
end

#gen_app_builder_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings

Settings for Gen App Builder. Corresponds to the JSON property genAppBuilderSettings



3995
3996
3997
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3995

def gen_app_builder_settings
  @gen_app_builder_settings
end

#git_integration_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings

Settings for connecting to Git repository for an agent. Corresponds to the JSON property gitIntegrationSettings



4000
4001
4002
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4000

def git_integration_settings
  @git_integration_settings
end

#lockedBoolean Also known as: locked?

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

Returns:

  • (Boolean)


4006
4007
4008
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4006

def locked
  @locked
end

#nameString

The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: projects// locations//agents/. Corresponds to the JSON property name

Returns:

  • (String)


4014
4015
4016
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4014

def name
  @name
end

#security_settingsString

Name of the SecuritySettings reference for the agent. Format: projects// locations//securitySettings/. Corresponds to the JSON property securitySettings

Returns:

  • (String)


4020
4021
4022
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4020

def security_settings
  @security_settings
end

#speech_to_text_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SpeechToTextSettings

Settings related to speech recognition. Corresponds to the JSON property speechToTextSettings



4025
4026
4027
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4025

def speech_to_text_settings
  @speech_to_text_settings
end

#start_flowString

Optional. 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//locations//agents//flows/. Currently only the default start flow with id "00000000-0000-0000-0000-000000000000" is allowed. Only one of start_flow or start_playbook should be set, but not both. Corresponds to the JSON property startFlow

Returns:

  • (String)


4035
4036
4037
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4035

def start_flow
  @start_flow
end

#start_playbookString

Optional. Name of the start playbook in this agent. A start playbook will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: projects//locations//agents//playbooks/. Currently only the default playbook with id "00000000-0000-0000-0000- 000000000000" is allowed. Only one of start_flow or start_playbook should be set, but not both. Corresponds to the JSON property startPlaybook

Returns:

  • (String)


4045
4046
4047
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4045

def start_playbook
  @start_playbook
end

#supported_language_codesArray<String>

The list of all languages supported by the agent (except for the default_language_code). Corresponds to the JSON property supportedLanguageCodes

Returns:

  • (Array<String>)


4051
4052
4053
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4051

def supported_language_codes
  @supported_language_codes
end

#text_to_speech_settingsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TextToSpeechSettings

Settings related to speech synthesizing. Corresponds to the JSON property textToSpeechSettings



4056
4057
4058
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4056

def text_to_speech_settings
  @text_to_speech_settings
end

#time_zoneString

Required. The time zone of the agent from the time zone database, e.g., America/New_York, Europe/Paris. Corresponds to the JSON property timeZone

Returns:

  • (String)


4062
4063
4064
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4062

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4069

def update!(**args)
  @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
  @answer_feedback_settings = args[:answer_feedback_settings] if args.key?(:answer_feedback_settings)
  @avatar_uri = args[:avatar_uri] if args.key?(:avatar_uri)
  @default_language_code = args[:default_language_code] if args.key?(:default_language_code)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @enable_spell_correction = args[:enable_spell_correction] if args.key?(:enable_spell_correction)
  @enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging)
  @gen_app_builder_settings = args[:gen_app_builder_settings] if args.key?(:gen_app_builder_settings)
  @git_integration_settings = args[:git_integration_settings] if args.key?(:git_integration_settings)
  @locked = args[:locked] if args.key?(:locked)
  @name = args[:name] if args.key?(:name)
  @security_settings = args[:security_settings] if args.key?(:security_settings)
  @speech_to_text_settings = args[:speech_to_text_settings] if args.key?(:speech_to_text_settings)
  @start_flow = args[:start_flow] if args.key?(:start_flow)
  @start_playbook = args[:start_playbook] if args.key?(:start_playbook)
  @supported_language_codes = args[:supported_language_codes] if args.key?(:supported_language_codes)
  @text_to_speech_settings = args[:text_to_speech_settings] if args.key?(:text_to_speech_settings)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end