Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Instance Attribute Summary collapse
-
#action ⇒ String
Corresponds to the JSON property
action. -
#default_response_platforms ⇒ Array<String>
Corresponds to the JSON property
defaultResponsePlatforms. -
#display_name ⇒ String
Corresponds to the JSON property
displayName. -
#end_interaction ⇒ Boolean
(also: #end_interaction?)
Corresponds to the JSON property
endInteraction. -
#events ⇒ Array<String>
Corresponds to the JSON property
events. -
#followup_intent_info ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentFollowupIntentInfo>
Corresponds to the JSON property
followupIntentInfo. -
#input_context_names ⇒ Array<String>
Corresponds to the JSON property
inputContextNames. -
#is_fallback ⇒ Boolean
(also: #is_fallback?)
Corresponds to the JSON property
isFallback. -
#live_agent_handoff ⇒ Boolean
(also: #live_agent_handoff?)
Corresponds to the JSON property
liveAgentHandoff. -
#messages ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage>
Corresponds to the JSON property
messages. -
#ml_disabled ⇒ Boolean
(also: #ml_disabled?)
Corresponds to the JSON property
mlDisabled. -
#name ⇒ String
Corresponds to the JSON property
name. -
#output_contexts ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>
Corresponds to the JSON property
outputContexts. -
#parameters ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentParameter>
Corresponds to the JSON property
parameters. -
#parent_followup_intent_name ⇒ String
Corresponds to the JSON property
parentFollowupIntentName. -
#priority ⇒ Fixnum
Corresponds to the JSON property
priority. -
#reset_contexts ⇒ Boolean
(also: #reset_contexts?)
Corresponds to the JSON property
resetContexts. -
#root_followup_intent_name ⇒ String
Corresponds to the JSON property
rootFollowupIntentName. -
#training_phrases ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrase>
Corresponds to the JSON property
trainingPhrases. -
#webhook_state ⇒ String
Corresponds to the JSON property
webhookState.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2Intent
constructor
A new instance of GoogleCloudDialogflowV2Intent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2Intent
Returns a new instance of GoogleCloudDialogflowV2Intent.
12002 12003 12004 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12002 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Corresponds to the JSON property action
11900 11901 11902 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11900 def action @action end |
#default_response_platforms ⇒ Array<String>
Corresponds to the JSON property defaultResponsePlatforms
11905 11906 11907 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11905 def default_response_platforms @default_response_platforms end |
#display_name ⇒ String
Corresponds to the JSON property displayName
11910 11911 11912 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11910 def display_name @display_name end |
#end_interaction ⇒ Boolean Also known as: end_interaction?
Corresponds to the JSON property endInteraction
11915 11916 11917 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11915 def end_interaction @end_interaction end |
#events ⇒ Array<String>
Corresponds to the JSON property events
11921 11922 11923 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11921 def events @events end |
#followup_intent_info ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentFollowupIntentInfo>
Corresponds to the JSON property followupIntentInfo
11926 11927 11928 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11926 def followup_intent_info @followup_intent_info end |
#input_context_names ⇒ Array<String>
Corresponds to the JSON property inputContextNames
11931 11932 11933 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11931 def input_context_names @input_context_names end |
#is_fallback ⇒ Boolean Also known as: is_fallback?
Corresponds to the JSON property isFallback
11936 11937 11938 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11936 def is_fallback @is_fallback end |
#live_agent_handoff ⇒ Boolean Also known as: live_agent_handoff?
Corresponds to the JSON property liveAgentHandoff
11942 11943 11944 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11942 def live_agent_handoff @live_agent_handoff end |
#messages ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage>
Corresponds to the JSON property messages
11948 11949 11950 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11948 def @messages end |
#ml_disabled ⇒ Boolean Also known as: ml_disabled?
Corresponds to the JSON property mlDisabled
11953 11954 11955 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11953 def ml_disabled @ml_disabled end |
#name ⇒ String
Corresponds to the JSON property name
11959 11960 11961 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11959 def name @name end |
#output_contexts ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>
Corresponds to the JSON property outputContexts
11964 11965 11966 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11964 def output_contexts @output_contexts end |
#parameters ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentParameter>
Corresponds to the JSON property parameters
11969 11970 11971 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11969 def parameters @parameters end |
#parent_followup_intent_name ⇒ String
Corresponds to the JSON property parentFollowupIntentName
11974 11975 11976 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11974 def parent_followup_intent_name @parent_followup_intent_name end |
#priority ⇒ Fixnum
Corresponds to the JSON property priority
11979 11980 11981 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11979 def priority @priority end |
#reset_contexts ⇒ Boolean Also known as: reset_contexts?
Corresponds to the JSON property resetContexts
11984 11985 11986 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11984 def reset_contexts @reset_contexts end |
#root_followup_intent_name ⇒ String
Corresponds to the JSON property rootFollowupIntentName
11990 11991 11992 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11990 def root_followup_intent_name @root_followup_intent_name end |
#training_phrases ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrase>
Corresponds to the JSON property trainingPhrases
11995 11996 11997 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11995 def training_phrases @training_phrases end |
#webhook_state ⇒ String
Corresponds to the JSON property webhookState
12000 12001 12002 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12000 def webhook_state @webhook_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12007 def update!(**args) @action = args[:action] if args.key?(:action) @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms) @display_name = args[:display_name] if args.key?(:display_name) @end_interaction = args[:end_interaction] if args.key?(:end_interaction) @events = args[:events] if args.key?(:events) @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info) @input_context_names = args[:input_context_names] if args.key?(:input_context_names) @is_fallback = args[:is_fallback] if args.key?(:is_fallback) @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff) @messages = args[:messages] if args.key?(:messages) @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled) @name = args[:name] if args.key?(:name) @output_contexts = args[:output_contexts] if args.key?(:output_contexts) @parameters = args[:parameters] if args.key?(:parameters) @parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name) @priority = args[:priority] if args.key?(:priority) @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts) @root_followup_intent_name = args[:root_followup_intent_name] if args.key?(:root_followup_intent_name) @training_phrases = args[:training_phrases] if args.key?(:training_phrases) @webhook_state = args[:webhook_state] if args.key?(:webhook_state) end |