Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v3/classes.rb,
generated/google/apis/dialogflow_v3/representations.rb,
generated/google/apis/dialogflow_v3/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, and so on to manage the conversation flows..

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3Agent

Returns a new instance of GoogleCloudDialogflowCxV3Agent.



96
97
98
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 96

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

Instance Attribute Details

#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)


38
39
40
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 38

def avatar_uri
  @avatar_uri
end

#default_language_codeString

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)


46
47
48
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 46

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)


52
53
54
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 52

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)


57
58
59
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 57

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)


62
63
64
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 62

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

Returns:

  • (Boolean)


68
69
70
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 68

def enable_stackdriver_logging
  @enable_stackdriver_logging
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)


76
77
78
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 76

def name
  @name
end

#speech_to_text_settingsGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SpeechToTextSettings

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



81
82
83
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 81

def speech_to_text_settings
  @speech_to_text_settings
end

#start_flowString

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//locations//agents//flows/. Corresponds to the JSON property startFlow

Returns:

  • (String)


88
89
90
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 88

def start_flow
  @start_flow
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)


94
95
96
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 94

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



101
102
103
104
105
106
107
108
109
110
111
112
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 101

def update!(**args)
  @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)
  @name = args[:name] if args.key?(:name)
  @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)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end